iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >Oracle 学习之卸载Oracle 11g
  • 957
分享到

Oracle 学习之卸载Oracle 11g

2024-04-02 19:04:59 957人浏览 泡泡鱼
摘要

  oracle 11g 安装完毕后,如果有卸载的需要。可以有如下方法:手工删除Oracle安装时建立的各目录、文件等。这种方法对于linux还算可行,但是Window版中涉及到服务、注册表等等。

  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 <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_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 #############



您可能感兴趣的文档:

--结束END--

本文标题: Oracle 学习之卸载Oracle 11g

本文链接: http://www.lsjlt.com/news/35648.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • 如何删除卸载oracle 11g rac
    这篇文章将为大家详细讲解有关如何删除卸载oracle 11g rac,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 操作系统linux 64位 ## 注意:以下操作均...
    99+
    2024-04-02
  • windows7怎么安装与卸载oracle 11G
    本篇内容主要讲解“windows7怎么安装与卸载oracle 11G”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“windows7怎么安装与卸载oracle 1...
    99+
    2024-04-02
  • Oracle如何卸载
    小编给大家分享一下Oracle如何卸载,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!用Oracle自带的卸载程序不能从根本上卸载...
    99+
    2024-04-02
  • Python基础学习之模块的安装和卸载
    目录一、命令提示符窗口安装卸载1、安装2、查看安装3、卸载二、在pycharm里通过pip安装卸载1、安装2、卸载三、pycharm设置里安装卸载1、 安装2、卸载一、命令提示符窗口...
    99+
    2024-04-02
  • ubuntu如何卸载oracle
    ubuntu卸载oracle的方法:停止数据库服务。sqlplus / as sysdbaSQL> shutdown immediateSQL> exit执行以下命令停止数据库服务的监听。lsnrctl stop删除oracle安装目录,例...
    99+
    2024-04-02
  • Oracle进阶学习之创建dblink
    本文笔者简单说明Oracle创建dblink,dblink就是在一个数据库中直接对另一个数据库进行操作,听起来很美妙,其实并不难实现,我们只需要在该数据库上创建一个dblink关联到另一个数据库就可以了,闲...
    99+
    2024-04-02
  • Oracle如何安装卸载
    这篇文章给大家分享的是有关Oracle如何安装卸载的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。ORACLE安装步骤1、 将win32_11gR2_database_1of2.z...
    99+
    2024-04-02
  • ubuntu中怎么卸载oracle
    本篇内容介绍了“ubuntu中怎么卸载oracle”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!ubuntu卸载oracle的方法:停止数据...
    99+
    2023-07-04
  • Oracle 学习之RAC(三) Grid Infrastructure 安装
    将Grid Infrastructure安装包上传到服务器,并解压unzip p10404530_112030_Linux-x86-64_3of7.zip -d /databa...
    99+
    2024-04-02
  • oracle卸载不了怎么办
    oracle卸载不了解决方法:1、检查权限问题,确保具有足够的权限;2、停止相关的服务和进程;3、手动卸载Oracle,删除安装目录以及所有子目录和文件、注册表中与Oracle相关的键和值、Windows服务中与Oracle相关的服务、所有...
    99+
    2023-07-10
  • Oracle RAC集群卸载步骤
    oracle用户完整删除操作步骤   1、登录oracle用户,停止Oracle数据库监听和数据库实例 oracle@Linux:~> lsnrctl ...
    99+
    2024-04-02
  • 怎样卸载oracle数据库
    卸载 oracle 数据库的步骤:关闭实例备份数据库运行安装程序并选择完全删除模式选择要卸载的组件卸载 oracle清理注册表手动删除剩余文件和文件夹 如何卸载 Oracle 数据库 ...
    99+
    2024-04-19
    oracle
  • oracle怎么卸载长数组
    非常抱歉,由于您没有提供文章标题,我无法为您生成一篇高质量的文章。请您提供文章标题,我将尽快为您生成一篇优质的文章。...
    99+
    2024-05-21
  • Oracle 学习之RAC(五) 创建ASM磁盘组
    以grid用户,运行asmcma命令[root@11grac1 database]# su - grid 11grac1-> asmca我们在安装Gr...
    99+
    2024-04-02
  • python链接oracle学习
    必要组件安装activepython   python的windows支持组件【类unix系统都自带的有python组件】下载【百度activepython】oracle_client  ...
    99+
    2024-04-02
  • oracle 11g下载、安装、使用图文教程
    目录一、前言二、下载oracle三、安装oracle一、前言 Windows系统每隔一段时间都要进行重装系统,感觉每次装完系统在装oracle都会相当费劲,步骤都要从新想。安装软件是...
    99+
    2024-04-02
  • oracle数据库如何卸载干净
    oracle 数据库干净卸载指南:停止 oracle 服务查看依赖卸载 oracle 主程序删除 oracle home 目录删除注册表项删除环境变量清除磁盘碎片重新启动计算机 Ora...
    99+
    2024-04-19
    oracle
  • Oracle数据库如何完整卸载
    这篇文章主要讲解了“Oracle数据库如何完整卸载”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Oracle数据库如何完整卸载”吧!1、停止所有Oracle...
    99+
    2023-03-20
    oracle
  • oracle数据库怎么卸载干净
    要彻底卸载 oracle 数据库,请按照以下步骤操作:停止数据库服务。卸载软件包。删除目录。删除用户和组。删除日志文件。清理数据库目录。重置权限。卸载 listener。检查卸载情况。 ...
    99+
    2024-04-18
    oracle
  • oracle怎么彻底卸载并重装
    要彻底卸载并重装Oracle,可以按照以下步骤进行操作:1. 停止所有Oracle相关的服务和进程。这可以通过运行命令行或者使用服务...
    99+
    2023-08-18
    oracle
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作