- At the Windows command prompt, set the
ORACLE_SIDenvironment variable to the SID for the Automatic Storage Management instance. For example:
SYSTEM_DRIVE:\> set ORACLE_SID=+ASM
- Start SQL*Plus and connect to the Automatic Storage Management instance as the
SYSuser:
SYSTEM_DRIVE:\> sqlplus sys/sys_password as sysdba
- 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;
- Identify the disk groups associated with the Automatic Storage Management instance:
- 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
To remove only the Oracle Net Service registry entry (if it exists):
- Log in as a member of the Administrators group.
- Make sure that you have stopped Oracle services by following the instructions in the "Stopping Oracle Services" section.
- From a command prompt, enter the following command:
SYSTEM_DRIVE:\> regedit
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servicesand delete theOracleHOME_NAMETNSListenerregistry entry. Oracle Universal Installer automatically deletes all other Oracle Net services.
- Exit the registry editor.
- Restart your computer.To remove all Oracle registry keys from a computer:Caution:These instructions remove all Oracle components, services, and registry entries from your computer. Use extreme care when removing registry entries. Removing incorrect entries can break your system. Do not delete any database files under
ORACLE_BASE\ORACLE_HOME\DB_NAMEuntil you have completed these instructions.
- Log in as a member of the Administrators group.
- Make sure that you have stopped Oracle services by following the instructions in the "Stopping Oracle Services" section.
- Start the registry editor at the command prompt:
SYSTEM_DRIVE:\> regedit
- Go to
HKEY_CLASSES_ROOT.
- Delete keys that begin with
Ora,Oracle,Orcl, orEnumOra.
This collection of keys includes those that begin with the following:
- EnumOraHomes
- OracleConfig
- OracleDatabase
- OracleHome
- OracleInProcServer
- OracleProcess
- ORADC
- ORAMMCCFG10
- ORAMMCPMON10
- OraOLEDB
- OraPerfMon
- ORCLMMC
- ORCLSSO
- EnumOraHomes
- Go to
HKEY_CURRENT_USER.
- Delete the
ORACLEkey.
- Go to
HKEY_CURRENT_USER\Software.
- Delete all Oracle keys, including
Oracle-HOME_NAMEentries under:Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs.
- Go to
HKEY_LOCAL_MACHINE\SOFTWAREand search for theORACLEgroup key.
SelectORACLEand note the value of theinst_lockey. This is the location of Oracle Universal Installer. The default location isc:\Program Files\Oracle\Inventory. If this value is different, make a note of it so that you can delete it later.
- Delete the
ORACLEGroupkey.
- Go to
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC.
- Expand all the subkeys under
ODBCand remove any Oracle-related ODBC driver keys, except for theMicrosoft ODBC for Oraclekey.
For example, theODBC\ODBCINST.INIdirectory lists keys for each Oracle home.
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
- Delete all keys under this branch that begin with
OracleorOraWeb.
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ Eventlog\Application.
- Delete all keys under this branch that begin with
Oracle.
- Exit the registry editor.
- Restart your computer.
6.3.3.3 Updating the System Variable Path
Check thePath 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
Pathand edit thePathvariable to remove any Oracle entries.
For example, remove Oracle entries that containORACLE_BASE\ORACLE_HOMEin thePathvariable. You may see aPathvariable that contains entries similar to the following:
C:\oracle\products\10.2.0\db_1\bin;C:\oracle\products\10.2.0\db_1\jre\
1.4.2\bin\client;C:\oracle\products\10.2.0\db_1\jre\1.4.2\bin
If the JRE path was installed by Oracle, remove it.
- If there is a
CLASSPATHvariable that was set for Oracle, delete it.
- If there are any other Oracle variables set, remove them:
ORACLE_HOME,ORACLE_SID,TNS_ADMIN,JSERV, orWV_GATEWAY_CFG.
- Save your changes and then exit the Control Panel.
6.3.3.4 Removing Oracle from the Start Menu
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.
- Right-click the Start button to display the pop-up menu.
- Select the Explore All Users option.
- Under Documents and Settings, expand the
\StartMenu\Programsfolder.
- Right-click and delete the Oracle - HOME_NAME folder.
6.3.3.5 Removing Oracle Directories
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:
- Delete the
SYSTEM_DRIVE:\ProgramFiles\Oracledirectory.
- Delete all
ORACLE_BASEdirectories on your hard drive.
- If Oracle Universal Installer was installed in a location other than the default, delete this directory.
- Remove any Oracle temporary directory files from
SYSTEM_DRIVE:\Documents and Settings\user_name\Local Settings\Temp
0 comments:
Post a Comment