Monday, January 27, 2014

How to change the Grid infrastructure home path

Changing the Oracle Grid Infrastructure Home Path

With release 11.2.0.3 and later, after installing Oracle Grid Infrastructure for a cluster (Oracle Clusterware and Oracle ASM configured for a cluster), if you need to change the Grid home path, then use the following example as a guide to detach the existing Grid home, and to attach a new Grid home:
Caution:
Before changing the Grid home, you must shut down all executables that run in the Grid home directory that you are relinking. In addition, shut down applications linked with Oracle shared libraries.
  1. Detach the existing Grid home by running the following command as the Oracle Grid Infrastructure installation owner (grid), where/u01/app/11.2.0/grid is the existing Grid home location:
    $ cd /u01/app/11.2.0/grid/oui/bin
    $ ./detachhome.sh -silent -local -invPtrLoc /u01/app/11.2.0/grid/oraInst.loc
    
  2. As root, unlock and move the Grid binaries from the old Grid home location to the new Grid home location. For example, where the old Grid home is/u01/app/11.2.0/grid and the new Grid home is /u01/app/grid:
    cd /u01/app/11.2.0/grid/
    perl rootcrs.pl -unlock
    # mv /u01/app/11.2.0/grid /u01/app/grid
    
  3. Clone the Oracle Grid Infrastructure installation, using the instructions provided in "Creating a Cluster by Cloning Oracle Clusterware Step 3: Run the clone.pl Script on Each Destination Node," in Oracle Clusterware Administration and Deployment Guide.
    When you navigate to the Grid_home/clone/bin directory and run the clone.pl script, provide values for the input parameters that provide the path information for the new Grid home.
  4. As root again, enter the following commands to start up in the new home location:
    # cd Grid_home/rdbms/install/
    # ./rootadd_rdbms.sh
    # cd Grid_home/crs/install
    # perl rootcrs.pl -patch -destcrshome /u01/app/grid
    
  5. Repeat steps 1 through 4 on each cluster member node.
You must relink the Oracle Clusterware and Oracle ASM binaries every time you move the Grid home.

1 comment:

  1. Thank you for sharing this information. It has helped me to know more about
    acoustic underlay

    ReplyDelete