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"即可。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章