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 11G RAC叢集安裝(2)——安裝gridOracle
- Oracle OCP(35):Database 安裝OracleDatabase
- Oracle 11G 安裝文件Oracle
- oracle 19c 安裝、解除安裝Oracle
- 【11g 單庫解除安裝、靜默安裝】實驗
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- Oracle 11G 安裝 bbed 工具Oracle
- Ubuntu解除安裝和安裝Ubuntu
- Oracle11g解除安裝Oracle
- 【Oracle】Windows安裝oracle11gR1 database 11.1.0.6OracleWindowsDatabase
- Oracle Database 19c安裝Sample SchemasOracleDatabase
- Oracle Linux 6.7 靜預設安裝Oracle 11gOracleLinux
- linux 解除安裝jdk和安裝LinuxJDK
- CentOS 7.5靜默安裝Oracle 11gCentOSOracle
- Oracle:Redhat 7 + Oracle RAC 11g 安裝 bug 總結OracleRedhat
- vs2015解除安裝和安裝
- Oracle RAC叢集解除安裝步驟Oracle
- centos7.3上安裝oracle xe 11gCentOSOracle
- 靜默方式安裝oracle 11g 完整攻略Oracle
- 靜默安裝Oracle資料庫11gOracle資料庫
- Ubuntu解除安裝及安裝node和npmUbuntuNPM
- Automatic Diagnostic Repository (ADR) in Oracle Database 11g Release 1 (ADRCI)OracleDatabase
- 【BUILD_ORACLE】Oracle 19c RAC搭建(四)Grid軟體安裝UIOracle
- 通過ORACLE VM virtualbox環境安裝oracle 11G RAC(ASM)OracleASM
- Oracle 11G資料庫單例項安裝Oracle資料庫單例
- oracle 11g RAC 安裝前準備指令碼Oracle指令碼
- 12.2.0.1.0 Grid RU安裝
- 12.2.0.1 Grid RUR 安裝
- 12.2 Grid RUR 安裝
- Oracle 11G RAC叢集安裝(1)——安裝前的準備Oracle
- oracle 11g 單例項資料庫的安裝Oracle單例資料庫
- 超詳細oracle 11g安裝步驟 win版本Oracle
- linux環境下解除安裝oracle11gLinuxOracle
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.1. Oracle軟體安裝OracleLinux
- webpack全域性和區域性安裝、解除安裝和執行Web
- Linux安裝解除安裝MySQLLinuxMySql
- cocoapods安裝/解除安裝/使用
- JDK安裝和解除安裝JDK
- docker安裝及解除安裝Docker