7 Uninstalling Oracle GoldenGate Classic Architecture for Non-Oracle Databases
Topics:
Removing Oracle GoldenGate Database Objects
Use the following instructions to remove database objects and stopping processes for your configuration. Some steps and commands may not apply to your configuration, however other instructions are applicable to all databases (until specified).
For SQL Server, use these steps 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.
On a Source System:
-
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.
-
Run
ggscifrom the Oracle GoldenGate directory. -
Stop all Oracle GoldenGate processes if not already done.
STOP EXTRACT * -
Stop the Manager process.
STOP MANAGER -
Issue the following command to log into the source database, see SOURCEDB.
DBLOGIN SOURCEDB {data_source | database@host:port} USERIDALIAS alias -
Remove any heartbeat table entries by running the
DELETE HEARTBEATTABLEcommand. -
For a SQL Server Extract configuration, remove the Oracle GoldenGate CDC cleanup job and objects if they were created.
-
Open a command prompt and change to the Oracle GoldenGate installation folder.
-
Run the
ogg_cdc_cleanup_setup.sh/batfile as follows:ogg_cdc_cleanup_setup.sh/bat dropJob userid password database_name servername\instancename schemaThe
userid passwordmust be a valid SQL Server login and password for asysadminuser.database_name servername\instancenameare the source database name and instance name. If only server name is listed, then the default instance will be used to connect to the database server.schemais the schema name listed in theGLOBALSfile, with theGGSCHEMAparameter.For example:
ogg_cdc_cleanup_setup.bat dropJob ggsuser ggspword db1 server1\inst1 ogg
-
-
Remove supplemental logging from tables that were enabled with it. See
DELETE TRANDATA. Remove supplemental logging for any filter tables used for bi-directional replication as well. You can use a wildcard to specify multiple table names.DELETE TRANDATA owner.table -
For PostgreSQL, the registered replication slot must be deleted after removing the Extract, otherwise the database logs will continue to grow.
DELETE EXTRACT extname UNREGISTER EXTRACT extname
On a Target System:
Uninstalling Oracle GoldenGate from a Linux System
Follow these instructions to remove Oracle GoldenGate from a Linux system.
- Run the command shell of the operating system.
- Ensure all Oracle GoldenGate processes are stopped, and any database objects have been removed, based on the instructions in Removing Database Objects.
- Remove the Oracle GoldenGate files by removing the installation directory.
Uninstalling Oracle GoldenGate from a Windows System
-
Log on to the operating system as the system administrator or as a user with permission to issue Oracle GoldenGate commands and to delete files and directories from the operating system.
-
Ensure all Oracle GoldenGate processes are stopped, and any database objects have been removed based on instructions in Removing Database Objects.
-
(Windows Cluster) Use the Cluster Administrator tool to take the Manager resource offline.
-
(Windows Cluster) Right click the resource and select Delete to remove it.
-
Click Start, Run, and then type
cmdin the Run dialog box to open the command console. -
Change directories to the Oracle GoldenGate installation directory.
-
Remove the Manager service and events using the
INSTALLutility with the following syntax:INSTALL DELETEEVENTS DELETESERVICE -
(Windows Cluster) Move the cluster group to the next node in the cluster and repeat the process from step 6.
-
Remove the Oracle GoldenGate files by removing the installation directory.