您好,登錄后才能下訂單哦!
一.報(bào)錯(cuò)信息
Sun Oct 28 00:46:33 2018 Error 3113 trapped in 2PC on transaction 644.3.881743. Cleaning up. Error stack returned to user: ORA-02054: transaction 644.3.881743 in-doubt ORA-03113: end-of-file on communication channel ORA-02063: preceding line from KMESBA Sun Oct 28 00:46:34 2018 DISTRIB TRAN OMES.2b7345a.644.3.881743 is local tran 644.3.881743 (hex=284.03.d744f) insert pending prepared tran, scn=14593464857025 (hex=d45.ce49f1c1)
二.分析
此類問(wèn)題通常是由于網(wǎng)絡(luò)問(wèn)題或遠(yuǎn)程數(shù)據(jù)庫(kù)異常導(dǎo)致的分布式事務(wù)失敗。
執(zhí)行下面SQL語(yǔ)句
select LOCAL_TRAN_ID,GLOBAL_TRAN_ID,STATE,MIXED,HOST,COMMIT# from dba_2pc_pending; #dba_2pc_pending視圖記錄等待恢復(fù)的分布式事務(wù)的信息 select * from DBA_2PC_NEIGHBORS; #視圖記錄未決的分布式事務(wù)的輸入輸出連接信息
三.處理
1.如果在上述視圖中查詢到記錄,則嘗試force commit/rollback
commit force '644.3.881743';
2.如果不成功則進(jìn)行如下操作
(1).Disable分布式恢復(fù) SQL> ALTER SYSTEM DISABLE DISTRIBUTED RECOVERY; System altered. (2).Puege(清空)in-doubt transaction entry: SQL> exec DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('644.3.881743'); PL/SQL procedure successfully completed. (3).然后enable 分布式恢復(fù): SQL> ALTER SYSTEM ENABLE DISTRIBUTED RECOVERY;
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。