- At the Windows command prompt, set the
ORACLE_SID
environment 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
SYS
user:
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
- 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\Services
and delete theOracle
HOME_NAME
TNSListener
registry 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_NAME
until 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
ORACLE
key.
- Go to
HKEY_CURRENT_USER\Software
.
- Delete all Oracle keys, including
Oracle-
HOME_NAME
entries under:Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs
.
- Go to
HKEY_LOCAL_MACHINE\SOFTWARE
and search for theORACLE
group key.
SelectORACLE
and note the value of theinst_loc
key. 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
ORACLE
Group
key.
- Go to
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
.
- Expand all the subkeys under
ODBC
and remove any Oracle-related ODBC driver keys, except for theMicrosoft ODBC for Oracle
key.
For example, theODBC\ODBCINST.INI
directory lists keys for each Oracle home.
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
.
- Delete all keys under this branch that begin with
Oracle
orOraWeb
.
- 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
Path
and edit thePath
variable to remove any Oracle entries.
For example, remove Oracle entries that containORACLE_BASE
\
ORACLE_HOME
in thePath
variable. You may see aPath
variable 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
CLASSPATH
variable 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
\Start
Menu\Programs
folder.
- 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
:\Program
Files\Oracle
directory.
- Delete all
ORACLE
_
BASE
directories 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