当前位置:  数据库>oracle

Oracle 11g 完全卸载方法

    来源: 互联网  发布时间:2017-06-19

    本文导语: Oracle 11g 安装完毕后,如果有卸载的需要。可以有如下方法: 1.手工删除Oracle安装时建立的各目录、文件等。这种方法对于Linux还算可行,但是Window版中涉及到服务、注册表等等。往往删除不干净。 2.使用安装目录$ORACLE_HOME/deinsta...

Oracle 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/deinstall2015-08-22_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/deinstall2015-08-22_00-06-37AM/logs/netdc_check2015-08-22_12-06-57-AM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/databasedc_check2015-08-22_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/deinstall2015-08-22_00-06-37AM/logs/emcadc_check2015-08-22_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/deinstall2015-08-22_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/deinstall2015-08-22_00-06-37AM/logs/deinstall_deconfig2015-08-22_12-06-51-AM.out'

Any error messages from this session will be written to: '/tmp/deinstall2015-08-22_00-06-37AM/logs/deinstall_deconfig2015-08-22_12-06-51-AM.err'

######################## CLEAN OPERATION START ########################

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /tmp/deinstall2015-08-22_00-06-37AM/logs/emcadc_clean2015-08-22_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/deinstall2015-08-22_00-06-37AM/logs/databasedc_clean2015-08-22_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/deinstall2015-08-22_00-06-37AM/logs/netdc_clean2015-08-22_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/deinstall2015-08-22_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/deinstall2015-08-22_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 p13390677_112040_Linux-x86-64_7of7.zip

[oracle@localhost ~]$ cd deinstall/

[oracle@localhost deinstall]$ ./deinstall -help

deinstall -home

              [ -silent ]

              [ -checkonly ]

              [ -local ]

              [ -paramfile ]

              [ -params ]

              [ -o ]

              [ -tmpdir ]

              [ -logdir ]

              [ -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_check2015-08-22_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_check2015-08-22_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_check2015-08-22_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_2015-08-22_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_deconfig2015-08-22_12-34-51-AM.out'

Any error messages from this session will be written to: '/home/oracle/deinstall/./logs/deinstall_deconfig2015-08-22_12-34-51-AM.err'

######################## CLEAN OPERATION START ########################

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_clean2015-08-22_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_clean2015-08-22_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_clean2015-08-22_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_2015-08-22_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/deinstall2015-08-22_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 #############


    
 
 

您可能感兴趣的文章:

  • 在linux 中如何删除oracle db 与卸载oracle.
  • SOLARIS 下如何卸载ORACLE10G
  • 卸载oracle数据库
  • red hat linux下如何卸载oracle
  • linux下oracle 10g如何完全卸载?
  • Oracle完全卸载
  • Linux下完全卸载ORACLE 10G的方法
  • linux下如何卸载oracle?直接删除就可以么??
  • redhat下如何完全卸载oracle10g?
  • Oracle9i在Win2k环境下的完全卸载
  • 教你如何完全卸载ORACLE
  • 完全安全卸载Oracle服务
  • 在linux下卸载oracle数据库
  • oracle停止数据库后linux完全卸载oracle的详细步骤
  • Windows下ORACLE 10g完全卸载的方法分析
  • Oracle 11g服务器与客户端卸载、安装全过程
  • Oracle 安装和卸载问题收集(集合篇)第1/6页
  • linux下安装oracle后使用命令行启动的方法 linux启动oracle
  • ORACLE 中修改用户密码的方法
  • 将Oracle 8i数据成功移植Oracle 10g的方法
  • Oracle Connect to Idle Instance解决方法
  • oracle增加表空间大小两种实现方法
  • linux下用ODBC链接Oracle怎么连啊?跪求具体方法!!!
  • Linux系统下查看oracle SID的方法
  • oracle 彻底删除方法
  • window中oracle环境变量设置方法分享
  • Oracle 忘记密码的找回方法
  • oracle的job不能运行问题的解决方法
  • Linux下Oracle 10G DBCA等汉字乱码解决方法
  • Oracle中serveroutput参数一次设置永久保存方法
  • Oracle指定IP访问数据库方法
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • oracle 11g最新版官方下载地址
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍
  • Linux版本的Oracle 11g将首先被发布
  • 关于Linux下oracle是10g?还是11g?
  • Oracle 11g 相关工具netca,dbca乱码之解决
  • fedora10安装oracle11g提示物理内存不足怎么办?
  • Oracle 11g解锁scott
  • Oracle 11g R2 数据库将在9月发布
  • Oracle内存数据库11g和高速缓存11g上市
  • 有人在fedora 10下安装 oracle database 11g,没有呀?提供个安装步骤
  • 在ubuntu10.04上安装oracle11g失败
  • 关于Oracle 11g 闪回的一个小问题
  • Oracle11g备份和恢复功能的提高
  • linux redhat5.6安装oracle11g在自动创建实例时停住不动,有图
  • Oracle针对Eclipse 11g发布开发包
  • centos5.4安装oracle11g的问题
  • 浙ICP备11055608号-3 iis7站长之家
  • Redhat 6 安装 oracle 11g2的问题
  • 基于Linux环境的Oracle 11g数据库正式推出
  • Oracle 11G密码180天过期后的修改方法
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • 虚拟机装Oracle R12与Oracle10g
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle 数据库开发工具 Oracle SQL Developer
  • oracle中如何把表中具有相同值列的多行数据合并成一行
  • SCO unix下安装oracle,但没有光盘,请大家推荐一个oracle下载站点(unix版本的)。谢谢!!!!


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3