oracle11g R2 grid和database卸载

2024-05-06 00:08

本文主要是介绍oracle11g R2 grid和database卸载,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1、切换到oracle用户

进入$ORACLE_HOME

dg<*phydb*/u01/product/oracle/11.2.0/db_1/deinstall>$pwd

/u01/product/oracle/11.2.0/db_1/deinstall

dg<*phydb*/u01/product/oracle/11.2.0/db_1/deinstall>$./deinstall

Checking for required files andbootstrapping ...

Please wait ...

Location of logs /u01/oraInventory/logs/


############ ORACLE DEINSTALL &DECONFIG TOOL START ############



######################## CHECK OPERATIONSTART ########################

Install check configuration START

Specify a valid location of central inventoryfor the Oracle home '/u01/product/oracle/11.2.0/db_1' that you want tode-install:/u01/oraInventory



Checking for existence of the Oracle homelocation /u01/product/oracle/11.2.0/db_1

Oracle Home type selected for de-installis: SIDB

Oracle Base selected for de-install is:/u01/product/oracle

Checking for existence of central inventorylocation /u01/oraInventory


Install check configuration END



Network Configuration check config START


Network de-configuration trace filelocation: /u01/oraInventory/logs/netdc_check4958584024441338327.log


Network Configuration check config END


Database Check Configuration START


Database de-configuration trace filelocation: /u01/oraInventory/logs/databasedc_check4107510055642147133.log


Use comma as separator when specifying listof values as input


Specify the list of database names that areconfigured in this Oracle home []:

Database Check Configuration END


Enterprise Manager Configuration AssistantSTART


EMCA de-configuration trace file location:/u01/oraInventory/logs/emcadc_check.log


Enterprise Manager Configuration AssistantEND

Oracle Configuration Manager check START

OCM check log file location :/u01/oraInventory/logs//ocm_check9309.log

Oracle Configuration Manager check END


######################### CHECK OPERATIONEND #########################



####################### CHECK OPERATIONSUMMARY #######################

Oracle Home selected for de-install is:/u01/product/oracle/11.2.0/db_1

Inventory Location where the Oracle homeregistered is: /u01/oraInventory

No Enterprise Manager configuration to beupdated for any database(s)

No Enterprise Manager ASM targets to update

No Enterprise Manager listener targets tomigrate

Checking the config status for CCR

Oracle Home exists with CCR directory, butCCR 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:'/u01/oraInventory/logs/deinstall_deconfig2014-09-13_09-27-51-PM.out'

Any error messages from this session willbe written to:'/u01/oraInventory/logs/deinstall_deconfig2014-09-13_09-27-51-PM.err'


######################## CLEAN OPERATIONSTART ########################


Enterprise Manager Configuration AssistantSTART


EMCA de-configuration trace file location:/u01/oraInventory/logs/emcadc_clean.log


Updating Enterprise Manager ASM targets (ifany)

Updating Enterprise Manager listenertargets (if any)

Enterprise Manager Configuration AssistantEND

Database de-configuration trace filelocation: /u01/oraInventory/logs/databasedc_clean7586758450062900489.log


Network Configuration clean config START


Network de-configuration trace filelocation: /u01/oraInventory/logs/netdc_clean1621651971831489725.log


De-configuring Local Net Service Namesconfiguration file...

Local Net Service Names configuration filede-configured successfully.


De-configuring backup files...

Backup files de-configured successfully.


The network configuration has been cleanedup successfully.


Network Configuration clean config END


Oracle Configuration Manager clean START

OCM clean log file location :/u01/oraInventory/logs//ocm_clean9309.log

Oracle Configuration Manager clean END

Oracle Universal Installer clean START


Detach Oracle home'/u01/product/oracle/11.2.0/db_1' from the central inventory on the local node: Done


Delete directory'/u01/product/oracle/11.2.0/db_1' on the local node : Done


The Oracle Base directory'/u01/product/oracle' will not be removed on local node. The directory is notempty.


Oracle Universal Installer cleanup wassuccessful.


Oracle Universal Installer clean END



Oracle install clean START


Clean install operation removing temporarydirectory '/tmp/install' on node 'dg'


Oracle install clean END


Moved default properties file/tmp/deinstall2014-09-13_09-26-52-PM/response/deinstall_OraDb11g_home1.rsp as/tmp/deinstall2014-09-13_09-26-52-PM/response/deinstall_OraDb11g_home1.rsp0


######################### CLEAN OPERATIONEND #########################



####################### CLEAN OPERATIONSUMMARY #######################

Cleaning the config for CCR

As CCR is not configured, so skipping thecleaning of CCR configuration

CCR clean is finished

Successfully detached Oracle home'/u01/product/oracle/11.2.0/db_1' from the central inventory on the local node.

Successfully deleted directory'/u01/product/oracle/11.2.0/db_1' on the local node.

Oracle Universal Installer cleanup wassuccessful.


Oracle install successfully cleaned up thetemporary directories.

#######################################################################



############# ORACLE DEINSTALL &DECONFIG TOOL END #############


dg<*phydb*/u01/product/oracle/11.2.0/db_1/deinstall>$


2、手动清除余留目录

dg<*phydb*/u01/product/oracle>$ll

total 18252

-rw-r--r-- 1 oracle oinstall 18661376 Sep 13 06:33 control01.ctl

dg<*phydb*/u01/product/oracle>$pwd

/u01/product/oracle

[root@dg u01]# rm -rf product/


3、切换到grid用户

切换到主目录

[grid@dg deinstall]$ pwd

/u01/gridhome/deinstall

[grid@dg deinstall]$ ll

total 88

-rwxr-xr-x 1 grid oinstall 20658 Sep 12 01:05 deinstall*

-rwxr-xr-x 1 grid oinstall 3154 Jul 13 2009 deinstall.xml*

drwxr-xr-x 2 grid oinstall 4096 Sep 12 01:02 jlib/

drwxr-xr-x 2 grid oinstall 4096 Sep 12 01:02 response/

-rwxr-xr-x 1 grid oinstall 31544 Mar 31 2009 sshUserSetup.sh*

[grid@dg deinstall]$ ./deinstall

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /tmp/deinstall2014-09-13_09-51-54-PM/logs/


############ ORACLE DEINSTALL & DECONFIG TOOL START ############



######################## CHECK OPERATION START ########################

Install check configuration START



Checking for existence of the Oracle home location /u01/gridhome

Oracle Home type selected for de-install is: SIHA

Oracle Base selected for de-install is: /u01/gridbase

Checking for existence of central inventory location /u01/oraInventory

Checking for existence of the Oracle Grid Infrastructure home


Install check configuration END


Traces log file: /tmp/deinstall2014-09-13_09-51-54-PM/logs//crsdc.log


Network Configuration check config START


Network de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/netdc_check5525246341005381654.log


Specify all Oracle Restart enabled listeners that are to be de-configured [LISTENER]:


Network Configuration check config END


Asm Check Configuration START


ASM de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/asmcadc_check8564644702637227603.log


Specify the ASM Diagnostic Destination [ ]: /u01/gridhome

Specify the diskgroups that are managed by this ASM instance []: GRIDDG


De-configuring ASM will drop all the diskgroups at cleanup time. Do you want deconfig tool to drop the diskgroups y|n [y]: y



######################### CHECK OPERATION END #########################



####################### CHECK OPERATION SUMMARY #######################

Oracle Grid Infrastructure Home is:

The cluster node(s) on which the Oracle home exists are: (Please input nodes seperated by ",", eg: node1,node2,...)null

Oracle Home selected for de-install is: /u01/gridhome

Inventory Location where the Oracle home registered is: /u01/oraInventory

Following Oracle Restart enabled listener(s) will be de-configured: LISTENER

ASM instance will be de-configured from this Oracle home

Do you want to continue (y - yes, n - no)? [n]: y

A log of this session will be written to: '/tmp/deinstall2014-09-13_09-51-54-PM/logs/deinstall_deconfig2014-09-13_09-52-40-PM.out'

Any error messages from this session will be written to: '/tmp/deinstall2014-09-13_09-51-54-PM/logs/deinstall_deconfig2014-09-13_09-52-40-PM.err'


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

ASM de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/asmcadc_clean6191594684859328271.log

ASM Clean Configuration START

ASM deletion in progress. This operation may take few minutes.

ASM Clean Configuration END


Network Configuration clean config START


Network de-configuration trace file location: /tmp/deinstall2014-09-13_09-51-54-PM/logs/netdc_clean9104757993242154363.log


De-configuring Oracle Restart enabled listener(s): LISTENER


De-configuring listener: LISTENER

Stopping listener: LISTENER

Warning: Failed to stop listener. Listener may not be running.

Deleting listener: LISTENER

Listener deleted successfully.

Listener de-configured successfully.


De-configuring Listener configuration file...

Listener configuration file de-configured successfully.


De-configuring Naming Methods configuration file...

Naming Methods configuration file 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 Universal Installer clean START


Detach Oracle home '/u01/gridhome' from the central inventory on the local node : Done


Delete directory '/u01/gridhome' on the local node : Done


Delete directory '/u01/oraInventory' on the local node : Done


Delete directory '/u01/gridbase' 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 'dg'


Oracle install clean END



######################### CLEAN OPERATION END #########################



####################### CLEAN OPERATION SUMMARY #######################

ASM instance was de-configured successfully from the Oracle home

Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER

Oracle Restart is stopped and de-configured successfully.

Successfully detached Oracle home '/u01/gridhome' from the central inventory on the local node.

Successfully deleted directory '/u01/gridhome' on the local node.

Successfully deleted directory '/u01/oraInventory' on the local node.

Successfully deleted directory '/u01/gridbase' on the local node.

Oracle Universal Installer cleanup was successful.



Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'dg' at the end of the session.


Oracle install successfully cleaned up the temporary directories.

#######################################################################



############# ORACLE DEINSTALL & DECONFIG TOOL END #############


[grid@dg deinstall]$


4、手动清除余留

[root@dg /]# rm -rf /etc/oraInst.loc

[root@dg /]#


注意:

如果卸载grid时遇到如下问题:

ERROR: The deconfiguration and deinstallation tool has detected runtime errors when checking the existing configuration due to which the tool cannot continue with clean up operation. Please check the log files for more information. Rerun the tool after fixing the errors to proceed with the ORACLE_HOME clean up.

方法:

使用root用户登录在所有节点上注意运行"$ORA_CRS_HOME/crs/install/rootcrs.pl -verbose -deconfig -force"的命令,注意在最后一个节点不要运行该命令。举例来说如果你有2个节点的话,就只要在一个节点上运行上述命令即可,然后再最后的节点执行"$ORA_CRS_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode" 命令。如果只是单实例,那么只运行"$ORA_CRS_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode"即可。




参考:

http://lijianing.blog.51cto.com/8006772/1308025

这篇关于oracle11g R2 grid和database卸载的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/963030

相关文章

Mysql DATETIME 毫秒坑的解决

《MysqlDATETIME毫秒坑的解决》本文主要介绍了MysqlDATETIME毫秒坑的解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着... 今天写代码突发一个诡异的 bug,代码逻辑大概如下。1. 新增退款单记录boolean save = s

mysql-8.0.30压缩包版安装和配置MySQL环境过程

《mysql-8.0.30压缩包版安装和配置MySQL环境过程》该文章介绍了如何在Windows系统中下载、安装和配置MySQL数据库,包括下载地址、解压文件、创建和配置my.ini文件、设置环境变量... 目录压缩包安装配置下载配置环境变量下载和初始化总结压缩包安装配置下载下载地址:https://d

MySQL中的锁和MVCC机制解读

《MySQL中的锁和MVCC机制解读》MySQL事务、锁和MVCC机制是确保数据库操作原子性、一致性和隔离性的关键,事务必须遵循ACID原则,锁的类型包括表级锁、行级锁和意向锁,MVCC通过非锁定读和... 目录mysql的锁和MVCC机制事务的概念与ACID特性锁的类型及其工作机制锁的粒度与性能影响多版本

MYSQL行列转置方式

《MYSQL行列转置方式》本文介绍了如何使用MySQL和Navicat进行列转行操作,首先,创建了一个名为`grade`的表,并插入多条数据,然后,通过修改查询SQL语句,使用`CASE`和`IF`函... 目录mysql行列转置开始列转行之前的准备下面开始步入正题总结MYSQL行列转置环境准备:mysq

MySQL不使用子查询的原因及优化案例

《MySQL不使用子查询的原因及优化案例》对于mysql,不推荐使用子查询,效率太差,执行子查询时,MYSQL需要创建临时表,查询完毕后再删除这些临时表,所以,子查询的速度会受到一定的影响,本文给大家... 目录不推荐使用子查询和JOIN的原因解决方案优化案例案例1:查询所有有库存的商品信息案例2:使用EX

Linux(Centos7)安装Mysql/Redis/MinIO方式

《Linux(Centos7)安装Mysql/Redis/MinIO方式》文章总结:介绍了如何安装MySQL和Redis,以及如何配置它们为开机自启,还详细讲解了如何安装MinIO,包括配置Syste... 目录安装mysql安装Redis安装MinIO总结安装Mysql安装Redis搜索Red

Mysql8.0修改配置文件my.ini的坑及解决

《Mysql8.0修改配置文件my.ini的坑及解决》使用记事本直接编辑my.ini文件保存后,可能会导致MySQL无法启动,因为MySQL会以ANSI编码读取该文件,解决方法是使用Notepad++... 目录Myhttp://www.chinasem.cnsql8.0修改配置文件my.ini的坑出现的问题

MySQL8.0找不到my.ini如何解决

《MySQL8.0找不到my.ini如何解决》在配置MySQL主从复制时,发现找不到my.ini配置文件,通过检查路径和打开隐藏文件夹,最终在C:ProgramDataMySQLMySQLSer... 目录问题描述解决方法总结问题描述今天在配置mysql主从复制的时候发现,找不到my.ini这个配置文件。

MySQL中my.ini文件的基础配置和优化配置方式

《MySQL中my.ini文件的基础配置和优化配置方式》文章讨论了数据库异步同步的优化思路,包括三个主要方面:幂等性、时序和延迟,作者还分享了MySQL配置文件的优化经验,并鼓励读者提供支持... 目录mysql my.ini文件的配置和优化配置优化思路MySQL配置文件优化总结MySQL my.ini文件

MySQL中删除重复数据SQL的三种写法

《MySQL中删除重复数据SQL的三种写法》:本文主要介绍MySQL中删除重复数据SQL的三种写法,文中通过代码示例讲解的非常详细,对大家的学习或工作有一定的帮助,需要的朋友可以参考下... 目录方法一:使用 left join + 子查询删除重复数据(推荐)方法二:创建临时表(需分多步执行,逻辑清晰,但会