广告
返回顶部
首页 > 资讯 > 数据库 >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

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

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

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

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

下载Word文档
猜你喜欢
  • Oracle 学习之卸载Oracle 11g
      Oracle 11g 安装完毕后,如果有卸载的需要。可以有如下方法:手工删除Oracle安装时建立的各目录、文件等。这种方法对于Linux还算可行,但是Window版中涉及到服务、注册表等等。...
    99+
    2022-10-18
  • Oracle 学习之 11g Clone 安装
      如果你需要安装的数据库服务器比较多,使用图形化方式安装数据库软件的速度还是很慢,而且也比较麻烦。Oracle 11g 提供了Clone安装的方法。步骤如下:使用正常方法在服务器A上安装好Ora...
    99+
    2022-10-18
  • Oracle 11g安装与卸载
    一、Oracle 11g安装安装之前要先确定自己的电脑配置,以windows为例,如果是win7以下系统如xp等,可以选择Oracle 10g。因为10g的程序文件只有200多兆,而11g及达到了2G,具体...
    99+
    2022-10-18
  • oracle 11g 安装与卸载(一)
    一,grid安装通常grid要先于数据库安装,以便安装完成后就能识别并监听数据库  1.解压软件并执行安装   2.安装产品所信赖的包       &nbs...
    99+
    2022-10-18
  • oracle 11g 安装与卸载(二)
    二.oracle安装1.手册概要信息        本手册主要描述如何用默认选项安装oracle database2.以root身份登陆系统    ...
    99+
    2022-10-18
  • 如何删除卸载oracle 11g rac
    这篇文章将为大家详细讲解有关如何删除卸载oracle 11g rac,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 操作系统linux 64位 ## 注意:以下操作均...
    99+
    2022-10-18
  • windows7怎么安装与卸载oracle 11G
    本篇内容主要讲解“windows7怎么安装与卸载oracle 11G”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“windows7怎么安装与卸载oracle 1...
    99+
    2022-10-18
  • Oracle Hint 学习之一
    APPEDND hint :用于控制insert 语句是否能以直接路径插入的方式插入数据。CACHE hint:用于控制目标sql在执行时是否将全表扫描目标表的数据块放到buffer cache的LRU链表...
    99+
    2022-10-18
  • Oracle Hint 学习之三
    与表连接顺序的相关hint:执行顺序emp-jobs-deptSQL> select e.ename,j.job,e.sal,d.deptno from&nbs...
    99+
    2022-10-18
  • windows 卸载oracle
      现将oracle安装目录手动删掉,注意因为安装失败,自动卸载是不能删干净的,一定要自己动手。另外将/programfiles/oracle 删除掉。此时,只是将硬盘上的oracle实体除掉。&...
    99+
    2022-10-18
  • Oracle Study学习之--Flashback Archive
    Oracle Study学习之--Flashback ArchiveCREATE FLASHBACK ARCHIVEPurpose       Use the&nbs...
    99+
    2022-10-18
  • Oracle菜鸟学习之 Oracle基础命令
    首发:http://www.arppinging.com/wordpress/p=93 Oracle菜鸟学习之 Oracle基础命令 1.connect和show user 连接用户和查看当前用户 SQL&...
    99+
    2022-10-18
  • Oracle 学习之RAC(四) 安装Oracle软件
    上传安装包到11grac1上解压安装包[root@11grac1 database]# unzip p10404530_112030_Linux-x86-64_1of7.zip...
    99+
    2022-10-18
  • AIX系统学习之--卸载软件错误
    AIX系统学习之--卸载软件错误系统环境:操作系统:AIX 5.3.8Oracle:  Oracle 10gR2案例分析:      HACMP安装失败,卸载hacm...
    99+
    2022-10-18
  • Oracle Study之-Oracle 11g OCM考试(2)
    Oracle Study之-Oracle 11g OCM考试(2)11g OCM考试 纲:Server Configuration1  Create the database2  Det...
    99+
    2022-10-18
  • Oracle如何卸载
    小编给大家分享一下Oracle如何卸载,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!用Oracle自带的卸载程序不能从根本上卸载...
    99+
    2022-10-18
  • Oracle 11g 安装卸载与DMP文件的恢复数据库
    1、orcale 11g 安装 1 管理员运行setup.exe(没有安装包的下面群里联系我)  1.2不用接收更新  1.3选择第一个  1.4选择桌面类  1.5 我是默认的口令还是写一下   1.6 安装 7 这是我卸载...
    99+
    2021-07-13
    Oracle 11g 安装卸载与DMP文件的恢复数据库
  • 学习oracle
    下载oracle网址http://www.oracle.com/technetwork/index.html根据你的机型选择下载安装不同版本,首先你得注册一个oracle账户才能下载。官网EX Editio...
    99+
    2022-10-18
  • Oracle学习
    001——在现有的表上新建表Create table t2as select ename name,sal salary from emp;当t2诞生时就会有子查询中所查出的数据。如果想改变列的名...
    99+
    2022-10-18
  • ubuntu如何卸载oracle
    ubuntu卸载oracle的方法:停止数据库服务。sqlplus / as sysdbaSQL> shutdown immediateSQL> exit执行以下命令停止数据库服务的监听。lsnrctl stop删除oracle安装目录,例...
    99+
    2022-10-22
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作