Modifying Oracle Grid Infrastructure for a Standalone Server Binaries After Installation

After installation, if you do not patch binaries using OPatch with the opatchauto flag, then you must stop the stack, modify the software, and and then restart the stack.

You must first stop the Oracle Restart stack to modify the software installed in your Grid home. For example, to apply a one-off patch or modify any of the dynamic link libraries (DLLs) used by Oracle Restart or Oracle ASM, you must stop the stack manually, modify the software, and then restart the stack.

However, if you run the OPatch utility with the auto option, opatchauto, then OPatch stops and starts the software stack for you. If you run OPatch with the apply option, opatch apply, then you must also stop and restart the stack manually .

You must relink the Oracle Restart and Oracle ASM binaries every time you apply an operating system patch or after an operating system upgrade.

Caution:

Before relinking executables, you must shut down all executables that run in the Oracle home directory that you are relinking. In addition, shut down applications linked with Oracle shared libraries.

Modifying Oracle Grid Infrastructure for a Standalone Server Binaries

  1. Log in as the Oracle Grid Infrastructure for a standalone server software owner user and change the directory to the path Grid_home/bin, where Grid_home is the path to the Oracle Grid Infrastructure for a standalone server home:

    $ cd Grid_home/bin
  2. Shut down the Oracle Restart stack using the following command:

    $ crsctl stop has -f
  3. Log in as root and unlock the grid home:

    # cd Grid_home/crs/install 
    # roothas.sh -unlock
  4. Apply the patches using opatch apply.

  5. Relink the binaries.

    $ export ORACLE_HOME=Grid_home
    $ Grid_home/bin/relink
  6. Lock the grid home:

    # cd Grid_home/crs/install 
    # roothas.sh -lock
  7. Enter the following command to restart the Oracle Restart stack:

    $ crsctl start has

Relinking the Oracle Restart and Oracle ASM Binaries

  1. Log in as root and unlock the grid home:
    # cd Grid_home/crs/install 
    # roothas.sh -unlock
  2. Log in as the grid user and relink the binaries:
    $ export ORACLE_HOME=Grid_home
    $ Grid_home/bin/relink
  3. Log in as root again and perform the following steps:
    # cd Grid_home/rdbms/install/ 
    # ./rootadd_rdbms.sh 
    # cd Grid_home/crs/install 
    # roothas.sh -lock

    Note:

    Starting with Oracle Database 12c Release 1 (12.1.0.2), the roothas.sh script replaces the roothas.pl script in the Oracle Grid Infrastructure home.