Applying Database Patches and Upgrades when DDL Support is Enabled
Database patches and upgrades usually invalidate the Oracle GoldenGate DDL trigger and other Oracle GoldenGate DDL objects.
Before applying a database patch, do the following.
- Log in to SQL*Plus as a user that has
SYSDBA
privileges. - Disable the Oracle GoldenGate DDL trigger by running the
ddl_disable
script in SQL*Plus. - Apply the patch.
- Enable the DDL trigger by running the
ddl_enable
script in SQL*Plus.
Note:
Database upgrades and patches generally operate on Oracle objects. Because Oracle GoldenGate filters out those objects automatically, DDL from those procedures is not replicated when replication starts again.
To avoid recompile errors after the patch or upgrade, which are caused if the trigger is not disabled before the procedure, consider adding calls to @ddl_disable
and @ddl_enable
at the appropriate locations within your scripts.