博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle11g R2 grid和database卸载
阅读量:6073 次
发布时间:2019-06-20

本文共 11435 字,大约阅读时间需要 38 分钟。

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://ncsgx.baihongyu.com/

你可能感兴趣的文章
我的友情链接
查看>>
用yum安装mariadb
查看>>
一点IT"边缘化"的人的思考
查看>>
Gallery循环滑动
查看>>
Sql与C#中日期格式转换总结
查看>>
iOS开发流程总结
查看>>
hadoop datanode 启动出错
查看>>
js颜色拾取器
查看>>
IDEA使用(1)intellIJ idea 配置 svn
查看>>
Thread Safety in Java(java中的线程安全)
查看>>
WPF 降低.net framework到4.0
查看>>
数据管理DMS 全量SQL诊断:你的SQL是健康的蓝色,还是危险的红色?
查看>>
搭建一个通用的脚手架
查看>>
开年巨制!千人千面回放技术让你“看到”Flutter用户侧问题
查看>>
开源磁盘加密软件VeraCrypt教程
查看>>
本地vs云:大数据厮杀的最终幸存者会是谁?
查看>>
阿里云公共镜像、自定义镜像、共享镜像和镜像市场的区别 ...
查看>>
shadowtunnel v1.7 发布:新增上级负载均衡支持独立密码
查看>>
Java线程:什么是线程
查看>>
mysql5.7 创建一个超级管理员
查看>>