Professional Documents
Culture Documents
Uninstall GG
Uninstall GG
Uninstall GG
DDL Remove
(Valid when the DDL trigger is being used to support DDL replication.) This procedure removes all
of the Oracle GoldenGate DDL objects from the DDL schema on a source system.
1. Log on as the system administrator or as a user with permission to issue Oracle GoldenGate
commands and delete files and directories from the operating system.
2. Run GGSCI from the Oracle GoldenGate directory.
3. Stop all Oracle GoldenGate processes.
STOP ER *
Log in to SQL*Plus as a user that has SYSDBA privileges.
4. Disconnect all sessions that ever issued DDL, including those of Oracle GoldenGate
processes, SQL*Plus, business applications, and any other software that uses Oracle. Otherwise
the database might generate an ORA-04021 error.
5. Run the ddl_disable script to disable the DDL trigger.
Invoke sqlplus from gghome
SQL> @ddl_disable
SP2-0310: unable to open file "ddl_disable.sql"
SQL> @/home/oracle/gg/ddl_disable
SP2-0310: unable to open file "params.sql"
Enter value for ddl_trigger_name: GGS_DDL_TRIGGER_BEFORE
6. Run the ddl_remove script to remove the Oracle GoldenGate DDL trigger, the DDL history and
marker tables, and other associated objects. This script produces a ddl_remove_spool.txt file that
logs the script output and a ddl_remove_set.txt file that logs environment settings in case they are
needed for debugging.
SQL> @ddl_remove
DDL replication removal script.
WARNING: this script removes all DDL replication objects and data.
You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
Enter Oracle GoldenGate schema name:ggs_owner
Working, please wait ...
Spooling to file ddl_remove_spool.txt
Script complete.
7. Run the marker_remove script to remove the Oracle GoldenGate marker support system. This
script produces a marker_remove_spool.txt file that logs the script output and a
marker_remove_set.txt file that logs environment settings in case they are needed for debugging.
SQL> @marker_remove
Marker removal script.
WARNING: this script removes all marker objects and data.
You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
Enter Oracle GoldenGate schema name:ggs_owner