Complete this procedure to upgrade Oracle Grid Infrastructure (Oracle Clusterware and Oracle Automatic Storage Management) from an earlier release.
griduser, download the Oracle Grid Infrastructure image files and extract the files to the Grid home.
mkdir -p /u01/app/12.2.0/grid chown grid:oinstall /u01/app/12.2.0/grid cd /u01/app/12.2.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 following configuration option:
- Upgrade Oracle Grid Infrastructure: Select this option to upgrade Oracle Grid Infrastructure (Oracle Clusterware and Oracle ASM).
Note:Oracle Clusterware must always be the later release, so you cannot upgrade Oracle ASM to a release that is more recent than Oracle Clusterware.
- On the Node Selection page, select all nodes.
- Select installation options as prompted. Oracle recommends that you configure
rootscript automation, so that the
rootupgrade.shscript can be run automatically during the upgrade.
rootscripts, using either automatically or manually:
If you run
- 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. When upgrading from 12.1 Oracle Flex Cluster, Oracle recommends that you run the
rootupgrade.shscript on all Hub Nodes before running it on Leaf Nodes.
- 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.
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.
See Also:Oracle Clusterware Administration and Deployment Guide for the commands to create a disk group.