10/11

# 5 Removing Oracle Audit Vault Collection Agent Software

This chapter describes the process of removing Oracle Audit Vault collection agent software. It contains the following sections:

- Removing Oracle Audit Vault Collection Agent Software

  This section describes general instructions for all Linux and UNIX-based systems and Microsoft Windows systems.

- For Microsoft Windows Systems: Manually Remove the Remaining Oracle Audit Vault Collection Agent Components

  This section describes specific instructions for Microsoft Windows systems about manually removing the remaining registry keys, environment variables, Start menu options, and directories.

## 5.1 Removing Oracle Audit Vault Collection Agent Software

Use the following procedure to uninstall the Oracle Audit Vault collection agent software:

1. Use the Oracle Audit Vault Control (AVCTL) commands documented in Oracle Audit Vault Administrator's Guide to stop all collectors (`stop_collector`) running on the collection agent, and then to stop the collection agent itself (`stop_agent`).

2. Use the `avctl` `stop_oc4j` command to stop the agent OC4J. For example:

       avctl stop_oc4j

3. For Linux and UNIX-based systems, and Microsoft Windows systems, uninstall the Oracle Audit Vault collection agent software by running the following command in the home directory of the collection agent. For example:

   For Linux and UNIX-based systems:

       $ $ORACLE_HOME/oui/bin/runInstaller

   For Microsoft Windows systems:

       ORACLE_HOME\oui\bin\setup.exe

   As an alternative for Microsoft Windows systems, start Oracle Universal Installer: From the Start menu, select Programs, then Oracle Agent - HOME_NAME, then Oracle Installation Products, and then Universal Installer.

   For Linux and UNIX-based systems, and Microsoft Windows systems, the Welcome window for Oracle Universal Installer appears.

4. Click Deinstall Products to bring up the Oracle Inventory screen.

   Select the Oracle home directory and the products that you want to remove by selecting the desired check boxes, then click Remove. The Confirmation window appears. Click Yes to remove the selected components.

   After the deinstallation removes the Oracle Audit Vault collection agent components from your system, the Oracle Inventory page appears without the removed components. Click Close to close the Oracle Inventory page. Click Cancel to exit Oracle Universal Installer. Click Yes to confirm that you want to exit.

5. Clean up the old Oracle directories.

   On systems where Oracle Audit Vault collection agent is the only Oracle software installed, navigate to the directory for `oracle`, and remove the directory.

   For Linux and UNIX-based systems, use the `rm -r` command.

   Otherwise, delete the Oracle Audit Vault collection agent home.

   For Linux and UNIX-based systems, issue the following command to confirm there is no other Oracle home installed.

       $ grep 'HOME NAME' OraInventory/ContentsXML/inventory.xml

   For Microsoft Windows systems, you must manually remove remaining registry keys, environment variables, Start menu options, and directories. See Section 5.2 for details.

## 5.2 For Microsoft Windows Systems: Manually Remove the Remaining Oracle Audit Vault Collection Agent Components

Oracle Universal Installer does not remove all Oracle Audit Vault collection agent components. After using Oracle Universal Installer to remove Oracle Audit Vault collection agent components, you must manually remove the remaining registry keys, environment variables, Start menu options, and directories.

This section contains these topics:

- Removing Oracle Audit Vault Collection Agent Keys from the Registry Editor on Microsoft Windows

- Updating the PATH Environment Variable Path

- Removing Oracle Audit Vault Collection Agent from the Start Menu

- Removing Oracle Audit Vault Collection Agent Directories

Note:

In rare situations, you might want to correct serious system problems by completely removing Oracle Audit Vault collection agent components manually from the computer without first deinstalling Oracle Audit Vault collection agent with Oracle Universal Installer. Do this only as a last resort, and only if you want to remove all Oracle Audit Vault collection agent components from your system.

### 5.2.1 Removing Oracle Audit Vault Collection Agent Keys from the Registry Editor on Microsoft Windows

Oracle Universal Installer does not delete all services created by Oracle Net Configuration Assistant. In addition, it does not delete several other registry keys. You must remove any existing registry keys manually by following the instructions in one of the following sections:

- Removing Only the Oracle Audit Vault Collection Agent Service Registry Key

- Removing Only the Oracle Audit Vault Collection Agent Registry Keys

Caution:

Use Microsoft Registry Editor at your own risk. Incorrectly using the Registry Editor can cause serious problems and might require you to reinstall your operating system.

#### 5.2.1.1 Removing Only the Oracle Audit Vault Collection Agent Service Registry Key

To remove only the Oracle Audit Vault collection agent Service registry entry (if it exists):

1. Log in as a member of the Administrators group.

2. Ensure that you first follow the instructions in Step 3 in Section 5.1 about stopping Oracle services on Microsoft Windows before removing Oracle Audit Vault collection agent components.

3. From the Start menu, choose Run, and then enter the following command:

       regedit

4. Go to `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services` and delete the `Oracle Audit Vault Agent -` `agent name` registry entry.

   When you ran Oracle Universal Installer to deinstall Oracle Audit Vault collection agent, it deleted all other Oracle Net services.

5. Exit the Registry Editor.

6. Restart your computer.

#### 5.2.1.2 Removing Only the Oracle Audit Vault Collection Agent Registry Keys

To remove the Oracle Audit Vault collection agent registry keys from a computer (if any exist):

Caution:

These instructions remove only the Oracle Audit Vault collection agent components, services, and registry entries from your computer. Exercise extreme care when removing registry entries. Removing incorrect entries can break your system. Any database files under `ORACLE_BASE`\`ORACLE_HOME`\`Oracle Audit Vault Agent Name` should be deleted only after completing these instructions.

1. Log in as a member of the Administrators group.

2. Ensure that you first follow the instructions in Step 3 in Section 5.1 about stopping Oracle Audit Vault collection agent Microsoft Windows service before removing the Oracle Audit Vault collection agent components.

3. From the Start menu, choose Run, and enter the following command:

       regedit

4. Go to `HKEY_LOCAL_MACHINE\SOFTWARE`.

5. Delete the `ORACLE` key named `KEY_``AgentHOME_NAME`, similar to KEY_OraAV10g_home1.

6. Exit the Registry Editor.

7. Restart your computer.

### 5.2.2 Updating the PATH Environment Variable Path

Check the `PATH` environment variable and remove any Oracle entries.

1. Display System in the Control Panel.

2. Select the Advanced tab and then click Environment Variables.

3. Select the system variable `PATH` and edit it to remove any Oracle entries.

   For example, remove Oracle entries that contain `ORACLE_BASE``\``ORACLE_HOME` in the `Path` variable. You may see a `Path` variable that contains entries similar to the following:

       ORACLE_BASE\ORACLE_HOME\product\10.2.3\av_agent_1\bin

4. Save any changes and exit System.

### 5.2.3 Removing Oracle Audit Vault Collection Agent from the Start Menu

Check the Start menu for any Oracle Audit Vault collection agent entries and remove them.

Follow these steps:

1. Select Start, then Programs, then Oracle - Agent HOME_NAME.

2. Right-click Oracle - Agent HOME_NAME, and from the menu, select Delete.

You can also remove Oracle Audit Vault collection agent menu entries by using the following method:

1. Right-click the Start button to display the shortcut menu.

2. Select the Explore All Users option.

3. Under Documents and Settings, expand the `\Start` `Menu\Programs` folder.

4. Right-click and delete the Oracle - Agent HOME_NAME folder.

### 5.2.4 Removing Oracle Audit Vault Collection Agent Directories

After removing all Oracle Audit Vault collection agent registry keys and restarting the computer, delete any existing Oracle Audit Vault collection agent directories and files.

1. Using My Computer or Microsoft Windows Explorer, delete the `SYSTEM``_``DRIVE``:\program files\oracle` directory.

2. Using My Computer or Microsoft Windows Explorer, delete the Oracle Audit Vault `ORACLE``_``BASE` directory on your hard drive.