ORA-02062: distributed recovery 引起的 ORA-02019: connection description for remote database not found
一個測試資料庫隔三差五的報一個ORA-02019出來,查詢alert檔案,有一個詳細的trace:
*** 2007-10-12 21:47:55.083
ERROR, tran=2.34.74876, session#=1, ose=0:
ORA-02062: distributed recovery received DBID 78d96835, expected 2421f8a5
*** 2007-10-12 21:49:08.093
ERROR, tran=2.34.74876, session#=1, ose=0:
ORA-02019: connection description for remote database not found
看來這個ORA-02019只是表面現象,引起的原因應該是ORA-02062
網上搜尋了下,找到了老和尚的解決辦法,記錄在此吧:
處理辦法:
(1) set transaction use rollback segment system
(this is VERY important, otherwise database loss can occur)
(2) select * from dbc_2pc_pending where state='collecting';
(3) for each local_tran_id in selected rows, delete where local_tran_id is that value from the following tables:
dba_2pc_pending
pending_sessions$
pending_sub_sessions$
因為是817 undo是手工管理的,就不用進行第一步設定。如果是auto 管理undo 段的話
要先遮蔽掉對undo操作的錯誤提示:
sql>alter system set UNDO_SUPPRESS_ERRORS = TRUE
sql>EXECUTE DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('1.29.81672')
sql>alter system set UNDO_SUPPRESS_ERRORS = false
首先:
/****1.查詢處於分散式事務狀態下的本地事務ID號***/
select local_tran_id from dba_2pc_pending;
29.22.266482
8.36.982659
27.40.380788
/*****清楚這個分散式事務(該事務已經無法完成),不會對資料庫有影響***/
SQL> EXECUTE DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('29.22.266482');
PL/SQL procedure successfully completed
SQL> commit;
PL/SQL procedure successfully completed
問題解決了,原因也就很容易找到了,是做一個大的透過dblink的兩個db間的分散式事務的時候,修改了dblink的連結指向,導致了正在執行的事務找不到原先正確的dblink了,分散式事務卡在那裡了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25016/viewspace-978517/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Duplicating a Database Without Recovery Catalog or Target ConnectionDatabase
- 【RMAN】RMAN-20001: target database not found in recoveryDatabase
- RMAN-20001: target database not found in recovery catalogDatabase
- Database links of distributed oracle systemDatabaseOracle
- 對於Database recovery的理解Database
- oracle 之recovery directory databaseOracleDatabase
- Brief description of Oracle physical standby database configuration and managementOracleDatabase
- Brief description of Oracle physical standby database configuration and managemeOracleDatabase
- Dependencies Among Local and Remote Database Procedures (252)REMDatabase
- no declaration can be found for element rabbit:connection-factory
- Impact of Database Recovery and Flashback Database on the TDE Wallet_1327519.1Database
- [network][easy case]troubleshoting the connection to a remote serverREMServer
- 《Spanner: Google’s Globally-Distributed Database》論文總結GoDatabase
- Windows遠端桌面的使用(Remote Desktop Connection)WindowsREM
- Description
- 求助:移動端登入測試,報錯 RemoteDisconnected Remote end closed connection without response。REM
- remote_os_authent引數引起的系統無法連線故障REM
- RMAN-05541: no archived logs found in target databaseHiveDatabase
- ssh連線Linux收到The remote system refused the connection報錯LinuxREM
- ssh問題:ssh_exchange_identification: Connection closed by remote hostIDEREM
- 請高手指點A connection to the database could not be madeDatabase
- Cocoapods fatal: Remote branch #{s.version} not found in upstream originREM
- Common Causes and Solutions on ORA-376 Error Found in Backup & RecoveryError
- ffmpeg Filtergraph descriptionFilter
- oracle database backup and recovery user's guide part IVOracleDatabaseGUIIDE
- oracle database backup and recovery user's guide part IIIOracleDatabaseGUIIDE
- 第4章 資料庫恢復 Database Recovery資料庫Database
- ORA-02024: database link not foundDatabase
- OCP-IZO-053_QUESTION390_ Flashback Database recovery point parametersDatabase
- oracle database backup and recovery user's guide part VII & VIIIOracleDatabaseGUIIDE
- oracle database backup and recovery user's guide part V & VIOracleDatabaseGUIIDE
- oracle database backup and recovery user's guide part I & IIOracleDatabaseGUIIDE
- Error establishing a database connection 的解決方法(發現黑客入侵)ErrorDatabase黑客
- [AlwaysOn2017] AlwaysOn的DMV和DMF - Sys.fn_hadr_distributed_ag_database_replicaDatabase
- CDH5之Unexpected error.Unable to verify database connectionH5ErrorDatabase
- can close the database Connection before the JTA transaction commit or rollDatabaseMIT
- Enabling Database Resident Connection PoolingDatabaseIDE
- ORA-02019的處理