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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [network][easy case]troubleshoting the connection to a remote serverREMServer
- Windows遠端桌面的使用(Remote Desktop Connection)WindowsREM
- 《Spanner: Google’s Globally-Distributed Database》論文總結GoDatabase
- no declaration can be found for element rabbit:connection-factory
- Cocoapods fatal: Remote branch #{s.version} not found in upstream originREM
- Error establishing a database connection 的解決方法(發現黑客入侵)ErrorDatabase黑客
- SQL1116N A connection to or activation of database "TESTDB" cannot be madeSQLDatabase
- [AlwaysOn2017] AlwaysOn的DMV和DMF - Sys.fn_hadr_distributed_ag_database_replicaDatabase
- Description
- Bug 12725963 - New database connection fails with ORA-12541 after vip failoverDatabaseAI
- ffmpeg Filtergraph descriptionFilter
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- Oracle DataBase Recovery資料庫dbf中了勒索病毒[Ransomwaree2020@cock.li].ekingOracleDatabase資料庫
- Tomcat DBCP(Database Connection Pool) 資料庫連線池入門介紹TomcatDatabase資料庫
- 求助:移動端登入測試,報錯 RemoteDisconnected Remote end closed connection without response。REM
- Harmonic Value Description HDU - 5916
- Principles of Distributed Ledgers
- [原始碼解析] PyTorch 分散式(14) --使用 Distributed Autograd 和 Distributed Optimizer原始碼PyTorch分散式
- How to get the description of blast hit using blastdbcmd?AST
- 人大金倉資料庫kingbase備份時老是提示sys_dump: error: connection to database or services資料庫ErrorDatabase
- nacos Connection refused (Connection refused)
- 【HDFS】HADOOP DISTRIBUTED FILE SYSTEMHadoop
- Database Connection Pool 資料庫連線池-01-概覽及簡單手寫實現Database資料庫
- database的connectDatabase
- Connection
- some notes about distributed workflows in GitGit
- Rockchip RK3588 - Rockchip Linux Recovery recovery原始碼分析Linux原始碼
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- java.net.ConnectException: Connection refused (Connection refused)JavaException
- codegen的模板檔案mustache中,classname,description,notes如何賦值賦值
- 如何處理WordPress網站提示“建立資料庫連線時出錯”或“Error establishing a database connection”錯誤網站資料庫ErrorDatabase
- patch_id,version, action ,status,action_time,description
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- 關於RAC的remote_listenerREM
- 解決eclipse的 Invalid project description. overlaps the location of another project: 問題EclipseProject
- 由setContentView()方法引起的思考View