資料庫升級後goldengate報錯,ORA-04045
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
Linux平臺,將資料庫從10.2.0.1.0升級到10.2.0.5.0後報錯: ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
試圖重新編譯該package和package body,均報錯:
SQL> alter package GGATE.DDLREPLICA compile package;
alter package GGATE.DDLREPLICA compile package
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit
SQL> alter package GGATE.DDLREPLICA compile body;
alter package GGATE.DDLREPLICA compile body
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit
SQL> alter package GGATE.DDLREPLICA compile;
alter package GGATE.DDLREPLICA compile
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04045: errors during recompilation/revalidation of GGATE.DDLREPLICATION
ORA-04064: not executed, invalidated
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit being called:
"GGATE.DDLREPLICATION"
ORA-06512: at line 870
ORA-04064: not executed, invalidated package body "GGATE.DDLREPLICATION"
ORA-06508: PL/SQL: could not find program unit
在metlink上找到一篇文件,原來是資料庫上部署了goldenGate 基於ddl的複製,升級前需要先disable 觸發器,然後升級,最後enable 觸發器;
如果沒有按照此步驟來操作並且已經報錯了,可以重新執行相關指令碼,建立包和包體。
附:
Do I Need To Disable The GoldenGate DDL Trigger Before An Oracle DB Upgrade or PSU patching? [ID 971222.1]
In this Document
Applies to:
Oracle GoldenGate - Version: 4.0.0 and later [Release: 4.0.0 and later ]
Information in this document applies to any platform.
Solution
Issue:
If you are performing any Oracle database upgrades, for example CPU/PSU patch upgrade, and you are currently capturing Oracle DDL operations with GoldenGate, disable the GoldenGate DDL trigger before the upgrade and then enable it after the upgrade. Use the ddl_disable and ddl_enable scripts in the GoldenGate installation directory for this purpose.
Solution Description:
Patches and upgrades can modify Oracle???s internal tables and views. This can cause stored procedures that call them to be invalidated. All dependent objects are invalidated as well.
The ALTER COMPILE is DDL, and because parts of the DDL package are invalidated, it cannot execute. Because Oracle patches and upgrades are generally NOT replicated by GoldenGate (replication is stopped, then upgrades or patches are done on both source and target), there should be no gaps. Also, because upgrades and patches generally operate on Oracle-reserved objects (which GoldenGate filters out), there should not be any patch-related DDL operations that are replicated, even if for some reason replication is not stopped during the patch.
To apply the Oracle patch:
Before applying a database patch to an environment that has an active GoldenGate DDL trigger, follow this procedure:
1. Log into SQL*Plus as sysdba and execute the ddl_disable script.
2. Apply the Oracle patch.
3. If you are still on the same major Oracle version (for example, you went from 9.2.0.6 to 9.2.0.8), enable the trigger again by executing the ddl_enable script as sysdba. If you are upgrading to a newer major version (for example, from 10.1.x to 10.2.x), download and install a new GoldenGate version before re-enabling the DDL trigger.
If you don't follow the procedure of disabling the DDL trigger before upgrade or patching, after the Database version upgrade or CPU/PSU patch complete, you will run into various issues with GoldenGate DDL replication package, typical error messages looks like below
OCI error (4045-ORA-04045: errors during recompilation/revalidation of PUBLIC.ALL_TAB_COLUMNS
ORA-04064: not executed, invalidated ORA-04064: not executed, invalidated package body "GGS_DDL.DDLREPLICATION" ORA-06508: PL/SQL: could not find program unit being called: "GGS_DDL.DDLREPLICATION" ORA-06512: at line 837 ORA-04064: not executed, invalidated package body "GGS_DDL.DDLREPLICATION" ORA-06508: PL/SQL: could not find program unit being called: "GGS_DDL.DDLREPLICATION" ORA-06508: PL/SQL: could not find program unit being called: "GGS_DDL.DDLREPLICATION" ORA-06512: at line 837 ORA-04045: errors during recompilation/revalidation of GGS_DDL.DDLREPLICATION ORA-04064: not executed, invalidated ORA-04064: not executed, invalidated package body "GGS_DDL.DDLREPLICATION" ORA-06508: PL/SQL: could not find program unit being called: "GGS_DDL.DDLREPLICATION" ORA-06512: at line 837 ORA-04064: not executed, invalidated package body "GGS_DDL.DDLREPLICATION" ORA-06508: PL/SQL: could not find program unit being called: "GGS_DDL.DDLREPLI) initializing query to obtain NUMBER precision (table: 'xxxx.yy', column: 'Cc'), try to fix this issue in order to avoid possible fatal error.
If that happens, you have to reinstall the DDL replication package. Please see detail on how to install DDL replication package in the installation guide.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21256317/viewspace-1063585/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 資料庫升級報錯資料庫
- 資料庫升級後匯出報EXP-00056錯誤解決辦法資料庫
- 資料庫升級後‘PLAN_TABLE資料庫
- rac 升級crs 升級資料庫軟體,升級資料庫資料庫
- pip 升級後runpy.py報錯
- 資料庫升級資料庫
- ♀♀資料庫升級♀♀資料庫
- 【Python】升級python後pip報錯Python
- python3升級後的報錯Python
- 升級失敗後,資料庫降級方案(flashback database)資料庫Database
- 故障分析 | MySQL 資料庫升級後,資料庫怎麼卡住了MySql資料庫
- 客戶資料庫升級後出現ORA-30004錯誤資料庫
- activemq升級報錯MQ
- Oracle 資料庫升級Oracle資料庫
- 資料庫升級之-Dataguard滾動升級資料庫
- 資料庫升級之-資料泵資料庫
- 資料庫升級導致ORA-918錯誤資料庫
- 資料庫升級和工具資料庫
- 資料庫升級之-XTTS資料庫TTS
- oracle資料庫升級11.2.0.3升級到11.2.0.4Oracle資料庫
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- android資料庫如何進行版本升級?架構之資料庫框架升級Android資料庫架構框架
- 升級失敗後對資料庫進行恢復 (2)資料庫
- 升級失敗後對資料庫進行恢復 (1)資料庫
- Oracle資料庫升級(轉發)Oracle資料庫
- Oracle 資料庫 升級為 RACOracle資料庫
- Linux升級核心後報No volume groups found錯誤Linux
- ORA-39700錯誤(一般升級資料庫容易遇到)資料庫
- 解決升級資料庫時遇到的Text file busy錯誤資料庫
- 探索Oracle之資料庫升級七 11gR2 to 12c 升級完成後插入PDBOracle資料庫
- oracle 升級報錯 NO pre-requistes......OracleUI
- Oracle資料庫升級與補丁Oracle資料庫
- Oracle 資料庫升級注意事項Oracle資料庫
- 資料庫的升級及遷移資料庫
- RAC資料庫升級到10.2.0.5資料庫
- 谷歌升級雲端資料庫Cloud SQL谷歌資料庫CloudSQL
- 資料庫升級-物理重新整理資料字典資料庫
- iOS 資料庫升級資料遷移解決方案iOS資料庫