Reconfigure and uninstall 11gr2 grid infrastructure

Source: Internet
Author: User

The installation and configuration of Oracle 11g R2 grid infrastructure provides more flexibility than the previous version. If you run root. Sh before installing grid infrastructure, errors often occur and you need to fix the errors to continue. In this version, we can re-configure the grid infrastructure by executing the script rootcrs. pl without first uninstalling the grid infrastructure, and then re-installing it after fixing the fault. The following describes how to use rootcrs. pl and how to use deinstall to thoroughly uninstall grid infrastructure.

 

1. Introduction to rootcrs. pl commands

# Command location: $ grid_home/CRS/install # command Description: # This command is mainly used to maintain and manage CRS, including patch, upgrade, downgrade, deconfig, and so on # perldoc rootcrs. PL executes this command to get a complete introduction [root @ linux1 install] #. /rootcrs. pl-hunknown option: husage: rootcrs. PL [-verbose] [-upgrade |-Patch] [-hahome <directory>] [-paramfile <parameter-File>] [-deconfig |-downgrade] [-force] [-lastnode] [-downgrade] [-oldcrshome <old crshome path>] [-version <old CRS version>] [-Unlock [-crshome <path to CRS Home>] Options: -verbose run this script in verbose mode-Upgrade Oracle ha is being upgraded from previous version-patch Oracle ha is being upgraded to a patch version-hahome complete path of Oracle clusterware home-paramfile complete path of file specifying ha parameter values-lastnode force the node this is executing on to be considered the last node of the install and perform actions associated with prior ig the last node-downgrade the clusterware- version for use with downgrade; special handling is required if downgrading to 9i. this is the old CRS version in the format a. B .c.d. E (E. g 11.1.0.6.0 ). -deconfig remove Oracle clusterware to allow it to be uninstalled or reinstalled. -Force the executon of steps in delete that cannot be verified to be safe-Unlock unlock CRS home-crshome complete path of CRS home. use with unlock option. -oldcrshome for use with downgrade. complete path of the old CRS home. if neither-upgrade nor-patch is supplied, a new install is already med to see the full manpage for this program, execute: perldoc rootcrs. PL

# When the execution of root. Sh fails, we can use this command to clear the configuration information of CRS with the-deconfig parameter, fix the fault based on the log or use the patch, and then re-execute root. Sh.
# The usage of the patch, upgrade, and downgrade commands is not described in detail.

 

2. reconfigure grid infrastructure and ASM

# Re-configuring grid infrastructure does not remove the copied binary file. It is only returned to the status before the CRS is configured. The following is step a. Log On with the root user, and execute the following command (all nodes except the last node) # Perl $ grid_home/CRS/install/rootcrs. pl-verbose-deconfig-force B. Use the root user to execute the following command on the last node. This command clears the OCR configuration and voting disk # Perl $ grid_home/CRS/install/rootcrs. pl-verbose-deconfig-force-lastnodec. If an ASM disk is used, continue with the following operations to make the ASM react as a candidate disk (clear all ASM disk groups) # dd If =/dev/Zero of =/dev/sdb1 BS = 1024 COUNT = 100 #/etc/init. d/oracleasm deletedisk data/dev/sdb1 #/etc/init. d/oracleasm createdisk data/dev/sdb1 # Author: Robinson # blog: http://blog.csdn.net/robinson_0612

3. Completely Delete grid infrastructure

#11g R2 grid infrastructure also provides the complete uninstallation function. The deinstall command replaces the use of OUI to clear clusterware and ASM and replies to the environment before the grid is installed. # This command stops the cluster and removes binary files and all related configuration information. # Command location: $ grid_home/deinstall # The following is an example of this command operation. During the operation, you must provide some interactive information, and in the new session, clear some files under/tmp as root [root @ linux1 bin] #. /crsctl check crsCRS-4638: Oracle High Availability services is onlineCRS-4537: Cluster ready services is onlineCRS-4529: Cluster synchronization services is onlineCRS-4533: event manager is online [root @ linux1 bin] # CD .. /deinstall/[root @ linux1 deinstall] # PWD/u01/APP/11.2.0/GRID/deinstall [Ro Ot @ linux1 deinstall] #. /deinstallyou must not be logged in as root to run. /deinstall. log in as Oracle user and rerun. /deinstall. [root @ linux1 deinstall] # su grid [grid @ linux1 deinstall] $. /deinstallchecking for required files and bootstrapping... please wait... location of logs/tmp/deinstall2013-07-16_05-54-03-PM/logs/############ Oracle deinstall & deconfig tool start ############ ############### ######### Check operation start ######################## install Check Configuration startchecking for existence of the Oracle Home Location/u01/APP/11.2.0/gridoracle home type selected for de-install is: crsoracle base selected for de-install is:/u01/APP/gridchecking for existence of central inventory location/u01/APP/orainventorychecking for existence of the Oracle grid infrastructure home/U0 1/APP/11.2.0/gridthe following nodes are part of this cluster: linux1, linux2install Check Configuration endtraces Log File:/tmp/deinstall2013-07-16_05-54-03-PM/logs // crsdc. lognetwork configuration check config startnetwork de-configuration trace file location:/tmp/deinstall2013-07-16_05-54-03-PM/logs/netdc_check207506844451155733.lognetwork configuration check config endasm Check Configuration s Tartasm de-configuration trace file location:/tmp/deinstall2013-07-16_05-54-03-PM/logs/asmcadc_check2698133635629979531.logasm configuration was not detected in this oracle home. was ASM configured in this Oracle Home (Y | N) [N]: yautomatic Storage Management (ASM) instance is detected in this Oracle Home/u01/APP/11.2.0/grid. ASM diagnostic destination:/u01/APP/gridasm diskgroups: + datadiskgrou PS will be droppedde-indexing ing 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 operatio N end ###################################### ########## check operation summary ####################### Oracle grid infrastructure home is: /u01/APP/11.2.0/gridthe cluster node (s) on which the Oracle Home exists are: (Please input nodes seperated by ",", eg: node1, node2 ,...) linux1, linux2oracle home selected for de-install is:/u01/APP/11.2.0/gridinventory location where the Oracle Home registered is :/U01/APP/orainventoryasm instance will be de-configured from this oracle homedo you want to continue (Y-Yes, N-No )? [N]: Ya log of this session will be written to: '/tmp/deinstall2013-07-16_05-54-03-PM/logs/deinstall_deconfig2013-07-16_05-54-37-PM.out' any error messages from this session will be written: '/tmp/deinstall2013-07-16_05-54-03-PM/logs/deinstall_deconfig2013-07-16_05-54-37-PM.err' ######################## clean operation start ### #################### ASM de-configuration trace file location: /tmp/deinstall2013-07-16_05-54-03-PM/logs/asmcadc_clean3319637107726750003.logasm clean configuration startasm clean configuration endnetwork configuration clean config startnetwork de-configuration trace file location: /tmp/deinstall2013-07-16_05-54-03-PM/logs/netdc_clean9055263637610505743.logDe-configuring naming methods configuration file on all nodes... naming Methods configuration file de-configured successfully. de-Authentication ing local net service names configuration file on all nodes... local net service names configuration file de-configured successfully. de-Authentication ing directory usage configuration file on all nodes... directory usage configuration file de-configured successfully. de-processing ing backup files on all nodes... 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 "linux2 ". /tmp/deinstall2013-07-16_05-54-03-PM/perl/bin/perl-I/tmp/deinstall2013-07-16_05-54-03-PM/perl/lib-I/tmp/deinstall2013-07-16_05-54-03-PM/CRS/install/tmp/deinstall2013-07-16_05-54-03-PM/CRS/install/rootcrs. pl-force-delete-paramfile/tmp/deinstall2013-07-16_05-54-03-PM/response/deinstall_ora11g_gridinfrahome1.rsprun the following command as the root user or the Administrator on node "linux1 ". /tmp/deinstall2013-07-16_05-54-03-PM/perl/bin/perl-I/tmp/deinstall2013-07-16_05-54-03-PM/perl/lib-I/tmp/deinstall2013-07-16_05-54-03-PM/CRS/install/tmp/deinstall2013-07-16_05-54-03-PM/CRS/install/rootcrs. pl-force-delete-paramfile/tmp/deinstall2013-07-16_05-54-03-PM/response/deinstall_ora11g_gridinfrahome1.rsp-lastnodepress enter after you finish running the above commands <---------------------------------------- Oracle universal installer clean startdetach Oracle Home '/u01/APP/ 11.2.0/GRID 'from the central inventory on the local node: donedelete directory '/u01/APP/11.2.0/GRID' on the local node: donedelete directory '/u01/APP/orainventory' on the local node: donedelete directory '/u01/APP/GRID' on the local node: donedetach Oracle Home '/u01/APP/11.2.0/GRID' from the central inventory on the remote nodes 'linux2 ': donedelete directory '/u01/APP/11.2.0/GRID' on the remote nodes 'linux2 ': donedelete directory'/u01/APP/orainventory 'on the remote nodes 'linux2 ': donedelete directory '/u01/APP/GRID' on the remote nodes 'linux2 ': doneoracle universal installer cleanup was successful. oracle universal installer clean endoracle install clean startclean install operation removing temporary directory '/tmp/install 'on node' linux1 'clean install operation removing temporary directory'/tmp/install 'on node' linux2 'oracle install clean end ######################## clean operation end ####### ######################################## # clean operation summary ##################### ASM instance was de-configured successfully from the Oracle homeoracle clusterware is stopped and successfully de-configured on node "linux2" Oracle clusterware is stopped and successfully de-configured on node "linux1" Oracle clusterware is stopped and de-configured successfully. successfully detached Oracle Home '/u01/APP/11.2.0/GRID' from the central inventory on the local node. successfully deleted directory '/u01/APP/11.2.0/grid' on the local node. successfully deleted directory '/u01/APP/orainventory' on the local node. successfully deleted directory '/u01/APP/GRID' on the local node. successfully detached Oracle Home '/u01/APP/11.2.0/GRID' from the central inventory on the remote nodes 'linux2 '. successfully deleted directory '/u01/APP/11.2.0/GRID' on the remote nodes 'linux2 '. successfully deleted directory '/u01/APP/orainventory' on the remote nodes 'linux2 '. successfully deleted directory '/u01/APP/GRID' on the remote nodes 'linux2 '. oracle universal installer cleanup was successful. run 'rm-RF/etc/orainst. loc 'as root on node (s)' linux1, linux2 'At the end of the session. oracle install successfully cleaned up the temporary directories. ######################################## ######################################## #### Oracle deinstall & deconfig tool end #############

 

More references

For more information about Oracle RAC, see
Use crs_setperm to modify the resource owner and permissions of RAC.
Use crs_profile to manage RAC resource configuration files
RAC database startup and Shutdown
Oracle RAC services
Services in Oracle Database 10g
Migrate datbase from single instance to Oracle RAC
Connect Oracle RAC to a specified instance
Oracle RAC load balancing test (combined with server and client)
Oracle RAC server connection Load Balance)
Load Balance)
Non-Default port listening configuration in Oracle RAC (listener. ora tnsnames. ora)
Oracle RAC Listener Configuration (listener. ora tnsnames. ora)
Configure RAC load balancing and Failover
CRS-1006, CRS-0215 fault case
Installing Oracle 10g RAC Based on Linux (RHEL 5.5)
Use runcluvfy to verify the Oracle RAC installation environment

For more information about the basics and concepts of Oracle network configuration, see:
Configure dynamic service registration for non-default ports
Configure sqlnet. ora to restrict IP Access to Oracle
Configure and manage Oracle listener logs
Set the Oracle listener password (listener)
Configure the Oracle client to connect to the database

For more information about user-managed backup and recovery, see
Oracle cold backup
Oracle Hot Backup
Concept of Oracle backup recovery
Oracle instance recovery
Oracle recovery based on user management
System tablespace management and Backup Recovery
Sysaux tablespace management and recovery
Oracle backup control file recovery (unsing backup controlfile)

For information on RMAN backup recovery and management, see
RMAN overview and architecture
RMAN configuration, Monitoring and Management
Detailed description of RMAN backup
RMAN restoration and recovery
Create and use RMAN catalog
Create RMAN storage script based on catalog
Catalog-based RMAN backup and recovery
RMAN backup path confusion
Use RMAN for recovery from different machine backups (WIN platform)
Use RMAN to migrate a file system database to ASM
Linux RMAN backup shell script
Use RMAN to migrate the database to a different machine

For the Oracle architecture, see
Oracle tablespace and data files
Oracle Password File
Oracle parameter file
Oracle online redo log file)
Oracle Control File)
Oracle archiving logs
Oracle rollback and undo)
Oracle database instance startup and Shutdown Process
Automated Management of Oracle 10g SGA
Oracle instances and Oracle databases (Oracle Architecture)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.