如何彻底卸载oracle11g卸载主目录

如何将oracle彻底卸载干净_oracle数据库_ThinkSAAS
如何将oracle彻底卸载干净
如何将oracle彻底卸载干净
内容来源: 网络
如何将oracle彻底卸载干净
关闭所有oracle的服务和程序
选择开始| 程序|oracle Installation Products命令,运行
Universal Installer,弹出欢迎对话框
单机 卸载产品 按钮,弹出Inventory对话框
选中Inventroy对话框中的所有节点,点击删除,确认即可
选 择 开始|运行 输入regedit并按ENTER键,选择HKEY_LOCAL_MACHINESOFTWAREORACLE,删除此象,然后选择 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices,滚动此列表,删除与oracle有关的所有选项。
从桌面上、STARTUP和程序菜单中删除所有ORACLE的组和图标。
重启系统。
删除包括文件在内的安装目录。至此ORACLE的全部卸载完成。
PHP开发框架
开发工具/编程工具
服务器环境
ThinkSAAS商业授权:
ThinkSAAS为用户提供有偿个性定制开发服务
ThinkSAAS将为商业授权用户提供二次开发指导和技术支持
让ThinkSAAS更好,把建议拿来。
开发客服微信Oracle 11g 完全卸载方法_数据库技术_Linux公社-Linux系统门户网站
你好,游客
Oracle 11g 完全卸载方法
来源:Linux社区&
作者:lqding
11g 安装完毕后,如果有卸载的需要。可以有如下方法:
1.手工删除Oracle安装时建立的各目录、文件等。这种方法对于Linux还算可行,但是Window版中涉及到服务、注册表等等。往往删除不干净。
2.使用安装目录$ORACLE_HOME/deinstall/下的 deinstall脚本。
[oracle@localhost deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall_00-06-37AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/db_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for sufficient temp space availability on node(s) : 'localhost.localdomain'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall_00-06-37AM/logs/netdc_check_12-06-57-AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall_00-06-37AM/logs/databasedc_check_12-07-12-AM.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 [orcl]:
###### For Database 'orcl' ######
Single Instance Database
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/orcl
Storage type used by the Database: FS
Database file location: /u01/app/oracle/oradata/orcl,/u01/app/oracle/fast_recovery_area/orcl
Fast recovery area location: /u01/app/oracle/fast_recovery_area/ORCL
database spfile location: /u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora
The details of database(s) orcl have been discovered automatically. Do you still want to modify the details of orcl database(s)? [n]:
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall_00-06-37AM/logs/emcadc_check_12-07-52-AM.log
Checking configuration for database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /tmp/deinstall_00-06-37AM/logs//ocm_check446.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0/db_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration : orcl
Database unique name : orcl
Storage used : FS
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/deinstall_00-06-37AM/logs/deinstall_deconfig_12-06-51-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall_00-06-37AM/logs/deinstall_deconfig_12-06-51-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /tmp/deinstall_00-06-37AM/logs/emcadc_clean_12-07-52-AM.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/deinstall_00-06-37AM/logs/databasedc_clean_12-08-27-AM.log
Database Clean Configuration START orcl
This operation may take few minutes.
Database Clean Configuration END orcl
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall_00-06-37AM/logs/netdc_clean_12-09-31-AM.log
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/deinstall_00-06-37AM/logs//ocm_clean446.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/11.2.0/db_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
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall_00-06-37AM' on node 'localhost'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : orcl
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/db_1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/11.2.0/db_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) 'localhost' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'localhost' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'localhost' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
在删除的过程中有以下几点需要确认的
Specify the list of database names that are configured in this Oracle home [orcl]:
指定需要删除的数据库名称,默认即可,直接回车。
The details of database(s) orcl have been discovered automatically. Do you still want to modify the details of orcl database(s)? [n]:
是否需要修改数据库的详细信息,默认n,直接回车。
Do you want to continue (y - yes, n - no)? [n]: y
是否继续,填写y,回车
脚本结尾,提示需要使用root用户删除如下三个脚本。
rm -rf /etc/oraInst.loc
rm -rf /opt/ORCLfmap
rm -rf /etc/oratab
至此,Oracle删除完毕。
将Oracle软件再次安装
./runInstaller -silent -responseFile /home/oracle/etc/install_software_only.rsp
3. 使用专用工具
Oracle官方推荐使用专门的删除工具。原因是内置的deinstall工具脚本中常常带有很多bug,很多时候不能完全的将其删除干净。特别是Windows环境下的卸载工具,不能正常工作的场景很多。
上传工具包至服务器,直接解压,解压完毕后即可直接使用。
[oracle@localhost ~]$ unzip p040_Linux-x86-64_7of7.zip
[oracle@localhost ~]$ cd deinstall/
[oracle@localhost deinstall]$ ./deinstall -help
deinstall -home &Complete path of Oracle home&
& & & & & & &
[ -silent ]
& & & & & & &
[ -checkonly ]
& & & & & & &
[ -local ]
& & & & & & &
[ -paramfile &complete path of input parameter properties file& ]
& & & & & & &
[ -params &name1=value[ name2=value name3=value ...]& ]
& & & & & & &
[ -o &complete path of directory for saving files& ]
& & & & & & &
[ -tmpdir &complete path of temporary directory to use& ]
& & & & & & &
[ -logdir &complete path of log directory to use& ]
& & & & & & &
[ -help : Type -help to get more information on each of the above options. ]
删除Oracle
[oracle@localhost deinstall]$ ./deinstall -home $ORACLE_HOME
Location of logs /home/oracle/deinstall/./logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/db_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for sufficient temp space availability on node(s) : 'localhost.localdomain'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /home/oracle/deinstall/./logs/netdc_check_12-34-54-AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /home/oracle/deinstall/./logs/databasedc_check_12-35-03-AM.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 []: orcl
###### For Database 'orcl' ######
Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]:
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/orcl]:
Specify the storage type used by the Database ASM|FS []: FS
Specify the list of directories if any database files exist on a shared file system. If 'orcl' subdirectory is found, then it will be deleted. Otherwise, the specified directory will be deleted. Alternatively, you can specify list of database files with full path [ ]: /u01/app/oracle/oradata
Specify the fast recovery area location, if it is configured on the file system. If 'orcl' subdirectory is found, then it will be deleted. []: /u01/app/oracle/fast_recovery_area
Specify the database spfile location [ ]: /u01/app/oracle/product/11.2.0/db_1/dbs/
Database Check Configuration END
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_check_12-42-35-AM.log
Checking configuration for database orcl
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : /home/oracle/deinstall/./logs//ocm_check__12-42-35-AM.log
Oracle Configuration Manager check END
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0/db_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration : orcl
Database unique name : orcl
Storage used : FS
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: '/home/oracle/deinstall/./logs/deinstall_deconfig_12-34-51-AM.out'
Any error messages from this session will be written to: '/home/oracle/deinstall/./logs/deinstall_deconfig_12-34-51-AM.err'
######################## CLEAN OPERATION START ########################
Enterprise Manager Configuration Assistant START
EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_clean_12-42-35-AM.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: /home/oracle/deinstall/./logs/databasedc_clean_12-42-38-AM.log
Database Clean Configuration START orcl
This operation may take few minutes.
Database Clean Configuration END orcl
Network Configuration clean config START
Network de-configuration trace file location: /home/oracle/deinstall/./logs/netdc_clean_12-43-44-AM.log
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 : /home/oracle/deinstall/./logs//ocm_clean__12-42-35-AM.log
Oracle Configuration Manager clean END
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done
Delete directory '/u01/app/oracle/product/11.2.0/db_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
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall_00-34-49AM' on node 'localhost'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : orcl
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/db_1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/11.2.0/db_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) 'localhost' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'localhost' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'localhost' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
更多Oracle相关信息见 专题页面
本文永久更新链接地址:
相关资讯 & & &
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款325388人阅读
数据库(30)
完全卸载oracle11g步骤:
1、 开始->设置->控制面板->管理工具->服务 停止所有Oracle服务。
2、 开始->程序->Oracle - OraHome81->Oracle Installation Products-> Universal Installer,单击“卸载产品”-“全部展开”,选中除“OraDb11g_home1”外的全部目录,删除。
5、 运行regedit,选择HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE,按del键删除这个入口。
6、 运行regedit,选择HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services,滚动这个列表,删除所有Oracle入口(以oracle或OraWeb开头的键)。
7、 运行refedit,HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application,删除所有Oracle入口。
8、 删除HKEY_CLASSES_ROOT目录下所有以Ora、Oracle、Orcl或EnumOra为前缀的键。
9、 删除HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs中所有以oracle开头的键。
10、删除HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI中除Microsoft ODBC for Oracle注册表键以外的所有含有Oracle的键。
11、我的电脑--&属性--&高级--&环境变量,删除环境变量CLASSPATH和PATH中有关Oracle的设定。
12、从桌面上、STARTUP(启动)组、程序菜单中,删除所有有关Oracle的组和图标。
13、删除所有与Oracle相关的目录(如果删不掉,重启计算机后再删就可以了)包括:
&&& 1.C:\Program file\Oracle目录。
&&& 2.ORACLE_BASE目录(oracle的安装目录)。
&&& 3.C:\WINDOWS\system32\config\systemprofile\Oracle目录。
&&& 4.C:\Users\Administrator\Oracle或C:\Documents and Settings\Administrator\Oracle目录。
&&& 5.C:\WINDOWS下删除以下文件ORACLE.INI、oradim73.INI、oradim80.INI、oraodbc.ini等等。
&&& 6.C:\WINDOWS下的WIN.INI文件中若有[ORACLE]的标记段,删除该段。
14、如有必要,删除所有Oracle相关的ODBC的DSN
15、到事件查看器中,删除Oracle相关的日志 说明: 如果有个别DLL文件无法删除的情况,则不用理会,重新启动,开始新的安装,安装时,选择一个新的目录,则,安装完毕并重新启动后,老的目录及文件就可以删除掉了。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:614134次
积分:3057
积分:3057
排名:第9481名
原创:72篇
转载:23篇
评论:66条
(1)(2)(3)(4)(1)(2)(2)(1)(5)(3)(1)(3)(5)(8)(3)(3)(2)(1)(3)(2)(3)(7)(7)(4)(4)(8)(4)(2)(6)oracle(8)
在Windows7平台上如何彻底的卸载Oracle进行说明。
& 因为Oracle在Windows下的卸载颇有一些麻烦,如果不能完全卸载有可能影响将来的再次安装!常规卸载方法是运行Oracle的自带的卸载程序,可遗憾的是我在卸载时总不能完全卸载,当我再次安装Oracle时,就会出现莫名其妙的问题,并且这种卸载方式比较麻烦,比较慢,下面我介绍一种比较快并且能够彻底卸载Oracle的方法。
&&1.关闭oracle所有的服务。可以在windows的服务管理器中关闭;
&&2.打开注册表:regedit 打开路径:
&&HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/&
& 删除该路径下的所有以oracle开始的服务名称,这个键是标识Oracle在windows下注册的各种服务!
&&3.打开注册表,找到路径:
&&HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE
& 删除该oracle目录,该目录下注册着Oracle数据库的软件安装信息。
&&4.删除注册的oracle事件日志,打开注册表
&&HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application
& 删除注册表的以oracle开头的所有项目。
&&5.删除环境变量path中关于oracle的内容。
& 鼠标右键右单击“我的电脑--&属性--&高级--&环境变量--&PATH&变量。
& 删除Oracle在该值中的内容。注意:path中记录着一堆操作系统的目录,在windows中各个目录之间使用分号(;)隔开的,删除时注意。
&&建议:删除PATH环境变量中关于Oracle的值时,将该值全部拷贝到文本编辑器中,找到对应的Oracle的值,删除后,再拷贝修改的串,粘贴到PATH环境变量中,这样相对而言比较安全。
&&6.重新启动操作系统。
&&& 以上1~5个步骤操作完毕后,重新启动操作系统。
&&7.重启操作系统后各种Oracle相关的进程都不会加载了。这时删除Oracle_Home下的所有数据。(Oracle_Home指Oracle程序的安装目录)
&&8.删除C:/Program Files下oracle目录。
&&& (该目录视Oracle安装所在路径而定)
&&9.删除开始菜单下oracle项,如:
&& C:/Documents and Settings/All Users/「开始」菜单/程序/Oracle - Ora10g
&& 不同的安装这个目录稍有不同。
&& 如果不删除开始菜单下的Oracle相关菜单目录,没关系,这个不影响再次安装Oracle.当再次安装Oracle时,该菜单会被替换。
& 至此,Windows平台下Oracle就彻底卸载了。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:1132次
排名:千里之外

我要回帖

更多关于 oracle11g卸载教程 的文章

 

随机推荐