系统中偶尔会出现ORA-01591 分布式事务锁的问题。每次把事务回滚了。隔一段时间(几天或是十几天)又出现。哪位大神可以告诉我ORA-01591 产生的原因。以及解决方案么?对于ORACLE 还不是很精。所以请尽量描述详细点。谢谢
解决方案 »
- 执行sql语句太慢,好像只用一个CPU,有没有办法优化?
- 请大家帮忙看下这个查询语句的诡异问题
- 紧急求助各位大侠:存储过程如何执行动态的SQL(并返回多条数据集)
- “ORA-00937: 不是单组分组函数” 感觉语句没问题,不知道错在哪,求教大神!
- orcale 的 select 语句中可不可以用 LEFT函数呀?
- substr用法
- EXCEPTION 捕捉问题
- 有关DTS
- 把这10分加上:oracle805的客户端可以连接oracle816的服务器么?如果可以,分别在服务器端和客户端如何设置啊
- SOS在线等候!!!请看看我这个SQL应该怎么写呀???
- 不显示删除回复显示所有回复显示星级回复显示得分回复 存储过程中如何拆分一个字符串,使拆分的字符串可作为字段名使用?
- 数据块的使用
Cause: Trying to access resource that is locked by a dead two-phase commit transaction that is in prepared state.
Action: DBA should query the pending_trans$ and related tables, and attempt to repair network connection(s) to coordinator and commit point. If timely repair is not possible, DBA should contact DBA at commit point if known or end user for correct outcome, or use heuristic default if given to issue a heuristic commit or abort command to finalize the local portion of the distributed transaction.看来还是锁引起的,查锁吧
v$lock,v$locked_object
v$lock,v$locked_object
alert log 是在哪里看呀?
rdbms/log/ 目录下没有生成trc信息. 下面我收集了一些错误信息.程序日志打印的错误
Error - OCI_ERROR:[code:1591, msg:ORA-01591: lock held by in-doubt distributed transaction 5.14.2258这个是dba_2pc_pending 中,这条锁定的事务记录(必须要回滚再可以让程序执行,所以我把事务回滚了)
1 5.14.2258 113577.574B0D6B9299E0FB3E147D37C03101C92951BA5E forced rollback no 2012/5/2 21:24:21 2012/5/2 23:43:58 2012/5/6 21:08:31 cics p750blpar4 9464444390203这条是pending_trans$中的记录。
15 5.14.2258 113577 574B0D6B9299E0FB3E147D37C03101C92951BA5E forced rollback P 00000001 00000000 0 2012/5/2 21:24:21 2012/5/2 23:43:58 2012/5/6 21:08:31 cics p750blpar4 9464444390203