This chapter describes how to deinstall or reinstall Oracle Enterprise Repository.
You should always use the instructions provided in this chapter for removing the software. If you try to remove the software manually, you may experience problems when you try to reinstall the software again at a later time. Following the procedures in this chapter will ensure that the software is properly removed.
This chapter includes the following sections:
The Oracle Fusion Middleware deinstaller removes the software from the Oracle home directory from which it is started. Table 7-1 summarizes the procedure and provides links to supporting documentation.
Table 7-1 Roadmap for Deinstalling Oracle Fusion Middleware Infrastructure
Task | Description | Documentation |
---|---|---|
Stop and Remove the Application |
Stop and remove the Oracle Enterprise Repository Application |
See Section 7.2. |
Stop and Delete the Managed Server |
Stop and delete the Oracle Enterprise Repository Managed Server |
See Section 7.3. |
Remove your database schemas. |
Run Repository Creation Utility to remove your database schemas. |
See Section 7.4. |
Remove the Oracle Enterprise Repository Data Source |
Remove the data source connection |
See Section 7.4. |
Roll Back Patches that You Have Applied |
Roll back any patches that you have applied to Oracle Enterprise Repository |
See Section 7.6. |
Deinstalling the Software. |
Run the product deinstaller to remove Oracle Fusion Middleware Infrastructure. |
See Section 7.7. |
Remove the program shortcuts on Windows operating systems. |
The deinstaller does not remove the program shortcuts on your Windows operating system. |
See Section 7.8. |
Remove your domain and application data. |
The deinstaller does not remove data contained in your Domain home or Application home directories, even if they are located inside the Oracle home. If necessary, you must remove these directories manually. |
See Section 7.9. |
Before running the deinstaller, you should stop and delete the application, which also removes the deployment.
To stop and delete the application deployment:
Navigate to the WebLogic Server Administration console. From the Domain Structure panel, select Deployments to open the Deployments page.
Select the check box next to the oer_server, and then click the Stop button. Select the Force Stop Option.
Attempt to access the application. It should be unavailable.
Tip:
You may see a cached version of the application home page. Click the Refresh button in your browser to bypass the cached page.Return to the Deployments page on the WebLogic Server Administration console.
From the Change Center, click Lock and Edit.
Note:
This step is not necessary if configuration editing is enabled.Select the check box next to the oer_server, and then click the Delete button.
From the Change Center, click Activate Changes.
Note:
This step is not necessary if configuration editing is enabled.Before running the deinstaller, you should stop and delete the Managed server(s).
To delete the managed server(s):
Navigate to the WebLogic Server Administration console. From the Domain Structure panel, expand Environment, and then select Servers to open the servers page.
From the Control tab, select the check box next to oer_server1
, and then click the Shutdown button. Select the Force Shutdown Now option. Repeat this step for any additional managed servers deployed (such as in a clustered environment).
From the Change Center on the Configuration tab, click Lock and Edit.
Note:
This step is not necessary if configuration editing is enabled.From the Configuration tab, select the check box next to oer_server1
, and then click the Delete button. Repeat this step for any additional managed servers deployed (such as in a clustered environment).
From the Change Center, click Activate Changes.
Note:
This step is not necessary if configuration editing is enabled.Before your Oracle home is removed, you should run Repository Creation Utility to remove the database schemas associated with this domain. Each domain has its own set of schemas, uniquely identified by a custom prefix (see "Understanding Custom Prefixes" in Oracle Fusion Middleware Creating Schemas with the Repository Creation Utility). This set of schemas cannot be shared with any other domain (see "Planning Your Schema Creation" in Oracle Fusion Middleware Creating Schemas with the Repository Creation Utility).
If there are multiple sets of schemas on your database, be sure to identify the schema prefix associated with the domain you are removing.
For schema removal instructions, see "Dropping Schemas" in Oracle Fusion Middleware Creating Schemas with the Repository Creation Utility.
You must remove the Oracle Enterprise Repository Data Source connection as a part of the deinstallation process.
To remove the Oracle Enterprise Repository Data Source:
Navigate to the WebLogic Server Administration console. From the Domain Structure panel, expand Services, and then select Data Sources to open the Data Sources page.
From the Change Center, click Lock and Edit.
Note:
This step is not necessary if configuration editing is enabled.Select the check box next to OERDataSource
, and then click the Delete button.
From the Change Center, click Activate Changes.
Note:
This step is not necessary if configuration editing is enabled.Before you continue the deinstallation process, you must roll back any patches that you have applied to the Oracle Enterprise Repository installation.
Note:
Failing to roll back patches they you have applied may prevent you from applying the same patches if you decide to reinstall the software.See "Rolling Back a Patch You Have Applied" in Patching with OPatch for information about rolling back patches applied with OPatch.
Follow the instructions in this section to start the product deinstaller and remove the software.
If you want to perform a silent (command-line) deinstallation, see "Running the Oracle Universal Installer for Silent Deinstallation" in Oracle Fusion Middleware Installing Software with the Oracle Universal Installer.
To start the deinstaller on a Windows operating system, do one of the following:
Use a file manager window to go to the ORACLE_HOME
\oui\bin
directory and double click on deinstall.cmd
.
From the command line, go to the ORACLE_HOME
\oui\bin
and enter the following command:
deinstall.cmd
From the Start menu, select All Programs, then select Oracle, then select OracleHome, then select Uninstall Oracle Middleware.
To start the deinstaller on a UNIX operating system, go to the ORACLE_HOME
/oui/bin
directory and enter the following command:
./deinstall.sh
The deinstallation program displays a series of screens, in the order listed in Table 7-2.
If you need additional help with any of the deinstallation screens, click the screen name.
Table 7-2 Deinstall Screens and Descriptions
Screen | Description |
---|---|
This screen introduces you to the product deinstaller. |
|
This screen shows the Oracle home directory and its contents that will be deinstalled. Verify that this is the correct directory. Click Deinstall to begin removing the software. |
|
This screen shows the progress of the deinstallation. |
|
This screen appears when the deinstallation is complete. Review the information on this screen, then click Finish to dismiss the deinstaller. |
On Windows operating systems, you must also manually remove the program short cuts; the deinstaller does not remove them for you.
If you are no longer going to use the domain and application files, use the following procedure to remove them.
To remove your domain and application data:
Manually remove your Domain home directory.
For example, if your Domain home directory was /home/Oracle_Home/user_projects/domains/oer
on a UNIX operating system:
> cd /home/Oracle_Home/user_projects/domains > rm -rf oer
On a Windows operating system, if your Domain home directory was C:\Oracle_Home\user_projects\domains\oer
, use a file manager window and navigate to the C:\Oracle_Home\user_projects\domains
directory, then right-click on the oer
folder and select Delete.
Manually remove your Application home directory.
For example, if your Application home directory was /home/Oracle_Home/oer
on a UNIX operating system:
> cd /home/Oracle_Home/ > rm -rf oer
On a Windows operating system, if your Application home directory was C:\Oracle_Home\oer
, use a file manager window and navigate to the C:\Oracle_Home
directory, then right-click on the oer
folder and select Delete.
Backup the domain_registry.xml
file in your Oracle home, then edit the file and remove the line associated with the domain you are removing. For example, to remove the oer
domain, find the following line and remove it:
<domain location="/home/Oracle_Home/user_projects/domains/oer"/>
Save and exit the file when you are finished.
You can reinstall your software into the same Oracle home as a previous installation only if you have deinstalled the software according to the instructions in this chapter, including manually removing the Oracle home directory. When you reinstall, you can then specify the same Oracle home as your previous installation.
Consider the following cases where the Oracle home is not empty:
Installing in an existing Oracle home that contains the same feature sets.
The installer will warn you that the Oracle home you specified during the installation already contains the same software you are trying to install. Your options are to:
Select a different installation type. In this case, only the feature sets that do not already exist in the Oracle home directory will be installed.
Select a different Oracle home directory.
Installing in an existing, non-empty Oracle home.
For example, suppose that you have chosen to create your Domain home or Application home somewhere inside your existing Oracle home. This data is not removed during the deinstallation process, so if you attempt to reinstall into the same Oracle home, the installer will not allow it. Your options are to:
Deinstall your software from the Oracle home as described in this chapter, and then remove the Oracle home directory. After this is complete, you can reinstall and reuse the same Oracle home location, using the instructions in Chapter 2. Any domain or application data that was in the Oracle home will have to be re-created.
Select a different Oracle home directory.