Uninstalling Oracle Fusion Middleware Products
Recently I’ve had to uninstall Oracle Internet Directory and Oracle Virtual Directory version 126.96.36.199.0 on a Windows server. The uninstallation instructions provided in the Oracle Fusion Middleware Installation Guide are a good start, but some additional steps are required on the WebLogic side.***NOTE: As with all Tips and Tricks we provide on the IDMWorks blog, use the following AT YOUR OWN RISK. We do not guarantee this will work in your environment and make no warranties***
Recently I’ve had to uninstall Oracle Internet Directory and Oracle Virtual Directory version 188.8.131.52.0 on a Windows server. The uninstallation instructions provided in the Oracle Fusion Middleware Installation Guide are a good start, but some additional steps are required on the WebLogic side.
Here are the steps needed to uninstall OID and OVD 11g:
1. In a command prompt go to $ORACLE_HOMEouibin (i.e. C:OracleMiddlewareOracle_IDM1)
2. Enter setup.exe –deinstall
3. After the Welcome screen you will get three options presented to you:
a. De-install Oracle Home
b. De-install ASInstances managed by WebLogic Domain
c. De-install Unmanaged ASInstances
Assuming you did a standard install of OID and OVD then you are going to have an ASInstance managed by WebLogic.
From this menu you want to select “option b” (De-Install ASInstances managed by WebLogic Domain).
Note: Make sure you de-install the ASInstance first before you uninstall Oracle Home. If you uninstall Oracle Home first, then the uninstaller will be gone and the ASInstance will still be remaining.
4. On the next screen you will need to enter the following information:
a. Domain Host Name:
b. Domain Port No: (i.e. 7001)
c. User name: (i.e. weblogic)
d. Password: <password for weblogic admin user)
Note: Make sure the WebLogic admin server is running.
5. On the next screen you must specify the Managed Instance Directory (i.e. C: OracleMiddlewareasinst_1).
6. After the uninstall of the Managed instance is completed you will need to run the setup.exe –deinstall command again.
7. This time you want to select Deinstall Oracle Home.
8. Specify the Oracle Home Directory on the next screen (i.e. C:OracleMiddlewareOracle_IDM1).
After the uninstall process is complete you are 3/4ths of the way done with completely uninstalling OID and OVD. The uninstall process leaves behind the IDMDomain (or whatever Domain name you provided during installation) that was created in WebLogic. If you try to re-install OID, OVD or any other Fusion Middleware IDM component you’ll have to specify another Domain name unless you take these additional steps:
1. Go to the IDMDomain folder in windows explorer (i.e. C:OracleMiddlewareuser_projectsdomains).
2. Delete the IDMDomain folder and all its contents.
3. After the domain is deleted you will need to update the NodeManager domain configuration. Navigate to the folder containing the nodemanager.domains file (i.e. C:OracleMiddlewarewlserver_10.3commonnodemanager)
Note: Before modifying any files, it’s always best practice to make a copy of it first.
4. Open the file and remove the IDMDomain line. (i.e. IDMDomain=C:\Oracle\Middleware\user_projects\domains\IDMDomain)
5. Navigate to the folder containing the domain-registry.xml file (i.e. C:OracleMiddleware)
6. Open the file and remove the IDMDomain line.
7. Go to Start->All Programs->Oracle WebLogic->User Projects and delete the IDMDomain folder and its contents.
Note: Remember to also use the RCU to drop the OID database tables
Now you should have a clean WebLogic instance if you want to re-install OID or OVD.