Complete this procedure to upgrade Oracle Grid Infrastructure (Oracle Clusterware and Oracle Automatic Storage Management) from an earlier release.
Note:Oracle ASM is upgraded as part of the Oracle Grid Infrastructure upgrade.
- As the
griduser, download the Oracle Grid Infrastructure image files and extract the files to the Grid home.
$ mkdir -p /u01/app/21.0.0/grid $ chown grid:oinstall /u01/app/21.0.0/grid $ cd /u01/app/21.0.0/grid $ unzip -q download_location/grid_home.zip
download_location/grid_home.zipis the path of the downloaded Oracle Grid Infrastructure image file.
You must extract the image software into the directory where you want your Grid home to be located.
Download and copy the Oracle Grid Infrastructure image files to the local node only. During upgrade, the software is copied and installed on all other nodes in the cluster.
- Start the Oracle Grid Infrastructure wizard by running the following command:
- Select the Upgrade Oracle Grid Infrastructure: option to upgrade Oracle Grid Infrastructure (Oracle Clusterware and Oracle ASM).
- On the Node Selection page, ensure that all cluster nodes are selected.
Note:If any cluster node is unreachable, then select Skip upgrade on unreachable nodes. Otherwise, the upgrade will not complete until the unreachable nodes become reachable.
- Select installation options as prompted. Oracle recommends that you configure
rootscript automation, so that the
rootupgrade.shscript can be run automatically during the upgrade.
- Run the
rootscripts, either automatically or manually:
If you run the
- Running root scripts automatically:
If you have configured
rootscript automation, then use the pause between batches to relocate services from the nodes running the previous release to the new release.
- Running root scripts manually
If you have not configured
rootscript automation, then when prompted, run the
rootupgrade.shscript on each node in the cluster that you want to upgrade.
rootscripts manually, then run the script on the local node first. The script shuts down the earlier release installation, replaces it with the new Oracle Clusterware release, and starts the new Oracle Clusterware installation. After the script completes successfully, you can run the script in parallel on all nodes except for one, which you select as the last node. When the script is run successfully on all the nodes except the last node, run the script on the last node.
- Running root scripts automatically:
- Because the Oracle Grid Infrastructure home is in a different location than the former Oracle Clusterware and Oracle ASM homes, update any scripts or applications that use utilities, libraries, or other files that reside in the Oracle Clusterware and Oracle ASM homes.
- Update the Oracle Enterprise Manager target parameters as described in the topic Updating Oracle Enterprise Manager Cloud Control Target Parameters.
After upgrading to Oracle Grid Infrastructure 21c, remove the
$ORACLE_HOME/network/admin/sqlnet.orafile, if you use Oracle ASM for database storage.
At the end of the upgrade, if you set the Oracle Cluster Registry (OCR) backup location manually to the earlier release Oracle Clusterware home (CRS home), then you must change the OCR backup location to the new Oracle Grid Infrastructure home (Grid home). If you did not set the OCR backup location manually, then the backup location is changed for you during the upgrade.
Because upgrades of Oracle Clusterware are out-of-place upgrades, the previous release Oracle Clusterware home cannot be the location of the current release OCR backups. Backups in the old Oracle Clusterware home can be deleted.
If the cluster being upgraded has a single disk group that stores the OCR, OCR backup, Oracle ASM password, Oracle ASM password file backup, and the Grid Infrastructure Management Repository (GIMR), then Oracle recommends that you create a separate disk group or use another existing disk group and store the OCR backup, the GIMR and Oracle ASM password file backup in that disk group.