ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-01975

ORA-01975

原创 Linux操作系统 作者:zhouwf0726 时间:2019-02-19 13:18:05 0 删除 编辑
ALERT文件中错误ORA-01975,这个错误相关资料很少,最后得出结论,本案例是由于分布事物造成的,最后处理过程参考以下步骤:

日常工作中针对分布式事务的处理:

ANSWER
=======

The junk entries In the local transaction Id could have been caused by on the following 2 reasons:

1) incorrect setting for NLS_DATE
2) gateway used to enter external data in oracle database


ACTION PLAN
============
1) get output of the following queries
SQL> Select * from sys.pending_trans$;
SQL> Select * from sys.pending_sessions$;
SQL> Select * from sys.pending_sub_sessions$;


2) If you need to remove all of them, then we can purge the transactions as follows:
SQL> exec dbms_transaction.purge_lost_db_entry('deferred_tran_id');


3) We are going to have to manually remove this entry from pending_trans$.set transaction use rollback segment SYSTEM;

SQL> delete from sys.pending_trans$ where local_tran_id = '????';
SQl> commit;

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

请登录后发表评论 登录
全部评论

注册时间:2006-02-22

  • 博文量
    458
  • 访问量
    416622