博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ORA-24756: transaction does not exist问题解决
阅读量:2450 次
发布时间:2019-05-10

本文共 3210 字,大约阅读时间需要 10 分钟。

早上看alert日志发现报错如下:
---------------------------------------------------- >>
Fri May 16 02:55:05 2014
Errors in file /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc:
ORA-24756: transaction does not exist
Errors in file /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc:
ORA-24756: transaction does not exist
Errors in file /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc:
ORA-24756: transaction does not exist
Errors in file /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc:
ORA-24756: transaction does not exist
Errors in file /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc:
ORA-24756: transaction does not exist
Errors in file /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc:
ORA-24756: transaction does not exist
查看具体trace文件 /u01/app/oracle/diag/rdbms/bus/bus/trace/bus_reco_2590.trc内容如下:
------------------------------------------------------&gt>
*** 2014-05-15 20:31:15.492
*** SESSION ID:(576.1) 2014-05-15 20:31:15.492
*** CLIENT ID:() 2014-05-15 20:31:15.492
*** SERVICE NAME:(SYS$BACKGROUND) 2014-05-15 20:31:15.492
*** MODULE NAME:() 2014-05-15 20:31:15.492
*** ACTION NAME:() 2014-05-15 20:31:15.492
 
*** TRACE FILE RECREATED AFTER BEING REMOVED ***
*** 2014-05-15 20:31:15.491
ERROR, tran=12.3.3589, ose=0:
ORA-24756: transaction does not exist
*** 2014-05-15 20:31:15.492
ERROR, tran=12.3.3589, ose=0:
ORA-24756: transaction does not exist
*** 2014-05-15 20:31:15.492
ERROR, tran=12.3.3589, session#=1, ose=0:
ORA-24756: transaction does not exist
*** 2014-05-15 20:31:15.492
ERROR, tran=12.3.3589, ose=0:
ORA-24756: transaction does not exist
*** 2014-05-15 20:31:15.492
ERROR, tran=12.3.3589, ose=0:
ORA-24756: transaction does not exist
------------------------&gt>
ORA-01422: 实际返回的行数超出请求的行数,这种问题可能与应用有关系,由于早上事情比较多,没有去查询具体原因,只参考如下资料解决了下,因为我们部分操作是用的分布式交易[通过dblink]:
--------------------------------------------&gt>
Symptoms:
alert log:
ORA-24756: transaction does not exist
select local_tran_id,state from dba_2pc_pending;
36.26.310445 collecting
Cause:
If the remote database no longer exists then the transaction will have to be 
purged from the list of pending distributed transactions.
Solution:
1,
SQL>
commit force '36.26.310445'; -- session is hanged
2,
SQL>
exec DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('36.26.310445'); 
BEGIN DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('36.26.310445'); END;
*
ERROR at line 1:
ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
ORA-06512: at "SYS.DBMS_TRANSACTION", line 65
ORA-06512: at "SYS.DBMS_TRANSACTION", line 85
ORA-06512: at line 1
---&gt>说明:然后运用SecureCRT以sysdba身份执行上述命令,成功,然后通过oracle级别和linux级别kill了步骤一中hang住的会话,
过了一会儿通过EM查看database顶级活动,那session已经不在了,alert日志中也不报类似
ORA-24756: transaction does not exist的错误了。
3,
SQL> commit;
SQL> alter session set "_smu_debug_mode" = 4;
SQL> commit;
SQL> execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('local_tran_id');
SQL> commit;
Relation Metalink doc:
Doc 401302.1
Doc 126069.1
Doc 100664.1
Doc 274321.1
------------------------------&gt>至此,结束,引起问题的原因没去追究,只是去针对问题解决问题,没有联系应用多层次去处理,有待改善,后续有时间会明确补上。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29119536/viewspace-1162548/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29119536/viewspace-1162548/

你可能感兴趣的文章
2019年遥感图像稀疏表征_图片为:2019年网络最佳图像格式
查看>>
apache kafka_轻松实现Apache Kafka集成的考虑因素
查看>>
graphql_GraphQL简介:它如何工作以及如何使用
查看>>
javascript 分号_为什么显式分号在JavaScript中很重要
查看>>
2018年最新税收分类编码_这是我们在2018年推出的所有免费编码课程
查看>>
react hooks使用_如何使用React Hooks创建响应式固定数据表
查看>>
react mongodb_如何使用Socket.io,React,Node和MongoDB创建实时应用
查看>>
傻瓜神经网络:这个引人入胜的领域的快速入门
查看>>
gatsby_如何利用静态站点生成器Gatsby.js来利用您的React技能
查看>>
出现字迹模糊迹象_迹象表明您的开发过程仅在纸上才是敏捷的-以及如何解决它
查看>>
如何使用Node.js,MongoDB,Fastify和Swagger构建出色的快速REST API
查看>>
javascript运算符_让我们尝试使用JavaScript中的函数生成器和管道运算符
查看>>
入职后发现公司是外包全职_在全职工作的9个月内,我如何完成整个freeCodeCamp课程
查看>>
react 模态对话框_如何在React中渲染模态
查看>>
idea构建web工程_如何使用系统工程来构建成功的Web应用程序
查看>>
javascript教程_JavaScript类教程
查看>>
Tensorflow.js完整课程-JavaScript深度学习
查看>>
程序员 数学_程序员数学课程
查看>>
播客49:Lyle Troxell
查看>>
parcel react_将Parcel Bundler与React结合使用
查看>>