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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值