14.2 Removing Oracle GoldenGate Database Objects

Follow these instructions to remove supplemental logging and any Oracle GoldenGate CDC Cleanup objects from the source database in the Oracle GoldenGate capture configuration, and to remove the Replicat checkpoint table in the apply configuration. Specific steps and commands may not apply to your configuration.

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.exe from the Oracle GoldenGate directory.

  3. Stop all Oracle GoldenGate processes if not already done.

    .
    STOP ER *
    
  4. Stop the Manager process.

    ..
    STOP MANAGER
    
  5. Issue the following command to log into the source database, see SOURCEDB.

    DBLOGIN SOURCEDB data_source{, USERID user, PASSWORD password | USERIDALIAS alias}
    
  6. Use this command to remove the Extract tables that you enabled for supplemental logging, see DELETE TRANDATA. You can use a wildcard to specify multiple table names.

    DELETE TRANDATA owner.table
    
  7. Remove any heartbeat table entries by running the DELETE HEARTBEATTABLE command.

On a Target System:

  1. Stop Replicat.
    STOP REPLICAT group  
    
    .
  2. Issue the following command to log into the target database, see SOURCEDB.
    DBLOGIN SOURCEDB DSN{USERID user, PASSWORD password | USERIDALIAS alias}
    
  3. Remove the Replicat checkpoint tables and heartbeat by running the DELETE CHECKPOINTTABLE and DELETE HEARTBEATTABLEcommands.
    DELETE CHECKPOINTTABLE schema.table
    DELETE HEARTBEATTABLE