3.2.3.2.2 How to Remove a Deployment: Silent Mode

You can remove a deployment silently using the Oracle GoldenGate Configuration Assistant (oggca) from the Oracle GoldenGate Home bin directory.

By removing a deployment, you can delete various components of the deployment, including, Extracts, Replicats, paths, and configuration files. However, the Service Manager is not deleted.

To remove a deployment silently:

Note:

If the Service Manager is registered as a system service, removing a deployment silently will not unregister the service.
  1. Ensure that you have a deployment response file. To get the deployment response file, run the OGGCA and the save the response file.

  2. Update the following lines within the deployment response file:
    CONFIGURATION_OPTION=REMOVE
    ADMINISTRATOR_PASSWORD=********
    CREATE_NEW_SERVICEMANAGER=false
    DEPLOYMENT_NAME=deployment_name
    REMOVE_DEPLOYMENT_FROM_DISK=true

    In case of multiple deployments, you must specify the deployment name using the DEPLOYMENT_NAME field. You can use the REMOVE_DEPLOYMENT_FROM_DISK option to remove physical files and folders associated with deployment.

  3. Run the OGGCA program from the following location using the -silent and -responseFile options. Providing the exact path to the deployment response is needed.
    $OGG_HOME/bin/oggca.sh -silent -responseFile
    path_to_response_file/response_file.rsp

    Example:

    $OGG_HOME/bin/oggca.sh -silent -responseFile
            /home/oracle/software/ogg_deployment.rsp