单机 ora-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 3502834
  • 博文数量: 718
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7790
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(718)

文章存档

2024年(4)

2023年(74)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客
相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: oracle

2022-08-30 00:24:28

模拟:
  1. create table emp (no int,sal number);
  2. insert into emp values(1,100);
  3. insert into emp values(2,300);
  4. commit;

  5. 会话1:
  6. update emp set sal=sal100 where no=1;
  7. 会话2:
  8. update emp set sal=sal200 where no=2;

  9. 然后会话1:
  10. update emp set sal=sal1 where no=2;
  11. 等执行完会话2的sql几秒后,报死锁 ora-00060

  12. 会话2:
  13. update emp set sal=sal-2 where no=1;
  14. 挂起

告警日志

  1. 2022-08-29 09:11:28.720000 -07:00
  2. errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_5271.trc:
  3. ora-00060: deadlock detected. see note 60.1 at my oracle support for troubleshooting ora-60 errors.
  4. more info in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_5271.trc.

trc部分内容:
  1. 2022-08-29 09:11:28.712*:ksq.c@13169:ksqdld_hdr_dump():
  2. deadlock detected ( ora-00060 )
  3. see note 60.1 at my oracle support for troubleshooting ora-60 errors
  4. [transaction deadlock]
  5. the following deadlock is not an oracle error. it is a
  6. deadlock due to user error in the design of an application
  7. or from issuing incorrect ad-hoc sql. the following
  8. information may aid in determining the deadlock:
  9. deadlock graph:
  10. ------------blocker(s)----------- ------------waiter(s)------------
  11. resource name process session holds waits serial process session holds waits serial
  12. tx-00060000-000008d0-00000000-00000000 51 268 x 61619 37 277 x 49963
  13. tx-000a0018-00000739-00000000-00000000 37 277 x 49963 51 268 x 61619
  14. ----- information for waiting sessions -----
  15. session 268:
  16. sid: 268 ser: 61619 audsid: 4294967295 user: 0/sys
  17. flags: (0x8000041) usr/- flags2: (0x40009) -/-/inc
  18. flags_idl: (0x1) status: bsy/-/-/- kill: -/-/-/-
  19. pid: 51 o/s info: user: oracle, term: unknown, ospid: 5271
  20. image: oracle@bjdb (tns v1-v3)
  21. client details:
  22. o/s info: user: oracle, term: pts/2, ospid: 5270
  23. machine: bjdb program: sqlplus@bjdb (tns v1-v3)
  24. application name: sqlplus@bjdb (tns v1-v3), hash value=3524224488
  25. current sql:
  26. update emp set sal=sal 1 where no=2
  27. session 277:
  28. sid: 277 ser: 49963 audsid: 4294967295 user: 0/sys
  29. flags: (0x41) usr/- flags2: (0x40009) -/-/inc
  30. flags_idl: (0x1) status: bsy/-/-/- kill: -/-/-/-
  31. pid: 37 o/s info: user: oracle, term: unknown, ospid: 7328
  32. image: oracle@bjdb (tns v1-v3)
  33. client details:
  34. o/s info: user: oracle, term: pts/1, ospid: 7327
  35. machine: bjdb program: sqlplus@bjdb (tns v1-v3)
  36. application name: sqlplus@bjdb (tns v1-v3), hash value=3524224488
  37. current sql:
  38. update emp set sal=sal-2 where no=1
  39. ----- end of information for waiting sessions -----

阅读(357) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图