Oracle Databaseソフトウェアの削除
http://otndnld.oracle.co.jp/document/products/oracle11g/111/windows/E05878-02/deinstall.htm
转载网上关于oracle11g的卸载方法:【方法错误】 不是11g的
1、开始->设置->控制面板->管理工具->服务停止所有Oracle服务;
2、开始->程序->Oracle – OraDb10g_home1>Oracle Installation Products-> Universal Installer 卸装所有Oracle产品,但Universal Installer本身不能被删除;
3、运行regedit,选择HLMSOFTWAREORACLE,删除这个入口;
4、运行regedit,选择HLMSYSTEMCurrentControlSetServices,滚动这个列表,删除所有Oracle入口;
5、运行regedit,选择HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplication,删除所有Oracle入口;
6、开始->设置->控制面板->系统->高级->环境变量,删除环境变量CLASSPATH和PATH中有关Oracle的设定;
7、从桌面上、STARTUP(启动)组、程序菜单中,删除所有有关Oracle的组和图标;
8、删除X:Program FilesOracle目录;
9、重新启动计算机,重起后才能完全删除Oracle所在目录 ;
10、删除与Oracle有关的文件,选择Oracle所在的缺省目录C:Oracle,删除这个入口目录及所有子目录,并从Windows XP目录(一般为d:WINDOWS)下删除以下文件ORACLE.INI、oradim73.INI、oradim80.INI、oraodbc.ini等等;
11、WIN.INI文件中若有[ORACLE]的标记段,删除该段;
12、如有必要,删除所有Oracle相关的ODBC的DSN;
13、到事件查看器中,删除Oracle相关的日志 说明:如果有个别DLL文件无法删除的情况,则不用理会,重新启动,开始新的安装,安装时,选择一个新的目录,则,安装完毕并重新启动后,老的目录及文件就可以删除掉了。
在卸载oracle时,没必要手工去停止那些服务,当卸载时,oracle会自动先去停止所有有关的服务。
11g卸载时,会提示去执行一个bat
app/oracle/product/11.2.0/dbhome_1/deinstall/deinstall
类似信息如下:
Checking for required files and bootstrapping …
Please wait …
Location of logs /tmp/deinstall2009-09-06_01-53-49-PM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START ########################
Install check configuration START
Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/dbhome_1
Oracle Home type selected for de-install is: SIDB
Oracle Base selected for de-install is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Install check configuration END
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2009-09-06_01-53-49-PM/logs/netdc_check5969876881546025484.log
Specify all Single Instance listeners that are to be de-configured [LISTENER]:
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2009-09-06_01-53-49-PM/logs/databasedc_check6393155117405937765.log
Use comma as separator when specifying list of values as input
Specify the list of database names that are configured in this Oracle home []:
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall2009-09-06_01-53-49-PM/logs/emcadc_check.log
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall2009-09-06_01-53-49-PM/logs//ocm_check5624.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for de-install is: /u01/app/oracle/product/11.2.0/dbhome_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
No Enterprise Manager configuration to be updated for any database(s)
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
Do you want to continue (y – yes, n – no)? [n]: y
A log of this session will be written to: ‘/tmp/deinstall2009-09-06_01-53-49-PM/logs/deinstall_deconfig2009-09-06_12-54-14-AM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2009-09-06_01-53-49-PM/logs/deinstall_deconfig2009-09-06_12-54-14-AM.err’
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall2009-09-06_01-53-49-PM/logs/emcadc_clean.log
Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: /tmp/deinstall2009-09-06_01-53-49-PM/logs/databasedc_clean5177710755362619206.log
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2009-09-06_01-53-49-PM/logs/netdc_clean2059809047871121170.log
De-configuring Single Instance listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.
De-configuring backup files…
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
Oracle Configuration Manager clean START
OCM clean log file location : /tmp/deinstall2009-09-06_01-53-49-PM/logs//ocm_clean5624.log
Oracle Configuration Manager clean END
Oracle Universal Installer clean START
Detach Oracle home ‘/u01/app/oracle/product/11.2.0/dbhome_1’ from the central inventory on the local node : Done
Delete directory ‘/u01/app/oracle/product/11.2.0/dbhome_1’ on the local node : Done
Delete directory ‘/u01/app/oraInventory’ on the local node : Done
Delete directory ‘/u01/app/oracle’ on the local node : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
Oracle install clean START
Clean install operation removing temporary directory ‘/tmp/install’ on node ‘vm10’
Oracle install clean END
Moved default properties file /tmp/deinstall2009-09-06_01-53-49-PM/response/deinstall_OraDb11g_home1.rsp as /tmp/deinstall2009-09-06_01-53-49-PM/response/deinstall_OraDb11g_home1.rsp4
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Following Single Instance listener(s) were de-configured successfully: LISTENER
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Successfully detached Oracle home ‘/u01/app/oracle/product/11.2.0/dbhome_1’ from the central inventory on the local node.
Successfully deleted directory ‘/u01/app/oracle/product/11.2.0/dbhome_1’ on the local node.
Successfully deleted directory ‘/u01/app/oraInventory’ on the local node.
Successfully deleted directory ‘/u01/app/oracle’ on the local node.
Oracle Universal Installer cleanup was successful.
Run ‘rm -rf /etc/oraInst.loc’ as root on node(s) ‘vm10’ at the end of the session.
Oracle install successfully cleaned up the temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############