- 最后登录
- 2014-4-9
- 在线时间
- 95 小时
- 威望
- 0
- 金钱
- 268
- 注册时间
- 2012-6-24
- 阅读权限
- 10
- 帖子
- 78
- 精华
- 0
- 积分
- 0
- UID
- 528
|
1#
发表于 2013-5-16 12:22:12
|
查看: 4453 |
回复: 5
OS REDHAT 5.8
DB 10.2.0.4
今天早上数据库频繁出现dead lock
alert:- Thu May 16 10:08:00 2013
- LNS: Standby redo logfile selected for thread 1 sequence 119138 for destination LOG_ARCHIVE_DEST_3
- Thu May 16 10:11:31 2013
- ORA-00060: Deadlock detected. More info in file /u01/orabase/admin/jtcbw/udump/jtcbw1_ora_14251.trc.
- Thu May 16 10:16:39 2013
- Thread 2 advanced to log sequence 104100 (archiver wakeup)
- Thu May 16 10:16:39 2013
- ARC0: Standby redo logfile selected for thread 2 sequence 104099 for destination LOG_ARCHIVE_DEST_3
- Thu May 16 10:18:01 2013
- Thread 1 advanced to log sequence 119139 (LGWR switch)
- Current log# 9 seq# 119139 mem# 0: /ocfs_data1/jtcbw/redo09a.log
- Current log# 9 seq# 119139 mem# 1: /ocfs_data2/jtcbw/redo09b.log
- Current log# 9 seq# 119139 mem# 2: /ocfs_data3/jtcbw/redo09c.log
- Thu May 16 10:18:02 2013
- LNS: Standby redo logfile selected for thread 1 sequence 119139 for destination LOG_ARCHIVE_DEST_3
- Thu May 16 10:21:13 2013
- ORA-00060: Deadlock detected. More info in file /u01/orabase/admin/jtcbw/udump/jtcbw1_ora_14174.trc.
- Thu May 16 10:21:47 2013
- ORA-00060: Deadlock detected. More info in file /u01/orabase/admin/jtcbw/udump/jtcbw1_ora_14150.trc.
- Thu May 16 10:22:59 2013
复制代码 查看这些trace,都是一样的sql语句只是session 不一样- ORACLE_HOME = /u01/orabase/db
- System name: Linux
- Node name: tycbw
- Release: 2.6.18-194.el5
- Version: #1 SMP Tue Mar 16 21:52:39 EDT 2010
- Machine: x86_64
- Instance name: jtcbw1
- Redo thread mounted by this instance: 1
- Oracle process number: 354
- Unix process pid: 14174, image: oracle@tycbw
- *** 2013-05-16 10:21:12.938
- *** ACTION NAME:() 2013-05-16 10:21:12.931
- *** MODULE NAME:(JDBC Thin Client) 2013-05-16 10:21:12.931
- *** SERVICE NAME:(jtcbw) 2013-05-16 10:21:12.931
- *** SESSION ID:(2017.26545) 2013-05-16 10:21:12.931
- DEADLOCK DETECTED ( ORA-00060 )
- [Transaction Deadlock]
- The following deadlock is not an ORACLE error. It is a
- deadlock due to user error in the design of an application
- or from issuing incorrect ad-hoc SQL. The following
- information may aid in determining the deadlock:
- Deadlock graph:
- ---------Blocker(s)-------- ---------Waiter(s)---------
- Resource Name process session holds waits process session holds waits
- TX-00040005-000c1998 354 2017 X 315 1345 X
- TX-00080013-000f9e99 315 1345 X 354 2017 X
- session 2017: DID 0001-0162-000780D5 session 1345: DID 0001-013B-00048E7E
- session 1345: DID 0001-013B-00048E7E session 2017: DID 0001-0162-000780D5
- Rows waited on:
- Session 1345: obj - rowid = 0000D763 - AAAmAPAA6AAAUJDAAA
- (dictionary objn - 55139, file - 58, block - 82499, slot - 0)
- Session 2017: obj - rowid = 0000D74D - AAA1MHAC1AAAOnDAAA
- (dictionary objn - 55117, file - 181, block - 59843, slot - 0)
- Information on the OTHER waiting sessions:
- Session 1345:
- pid=315 serial=19136 audsid=158824586 user: 59/JTCBW
- O/S info: user: zhangzhiqiang, term: unknown, ospid: , machine: tycbw2
- program: JDBC Thin Client
- application name: JDBC Thin Client, hash value=2546894660
- Current SQL Statement:
- DELETE FROM T_ENTERPRISE_ADDRESS WHERE ENTERPRISE_ID = :1
- End of information on OTHER waiting sessions.
- Current SQL statement for this session:
- UPDATE T_ENTERPRISE SET OPER_TYPE = 'e' , FULL_NAME = :1 , SHORT_NAME = :2
- , ALIAS_NAME = :3 , OLD_NAME = :4 , ENGLISH_FULL_NAME = :5
- , ENGLISH_SHORT_NAME = :6 ,
- ABBREVIATED_ENGLISH_NAME = :7 , FULL_SPELL_CODE = :8 , SHORT_SPELL_CODE = :9
- , ALIAS_SPELL_CODE = :10 , OLD_SPELL_CODE = :11
- , GEOGRAPHY_FEATURE = null
- , AREA_ID = :12 , AREA_CODE = :13
- , NAME1 = :14 , NAME2 = :15
- ,UPDATE_DATE = sysdate , UPDATE_USER_ID = :16
- , IS_SECRET = :17 , REMARK = :18 , REMARK2 = :19
- , IS_BEST = :20 , IS_YELLOW = :21 , DATA_SOURCE_CHANNEL = :22
- WHERE ENTERPRISE_ID = :23
复制代码 T_ENTERPRISE 和T_ENTERPRISE_ADDRESS 没有外键,也没有triger,不知道为什么dead lock会发生在这2个不同的表上。
群里有人说是itl 争用造成,查看这一时间段的wait,只有TX - row lock contention,并没有ITL相关的contention。
上传相关trace和 ASH |
|