Oracle 11g解除安裝grid和database

swq618發表於2016-04-28
Normal 0 7.8 pt 0 2 false false false MicrosoftInternetExplorer4 <style. /* Style. Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style.

 

Oracle 11g之後提供了解除安裝griddatabase的指令碼,可以解除安裝的比較乾淨,不需要手動刪除crs

 

1.oracle官方網站上下載的deinstall工具

11GR27個下載包,deinstall放在第7個下載包,如11.2.0.2的下載包為p10098816_112020_AIX64-5L_7of7.zip

 

2.解壓到本地目錄,並執行deinstall

需要輸入$ORACLE_HOME

bash-3.00$ ./deinstall  -home /oracle/grid/product/11.2.0/grid

Location of logs /ora11g/server_install/deinstall/./logs/

 

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

 

3.我這裡為單節點的grid,選擇4後按回車

後面根據自己情況進行選擇,輸入LISTENER的地方可以直接回車

 

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

Install check configuration START

The deinstall tool cannot determine the home type needed to deconfigure the selected home.  Please select the type of Oracle home you are trying to deinstall.

Single Instance database - Enter 1

Real Application Cluster database - Enter 2

Grid Infrastructure for a cluster - Enter 3

Grid Infrastructure for a stand-alone server - Enter 4

Client Oracle Home - Enter 5

Transparent Gateways Oracle Home - Enter 6

4

The product version number of the specified home cannot be determined. Is the product version at least 11.2.0.1.0 (y - yes, n - no)? [n]

y

 

Checking for existence of the Oracle home location /oracle/grid/product/11.2.0/grid

Oracle Home type selected for de-install is: SIHA

Oracle Base selected for de-install is:

Checking for existence of central inventory location /oracle/oraInventory

Checking for existence of the Oracle Grid Infrastructure home /oracle/grid/product/11.2.0/grid

 

Install check configuration END

 

Skipping Windows and .NET products configuration check

 

Checking Windows and .NET products configuration END

 

Traces log file: /ora11g/server_install/deinstall/./logs//crsdc.log

 

Network Configuration check config START

 

Network de-configuration trace file location: /ora11g/server_install/deinstall/./logs/netdc_check2011-11-05_07-17-34-PM.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: /ora11g/server_install/deinstall/./logs/asmcadc_check2011-11-05_07-19-52-PM.log

 

Automatic Storage Management (ASM) instance is detected in this Oracle home /oracle/grid/product/11.2.0/grid.

ASM Diagnostic Destination : /oracle/grid/product/11.2.0/grid/log

ASM Diskgroups : +ARCHDG,+CRSDG,+DATADG

ASM diskstring : <Default>

Diskgroups will be dropped

De-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).

 If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering 'y'. Do you  want to modify above information (y|n) [n]: 

 

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

 

 

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

Oracle Grid Infrastructure Home is: /oracle/grid/product/11.2.0/grid

The cluster node(s) on which the Oracle home de-installation will be performed are:null

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

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

Skipping Windows and .NET products configuration check

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: '/ora11g/server_install/deinstall/./logs/deinstall_deconfig2011-11-05_07-16-53-PM.out'

Any error messages from this session will be written to: '/ora11g/server_install/deinstall/./logs/deinstall_deconfig2011-11-05_07-16-53-PM.err'

 

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

ASM de-configuration trace file location: /ora11g/server_install/deinstall/./logs/asmcadc_clean2011-11-05_07-21-32-PM.log

ASM Clean Configuration START

ASM Clean Configuration END

 

Network Configuration clean config START

 

Network de-configuration trace file location: /ora11g/server_install/deinstall/./logs/netdc_clean2011-11-05_07-21-52-PM.log

 

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

 

De-configuring listener: LISTENER

    Stopping listener: LISTENER

    Listener stopped successfully.

    Unregistering listener: LISTENER

    Listener unregistered successfully.

    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 Local Net Service Names configuration file...

Local Net Service Names 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

 

 

---------------------------------------->

 

Run the following command as the root user or the administrator on node "standbydb2".

 

/ora11g/server_install/deinstall/./perl/bin/perl -I/ora11g/server_install/deinstall/./perl/lib -I/ora11g/server_install/deinstall/./crs/install /ora11g/server_install/deinstall/./crs/install/roothas.pl -force  -deconfig -paramfile /ora11g/server_install/deinstall/response/deinstall_noHomeName.rsp

 

Press Enter after you finish running the above commands

 

<----------------------------------------

 

4.在另一個視窗中使用root使用者執行上面操作

-bash-3.00# /ora11g/server_install/deinstall/./perl/bin/perl -I/ora11g/server_install/deinstall/./perl/lib -I/ora11g/server_install/deinstall/./crs/install /ora11g/server_install/deinstall/./crs/install/roothas.pl -force  -deconfig -paramfile /ora11g/server_install/deinstall/response/deinstall_noHomeName.rsp

Using configuration parameter file: /ora11g/server_install/deinstall/response/deinstall_noHomeName.rsp

 

CRS-2673: Attempting to stop 'ora.cssd' on 'standbydb2'

CRS-2677: Stop of 'ora.cssd' on 'standbydb2' succeeded

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'standbydb2'

CRS-2673: Attempting to stop 'ora.diskmon' on 'standbydb2'

CRS-2677: Stop of 'ora.diskmon' on 'standbydb2' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'standbydb2' has completed

CRS-4133: Oracle High Availability Services has been stopped.

Successfully deconfigured Oracle Restart stack

 

5.執行成功後,在原視窗中按回車

----------------------------------------------------------------

 

Removing Windows and .NET products configuration END

Oracle Universal Installer clean START

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

Delete directory '/oracle/grid/product/11.2.0/grid' 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/deinstall2011-11-05_07-16-46PM' on node 'standbydb2'

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 was already stopped and de-configured on node "standbydb2"

Oracle Restart is stopped and de-configured successfully.

Skipping Windows and .NET products configuration clean

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

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

Oracle Universal Installer cleanup was successful.

 

Oracle deinstall tool successfully cleaned up temporary directories.

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

 

 

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

 

 

6.顯示執行成功

 

 

參照metalink

How To Deinstall/Uninstall Oracle Home In 11gR2? [ID 883743.1]

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29674916/viewspace-2089794/,如需轉載,請註明出處,否則將追究法律責任。

相關文章