6 Uninstalling Oracle GoldenGate Classic Architecture for Oracle Database
Learn about uninstallling Oracle GoldenGate Classic Architecture processes and files from the host in Linux, UNIX, and Windows environments.
It is assumed that you no longer need the data in the Oracle GoldenGate trails, and that you no longer need to preserve the current Oracle GoldenGate environment. To preserve your current environment and data, make a backup of the Oracle GoldenGate directory and all subdirectories before starting this procedure.
Topics:
Stopping Processes
This procedure stops the Extract and Replication processes. Leave Manager running until directed to stop it.
On all Systems:
Removing the DDL Environment
(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.
Removing Database Objects
Follow these instructions to remove supplemental logging and any Oracle GoldenGate CDC Cleanup objects (for SQL Server) from the source database in the Oracle GoldenGate Extract configuration, and to remove the checkpoint table in the Replicat configuration. Specific steps and commands may not apply to your 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
ggsci
from your Oracle GoldenGate directory. -
Stop all Oracle GoldenGate processes.
STOP ER *
-
Stop the Manager process.
STOP MANAGER
-
In GGSCI, log into the database with the
DBLOGIN
(or theMININGDBLOGIN
command if you need to remove a database logmining server from a downstream mining database).[MINING]DBLOGIN
requires privileges granted in thedbms_goldengate_auth.grant_admin_privilege
procedure.[MINING]DBLOGIN USERIDALIAS
alias
-
In GGSCI, run any or all of the following commands, depending on your configuration.
-
Disable schema-level supplemental logging (wildcards are not allowed):
DELETE SCHEMATRANDATA
schema
[NOSCHEDULINGCOLS | ALLCOLS] -
Disable table-level supplemental logging.
DELETE TRANDATA [container.]schema.table [NOSCHEDULINGCOLS | ALLCOLS]
-
(Bidirectional configuration) Remove the Oracle trace table.
DELETE TRACETABLE [container.]schema.table
-
(Classic capture configuration) Disable log retention.
DBLOGIN
requires privileges shown in Log Retention Options.UNREGISTER EXTRACT
group
LOGRETENTION -
(Integrated capture configuration) Remove the database logmining server from an Oracle mining database.
DELETE EXTRACT group UNREGISTER EXTRACT group DATABASE
-
-
Run the following Oracle procedure to remove the privileges from the Oracle GoldenGate administration users for both classic and integrated processes.
dbms_goldengate_auth.revoke_admin_privilege('ggadm')
On a Target System:
Uninstalling Oracle GoldenGate Using Oracle Universal Installer
Follow these instructions to uninstall Oracle GoldenGate through an interactive session of Oracle Universal Installer (OUI).
WARNING:
Before removing Oracle GoldenGate through OUI, follow the instructions in Removing the DDL Environment (if using trigger-based DDL capture) and Removing Database Objects. These procedures require the use of Oracle GoldenGate commands and scripts, which are removed by the OUI uninstaller.
The following items are removed in this process.
-
The Oracle GoldenGate home directory in the Oracle central inventory.
-
The Oracle GoldenGate installation directory.
-
The Oracle GoldenGate Manager service, if installed on Windows.
-
The Oracle GoldenGate Windows Registry entries
To remove Oracle GoldenGate from the system:
Uninstalling Oracle GoldenGate Manually
Follow these instructions to remove the Oracle GoldenGate environment from the system manually through the operating system.
Manually Removing Oracle GoldenGate Windows Components
This procedure:
-
Removes Oracle GoldenGate as a Windows cluster resource from a source or target Windows system
-
Stops Oracle GoldenGate events from being reported to the Windows Event Manager
-
Removes the Manager service
Perform these steps on source and target systems:
Parent topic: Uninstalling Oracle GoldenGate Manually
Manually Removing the Oracle GoldenGate Files
These steps apply when the Oracle GoldenGate installation isn't done using the Oracle GoldenGate installer.
Note:
If Oracle GoldenGate has been installed using the installer, then you must uninstall Oracle GoldenGate with the uninstall script as well. Otherwise, you will have orphaned fragments withinora inventory
.
Parent topic: Uninstalling Oracle GoldenGate Manually