Changing the Oracle Restart Home Path

After installing Oracle Grid Infrastructure for a standalone server (Oracle Restart and Oracle ASM configured for a standalone server), if you need to change the Grid home path, then use the following example as a guide to detach the old Grid home, and to attach a new Grid home:

Note:

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. As the root user, copy the Oracle Grid Infrastructure binaries from the old Grid home location to the new Grid home location. For example, where the old Grid home is /u01/app/oracle/product/23.0.0/grid and the new Grid home is /u01/app/oracle/product/23ai/grid.
    # mkdir /u01/app/oracle/product/23ai/grid
    # cp -pR /u01/app/oracle/product/23.0.0/grid /u01/app/oracle/product/23ai/grid
  2. Change the owner and group for the directory and files in the new Grid home.
    # chown -R grid:oinstall /u01/app/oracle/product/23ai/grid
  3. As the grid user, run the gridSetup.sh command from the new Grid home directory and in the Select Configuration Option screen, select Setup Software Only.
    $ /u01/app/oracle/product/23ai/grid/gridSetup.sh
    Complete the installation by selecting the installation options as prompted. This step relinks the Oracle Grid Infrastructure binaries and updates the Oracle Inventory (oraInventory) with the new Oracle Grid Infrastructure home.

    Note:

    Do not change the Oracle base path during the installation.
  4. As the root user, run the root.sh script from your new Grid home.
    # /u01/app/oracle/product/23ai/grid/root.sh
  5. Switch to the patched Oracle Grid Infrastructure home using one of the following methods:
    • Start the Oracle Grid Infrastructure installer in interactive mode from the new Oracle home:
      $ /u01/app/oracle/product/23ai/grid/gridSetup.sh

      Then perform the following steps:

      1. Select the Patch Oracle Grid Infrastructure option in the Select Configuration Option window.
      2. Select the Use Zero Downtime GI patching option to switch to the patched Oracle Grid Infrastructure home.
      3. Select the Do not update ACFS drivers option if the patch that you are installing contains operating system driver updates and you want to skip them.
      4. Respond to the installation screens with values appropriate for your environment.
    • Start the Oracle Grid Infrastructure installer in silent mode, with the -switchGridHome flag from the new Oracle home.
      $ /u01/app/oracle/product/23ai/grid/gridSetup.sh -silent -switchGridHome