Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure
In this Document
Purpose |
Scope |
Details |
A. Grid Infrastructure Cluster - Entire Cluster |
Why is deconfigure needed? |
Steps to deconfigure |
B. Grid Infrastructure Cluster - One or Partial Nodes |
Steps to deconfigure and reconfigure |
C. Grid Infrastructure Standalone (Oracle Restart) |
Why is deconfigure needed? |
Steps to deconfigure |
D. Grid Infrastructure Deinstall |
References |
Applies to:
Oracle Server - Enterprise Edition - Version 11.2.0.1 and laterInformation in this document applies to any platform.
Purpose
This note provides instruction to deconfigure/reconfigure or deinstall 11gR2 Grid Infrastructure.
Scope
This document is intended for Oracle Clusterware/RAC Database Administrators and Oracle Support engineers.
Details
A. Grid Infrastructure Cluster - Entire Cluster
Deconfigure and reconfigure entire cluster will rebuild OCR and Voting Disk, user resources (database, instance, service, listener etc) will need to be added back to the cluster manually after reconfigure finishes.
Why is deconfigure needed?
Deconfigure is needed when:
- OCR is corrupted without any good backup
- Or GI stack will not come up on any nodes due to missing Oracle Clusterware related files in /etc or /var/opt/oracle, i.e. init.ohasd missing etc. If GI is able to come up on at least one node, refer to next Section "B. Grid Infrastructure Cluster - One or Partial Nodes".
- $GRID_HOME should be intact as deconfigure will NOT fix $GRID_HOME corruption
Steps to deconfigure
Before deconfiguring, collect the following as grid user if possible to generate a list of user resources to be added back to the cluster after reconfigure finishes:
$GRID_HOME/bin/crsctl stat res -p
$GRID_HOME/bin/crsctl query css votedisk
$GRID_HOME/bin/ocrcheck
$GRID_HOME/bin/oifcfg getif
$GRID_HOME/bin/srvctl config nodeapps -a
$GRID_HOME/bin/srvctl config scan
$GRID_HOME/bin/srvctl config asm -a
$GRID_HOME/bin/srvctl config listener -l
$DB_HOME/bin/srvctl config database -d
$DB_HOME/bin/srvctl config service -d
To deconfigure:
- If OCR and Voting Disks are NOT on ASM, or If OCR and Voting Disks are on ASM but there's NO user data in OCR/Voting Disk ASM diskgroup:
On all remote nodes, as root execute:# /crs/install/rootcrs.pl -deconfig -force -verbose
Once the above command finishes on all remote nodes, on local node, as root execute:# /crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
To reconfigure, run $GRID_HOME/crs/config/config.sh, refer to note 1354258.1 for details
- If OCR or Voting Disks are on ASM and there is user data in OCR/Voting Disk ASM diskgroup:
- If GI version is 11.2.0.3 AND fix for and has been applied, or GI version is 11.2.0.3.2 GI PSU (includes both fixes) or higher:
On all remote nodes, as root execute:# /crs/install/rootcrs.pl -deconfig -force -verbose
Once the above command finishes on all remote nodes, on local node, as root execute:# /crs/install/rootcrs.pl -deconfig -force -verbose -keepdg -lastnode
To reconfigure, run $GRID_HOME/crs/config/config.sh, refer to note 1354258.1 for details
- If fix for and has NOT been applied:
On all nodes, as root execute:# /crs/install/rootcrs.pl -deconfig -force -verbose
To reconfigure:
For 11.2.0.1 - deinstall and reinstall with OCR/Voting Disk on a new ASM diskgroup or supported cluster/network filesystem
For 11.2.0.2 and onward - run $GRID_HOME/crs/config/config.sh and place OCR/Voting Disk on a new ASM diskgroup or support cluster/network filesystem. Refer to note 1354258.1 for more details of config.sh/config.bat
[ID 1377349.1]
B. Grid Infrastructure Cluster - One or Partial Nodes
This procedure applies only when all the followings are true:
- One or partial nodes are having problem, but one or other nodes are running fine - so there's no need to deconfigure the entire cluster
- And GI is a fresh installation (NOT upgrad) without any patch set (interim patch or patch set update(PSU) is fine). A direct patch set installation is considered as a fresh installation regardless how long it has been running, as long as there was no Oracle Clusterware running when it is first installed.
- And cluster parameters have not been changed since original configuration, eg: OCR/VD on same location, network configuration has not been changed etc
- And $GRID_HOME is intact as deconfigure will NOT fix $GRID_HOME corruption
- If any of the above is NOT true, node removal/addition procedure should be used
Steps to deconfigure and reconfigure
As root, on each problematic node, execute:# /crs/install/rootcrs.pl -deconfig -force
# /root.sh
C. Grid Infrastructure Standalone (Oracle Restart)
Why is deconfigure needed?
Deconfigure is needed when:
- OLR is corrupted without any good backup
- GI stack will not come up due to missing Oracle Clusterware related files in /etc or /var/opt/oracle, i.e. init.ohasd is missing etc
- Nodename needs to be changed
Steps to deconfigure
Before deconfiguring, collect the following if possible:
$GRID_HOME/bin/crsctl stat res -p
$GRID_HOME/bin/srvctl config asm -a
$GRID_HOME/bin/srvctl config listener -l
$DB_HOME/bin/srvctl config database -d
$DB_HOME/bin/srvctl config service -d
To deconfigure:
As root execute:
# /crs/install/roothas.pl -deconfig -force -verbose
To reconfigure, refer to note 1354258.1
D. Grid Infrastructure Deinstall
As grid user, execute:
For details, refer to the following documentation for your platform.:
Oracle Grid Infrastructure
Installation Guide
How to Modify or Deinstall Oracle Grid Infrastructure
If there's any error, deconfigure the failed GI with steps in Section A - C, and deinstall manually with note 1364419.1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-757166/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Grid Infrastructure for a Standalone ServerOracleASTStructServer
- clone grid INfrastructure Home and clusterwareASTStruct
- Oracle Clusterware and Oracle Grid InfrastructureOracleASTStruct
- How to Troubleshoot Grid Infrastructure Startup IssuesASTStruct
- Oracle grid infrastructure 解除安裝OracleASTStruct
- DNS and DHCP Setup Example for Grid Infrastructure GNSDNSASTStruct
- 記錄下 patch Grid Infrastructure for StandaloneASTStruct
- Oracle Grid Infrastructure Patch Set Update 11.2.0.4.3OracleASTStruct
- 重新配置 11gR2 Grid InfrastructureASTStruct
- Database Creation on 11.2 Grid Infrastructure with Role SeparationDatabaseASTStruct
- oracle 11g RAC手動解除安裝grid,no deinstallOracle
- 【MOS】Top 5 Grid Infrastructure Startup Issues (文件 ID 1368382.1)ASTStruct
- Apply PSU for Grid Infrastructure Standalone and DB with Oracle RestartAPPASTStructOracleREST
- 升級Grid Infrastructure到10.2.0.2 遭遇bug 9413827ASTStruct
- How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]ASTStruct
- Troubleshoot Grid Infrastructure Startup Issues (Doc ID 1050908.1)ASTStruct
- 【GRID】Grid Infrastructure 啟動的五大問題 (Doc ID 1526147.1)ASTStruct
- Oracle 12c Grid Infrastructure for a Standalone Server on Oracle Linux 7OracleASTStructServerLinux
- 【MOS】How to backup or restore OLR in 11.2/12c Grid InfrastructureRESTASTStruct
- oracle linux 11.2 rac grid infrastructure add scan ipOracleLinuxASTStruct
- redhat linux 11.2 rac grid infrastructure add scan ipRedhatLinuxASTStruct
- backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)RESTASTStruct
- Master Note for RAC Oracle Clusterware and Oracle Grid Infrastructure 1096952.ASTOracleStruct
- 【轉】How to recover from root.sh on 11.2 Grid Infrastructure FailedASTStructAI
- [INS-40406] The installer detects no existing Oracle Grid Infrastructure ...OracleASTStruct
- 聊聊兩種給Grid Infrastructure打補丁的方法(上)ASTStruct
- 聊聊兩種給Grid Infrastructure打補丁的方法(下)ASTStruct
- 【RAC】How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]ASTStruct
- oracle 11gR2 新增deinstall命令來解除安裝grid和databaseOracleDatabase
- 為11gR2 Grid Infrastructure增加新的public網路ASTStruct
- 重新配置與解除安裝11gR2 Grid InfrastructureASTStruct
- zt_Oracle 11gR2 grid infrastructure安裝配置系列OracleASTStruct
- 重新配置與解除安裝 11gR2 Grid InfrastructureASTStruct
- 11g oracle database installation with oracle grid infrastructure on linux(文件)OracleDatabaseASTStructLinux
- 11.2.0.1 Grid Infrastructure Installation Failed at .... While Running root.shASTStructAIWhile
- 如何升級Oracle Grid Infrastructure和RAC從11.2.0.3到11.2.0.4?OracleASTStruct
- 診斷 Grid Infrastructure 啟動問題 (文件 ID 1623340.1)ASTStruct
- Pre 11.2 Database Issues in 11gR2 Grid Infrastructure Environment_948456.1DatabaseASTStruct