Downgrading Oracle Grid Infrastructure after Upgrade Fails

If upgrade of Oracle Grid Infrastructure fails before setting the active version of Oracle Clusterware, then follow these steps to downgrade Oracle Grid Infrastructure to the earlier release.

Run this procedure to downgrade Oracle Clusterware only when the upgrade fails before root script runs the crsctl set crs activeversion command on the last node. Use this procedure for downgrading Oracle Grid Infrastructure if there is a need to avoid downtime of the whole cluster. This procedure downgrades the cluster to the previous release. Because Oracle ASM and database operations are limited in this state, it is recommended to move the cluster from this state as soon as possible. Complete the downgrade of Oracle Grid Infrastructure as per the procedure documented in Downgrading to Oracle Grid Infrastructure 12c Release 1 (12.1) or Downgrading to Oracle Grid Infrastructure 11g Release 2 (11.2) for your software release.
  1. Shut down the Oracle Grid Infrastructure stack on the first node:
    crsctl stop crs
  2. From any node where the Grid Infrastructure stack from the earlier release is running, unset the Oracle ASM rolling migration mode as follows:
    1. Log in as grid user, and run the following command as SYSASM user on the Oracle ASM instance:
      SQL> ALTER SYSTEM STOP ROLLING MIGRATION;
  3. If you are upgrading from 11.2.0.4 or 12.1.0.1, then apply the latest available patches on all nodes in the cluster. If the pre-upgrade version is 12.1.0.2 or later, then patch is not required.
    1. On all other nodes except the first node, where the earlier release Grid Infrastructure stack is running, apply the latest patch using the opatch auto procedure.
    2. On the first node where the earlier release Grid Infrastructure stack is stopped, apply the latest patch using the opatch apply procedure.

      For the list of latest available patches, see My Oracle Support at the following link:

      https://support.oracle.com/

      1. Unlock the Grid Infrastructure home from the earlier release:

        rootcrs.pl -unlock -crshome pre-upgrade-grid-home

        pre-upgrade-grid-home is the previous release Grid home.

      2. Apply the patch:

        opatch apply -local -oh pre-upgrade-grid-home
      3. Relock the Grid home from the earlier release:

        rootcrs.pl -lock
    3. From any other node where the Grid Infrastructure stack from the earlier release is running, unset the Oracle ASM rolling migration mode as explained in step 2.
  4. On any node running Oracle Grid Infrastructure other than the first node, from the Grid home of the earlier release, run the command:
    clscfg -nodedowngrade -h hostname

    hostname is the host name of the first node.

  5. From the later release Grid home, run the command to downgrade Oracle Clusterware:
    rootcrs.sh -downgrade -online

    If rootcrs.sh is not present, then use rootcrs.pl.

  6. Start Oracle Grid Infrastructure stack on the first node from the earlier release Grid home:
    crsctl start crs

Note:

You can downgrade the cluster nodes in any sequence.