|Oracle® Database Installation Guide
11g Release 1 (11.1) for Microsoft Windows
|PDF · Mobi · ePub|
Note:Always use Oracle Universal Installer to remove Oracle components. To avoid installation and configuration problems with new Oracle installations, follow the instructions in this chapter.
Oracle Real Application Clusters Installation Guide for Microsoft Windows for information about removing an Oracle RAC installation
Component-specific documentation for individual requirements and restrictions
To uninstall Oracle Configuration Manager, follow these steps:
ORACLE_BASE\ORACLE_HOME directory contains a database, remove the Oracle Configuration Manager user and the associated objects from the database by running the following script:
If the database is a repository for Oracle Grid Control, log in to the database as the
SYSMAN user and remove the additional objects from the database by running the following script:
To stop the Scheduler and remove the service or the
crontab entry, enter the following command:
ORACLE_BASE\ORACLE_HOME\ccr\bin\deployPackages -d ORACLE_BASE\ORACLE_HOME\ccr\inventory\core.jar
ccr directory by entering the following command:
DRIVE_LETTER:\rmdir /s/q ORACLE_BASE\ORACLE_HOME\ccr
Oracle Configuration Manager is successfully uninstalled.
The first time you install Oracle Database, if you selected Automatic Storage Management as a storage and recovery option, Oracle Universal Installer configures and starts a single-instance version of the Oracle Cluster Synchronization Services (CSS) service.
If you did not choose Automatic Storage Management as a storage or recovery option, you can delete the
OracleCSService service. To delete this service without deleting the Oracle home, perform the following:
Open a command prompt window.
Temporarily set the
ORACLE_HOME environment variable. For example:
localconfig batch file with the
delete option to delete the
OracleCSService service. For example:
Note:You do not need to complete this step if you are removing the Oracle home.
This section describes how to remove the Oracle Application Express schema, synonyms, and users from the database without deleting the database. If you are going to delete the database, then you do not need to complete these steps.
After using Oracle Universal Installer to remove Oracle Application Express from its Oracle home, you can remove Oracle Application Express components from the database. Perform the following steps:
Note:You should not follow these steps if you have upgraded your database from a prior release, and still want to use the prior release of Oracle Application Express.
Use SQL*Plus to connect to the database as the privileged user
SYS, for example:
DRIVE_LETTER:\sqlplus /nolog SQL> CONNECT SYS AS SYSDBA Enter password: SYS_password
Execute the following commands:
SQL> ALTER SESSION SET CURRENT_SCHEMA = flows_030000; SQL> EXEC wwv_flow_upgrade.drop_public_synonyms; SQL> ALTER SESSION SET CURRENT_SCHEMA = SYS; SQL> DROP USER flows_030000 CASCADE; SQL> DROP USER flows_files CASCADE; SQL> DROP USER apex_public_user CASCADE;
Use Oracle Universal Installer to remove Oracle components from the inventory on the computer. Afterward, you need to manually remove the remaining components.
Do not delete Oracle home files or directories (for example, using Windows Explorer or the command prompt) without first using Oracle Universal Installer unless you exit Oracle Universal Installer during an installation. Otherwise, the components in the Oracle home remain registered in the Oracle Universal Installer inventory. If you manually delete Oracle home files and you attempt an installation in the same Oracle home, then some or all of the selected components may not be installed or properly configured.
Oracle Universal Installer does not register the installation in its inventory if the installation is unexpectedly interrupted. However, files may have been copied to your Oracle home. Remove these files manually and restart the installation.
Note:You can use Oracle Database Configuration Assistant to remove an instance and related services. For information about Oracle Database Configuration Assistant, see "Installing Oracle Database and Building the Database" chapter of Oracle Database 2 Day DBA.
This section contains these steps:
Follow these steps:
Open the Windows Services utility: From the Start menu, select Programs, then then Administrative Tools, and then Services.
If any Oracle services (names begin with
Ora) exist and have the status Started, then select each of the services, and click Stop.
Stop the Distributed Transaction Coordinator Service.
Restart the computer.
See Also:The Microsoft online Help for more information about stopping services
Ensure that you first follow the instructions in the "Stopping Oracle Services" section.
The Welcome window for Oracle Universal Installer appears.
Click the Deinstall Products button.
The Inventory window appears.
Expand the tree of installed components until you find the components to remove.
For example, if you installed a database with the Enterprise Edition option and later installed additional components with the Custom option, expand the Oracle home component to display all the components installed in the Oracle home.
Select the components to remove.
The Confirmation window appears.
In the Confirmation dialog box, click Yes to remove the selected components.
Note:A message may appear indicating that removing some components may cause other components to not function properly.
After the components are removed from your computer, the Inventory window appears without the removed components.
Click Close to close the Inventory window.
Click Cancel to exit Oracle Universal Installer.
Click Yes to confirm that you want to exit.
Note:You cannot perform an Oracle database installation from the same Oracle Universal Installer session in which you perform a deinstallation of Oracle database. In other words, if you deinstall Oracle database with Oracle Universal Installer and want to perform another Oracle database installation. then you must start a new Oracle Universal Installer session.
Oracle Universal Installer does not remove all Oracle components. After using Oracle Universal Installer to remove Oracle components, you need to manually remove remaining environment variables, Start menu options, and directories.
This section covers the following topics:
Note:In rare situations, you may want to correct serious system problems by completely removing Oracle components manually from the computer without first deinstalling with Oracle Universal Installer. Do this only as a last resort, and only if you want to remove all Oracle components from your system.
To remove an Automatic Storage Management instance running in the Oracle home after the database has been removed, perform the following steps:
At the Windows command prompt, set the
ORACLE_SID environment variable to the SID for the Automatic Storage Management instance. For example:
Start SQL*Plus and connect to the Automatic Storage Management instance as the
DRIVE_LETTER:\sqlplus /nolog SQL> CONNECT SYS AS SYSASM Enter password: SYS_password
Enter the following command to determine whether any Oracle database instances are using the Automatic Storage Management instance:
SQL> SELECT INSTANCE_NAME FROM V$ASM_CLIENT;
This command lists all of the database instances that are using this Automatic Storage Management instance. This command only lists database instances that are running. It is possible that other instances are associated with the Automatic Storage Management instance, but they are not currently running.
If you removed a database from this Oracle home but the output from the command shows that this Automatic Storage Management instance is supporting a database instance in another Oracle home, do not remove the Automatic Storage Management instance or the Oracle home.
If there are no database instances associated with this Automatic Storage Management instance, drop the disk group associated with this instance.
Note:Dropping the Automatic Storage Management disk group makes the disk device available for use with another Automatic Storage Management instance, if required. However, all data in the disk group is lost. Make sure that no other database instance requires any data from this disk group before you drop it.
Identify the disk groups associated with the Automatic Storage Management instance:
SQL> SELECT NAME FROM V$ASM_DISKGROUP;
For each disk group that you want to delete, enter a command similar to the following:
SQL> DROP DISKGROUP disk_group_name INCLUDING CONTENTS;
Shut down the Automatic Storage Management instance and exit SQL*Plus:
SQL> SHUTDOWN SQL> EXIT
At the command prompt, enter the following command to remove the Automatic Storage Management service:
ORADIM -DELETE -ASMSID +ASM
Path environmental variable and remove any Oracle entries.
Open System from the Control Panel.
In the System Properties dialog box, click the Advanced tab, then click the Environment Variables button.
Select the system variable
Path and edit the
Path variable to remove any Oracle entries.
For example, remove Oracle entries that contain
ORACLE_HOME in the
Path variable. You may see a
Path variable that contains entries similar to the following:
If the JRE path was installed by Oracle, remove it.
If there is a
CLASSPATH variable that was set for Oracle, delete it.
If there are any other Oracle variables set, remove them:
Save your changes and then exit the Control Panel.
Check the Start menu for any Oracle entries and remove them.
Follow these steps:
Select Start, then Programs, and then Oracle - HOME_NAME.
Right-click Oracle - HOME_NAME, and from the menu, select Delete.
You can also remove Oracle menu entries by using the following method:
Right-click the Start button to display the pop-up menu.
Select the Explore All Users option.
Under Documents and Settings, expand the
Right-click and delete the Oracle - HOME_NAME folder.
After removing all Oracle registry keys and restarting the computer, delete any existing Oracle directories and files.
Use My Computer or Windows Explorer to delete the following directories:
If Oracle Universal Installer was installed in a location other than the default, delete this directory.
Remove any Oracle temporary directory files from
:\Documents and Settings\