This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Uninstalling the Teradata Data Warehouse Protector

This section outlines the uninstall process for the Protegrity Teradata Data Warehouse Protector.

1 - Uninstalling the Log Forwarder

  1. Log in to the database server as the user with the required permissions.
  2. Navigate to the /opt/protegrity/logforwarder/bin/ directory.
  3. To stop the Log Forwarder, run the following command:
    ./logforwarderctrl stop
    
  4. Press ENTER.
    The command stops the Log Forwarder.
    Stopping Logforwarder with PID: 20658
    Please Wait
    
  5. To verify the status of Log Forwarder, run the following command:
    ./logforwarderctrl status
    
  6. Press ENTER.
    The status of the Log Forwarder appears.
    Logforwarder is not running
    
  7. Navigate to the /opt/protegrity/ directory.
  8. To remove the /logforwarder/ directory, run the following command.
    rmdir logforwarder
    
  9. Press ENTER.
    The command deletes the /logforwarder/ directory and completes the uninstallation for the Log Forwarder.

2 - Uninstalling the RPAgent

  1. Log in to the server as the user with the required permissions.
  2. Navigate to the /opt/protegrity/rpagent/bin/ directory.
  3. To stop the RPAgent, run the following command:
    ./rpagentctrl stop
    
  4. Press ENTER.
    The command stops the RPAgent.
    Stopping RP Agent (PID: 10856)
    Please Wait
    
  5. To verify the status of RPAgent, run the following command:
    ./rpagentctrl status
    
  6. Press ENTER.
    The status of the RPAgent appears.
    RP Agent is not running
    
  7. Navigate to the /opt/protegrity/ directory.
  8. To remove the /rpagent/ directory, run the following command:
    rmdir rpagent
    
  9. Press ENTER.
    The command deletes the /rpagent/ directory and completes the uninstallation for the RPAgent.

3 - Dropping the User Defined Functions

  1. Log in to the server as the user with the required permissions.

  2. Navigate to the /opt/protegrity/databaseprotector/teradata/sqlscripts/ directory.

  3. To start the bteq utility, run the following command:

    /opt/protegrity/databaseprotector/teradata/sqlscripts/ # bteq
    
  4. Press ENTER.
    The prompt to log in to the database appears.

    Enter your logon or BTEQ command:
    
  5. To log in to the database, run the following command:

    .logon <username>
    
  6. Press ENTER.
    The prompt to enter the database password appears.

  7. Enter the database password.

  8. Press ENTER.
    The connection to the Teradata database is established successfully.

    *** Logon successfully completed.
    
  9. To remove the installed UDFs from the Teradata Data Warehouse Protector, run the following query:

    .run file=dropobjects.sql
    
  10. Press ENTER.
    The script removes each of the UDFs and the following message for each of the removed UDF appears.

    *** Function has been dropped.
    *** Warning: 5607 Check output for possible warnings encountered in compiling and/or linking UDF/XSP/UDM/UDT.
    *** Total elapsed time was 1 second.
    
  11. To remove the Varchar Unicode UDFs installed on the Teradata Data Warehouse Protector, run the following query:

    .run file=dropvarcharunicode.sql
    
  12. Press ENTER.
    The script removes each of the UDFs and the following message for each of the removed UDF appears.

    *** Function has been dropped.
    *** Warning: 5607 Check output for possible warnings encountered in compiling and/or linking UDF/XSP/UDM/UDT.
    *** Total elapsed time was 1 second.
    
  13. To remove the Decimal UDFs installed on the Teradata Data Warehouse Protector, run the following query:

    .run file=dropdecimalobjects.sql 
    
  14. Press ENTER.
    The script removes each of the UDFs and the following message for each of the removed UDF appears.

    *** Function has been dropped.
    *** Warning: 5607 Check output for possible warnings encountered in compiling and/or linking UDF/XSP/UDM/UDT.
    *** Total elapsed time was 1 second.
    

4 - Removing the Installation Directory

Deleting the installation directory is the final stage in the process of uninstalling the Teradata Data Warehouse Protector.

To remove the installation directory:

  1. Log in to the database server as the user with the required permissions.
  2. Navigate to the /opt/protegrity/ directory.
  3. To delete the installation directory, run the following command:
    rm -rf /databaseprotector/
    
  4. Press ENTER.
    The command deletes the files and the sub-directories within the specified directory.