Oracle 11g解除安裝grid和database
Oracle 11g之後提供了解除安裝grid和database的指令碼,可以解除安裝的比較乾淨,不需要手動刪除crs等
1.從oracle官方網站上下載的deinstall工具
11GR2有7個下載包,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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle grid infrastructure 解除安裝OracleASTStruct
- oracle 11gR2 新增deinstall命令來解除安裝grid和databaseOracleDatabase
- oracle 11g RAC手動解除安裝grid,no deinstallOracle
- Oracle 11g解除安裝Oracle
- ORACLE 11G完美解除安裝Oracle
- 如何解除安裝Oracle Grid ControlOracle
- Oracle 11g Database靜默安裝OracleDatabase
- oracle 11g rac 靜默解除安裝Oracle
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- zt_如何解除安裝oracle grid controlOracle
- grid 的解除安裝(RAC 11.2.0.3)
- RHEL7.3 安裝11G grid和Rdbms
- oracle解除安裝Oracle
- ORACLE 解除安裝Oracle
- 11g oracle database installation with oracle grid infrastructure on linux(文件)OracleDatabaseASTStructLinux
- Oracle 安裝與解除安裝Oracle
- 解除安裝 11gR2 Grid ClusterWare
- 11g解除安裝指令碼指令碼
- 手動安裝、驗證、解除安裝11g R2 oracle textOracle
- Ubuntu解除安裝和安裝Ubuntu
- 解除安裝ORACLE CRSOracle
- ORACLE TEXT安裝與解除安裝Oracle
- 簡化 Oracle Linux 6 上的 Oracle Database 11g 安裝OracleLinuxDatabase
- Win7下手動解除安裝oracle 11GWin7Oracle
- window和Linux下完全解除安裝OracleLinuxOracle
- Windows下解除安裝OracleWindowsOracle
- 解除安裝Oracle GoldenGateOracleGo
- oracle 解除安裝問題Oracle
- Linux Redhat上如何手工解除安裝(刪除)Oracle 11gLinuxRedhatOracle
- 【11g 單庫解除安裝、靜默安裝】實驗
- linux 解除安裝jdk和安裝LinuxJDK
- Oracle OCP(35):Database 安裝OracleDatabase
- 11g R2執行root.sh 不成功的處理及解除安裝 11g grid
- 【OLS】Linux作業系統Oracle 11g環境下安裝解除安裝Oracle Label SecurityLinux作業系統Oracle
- (轉)LINUX和windows下完全解除安裝ORACLELinuxWindowsOracle
- RAC-解除安裝grid(單節點錯誤時)
- grid安裝執行root.sh時Timed out waiting for the CRS stack to start - 解除安裝gridAI
- 【GC】OEL4.8解除安裝重新部署安裝Grid Control OMSGC