Testing the 19c Grid Infrastructure by Performing a Dry-Run Upgrade

Posted in: Renew Refresh Republish, Technical Track

Editor’s Note: Because our bloggers have lots of useful tips, every now and then we update and bring forward a popular post from the past. We originally published today’s post on August 14, 2019.

In reviewing the Grid Infrastructure Installation and Upgrade Guide for Linux, I discovered the dry-run upgrade mode to test upgrades. With dry-run being a new feature, I tested it first using GUI.

Below I will step you through this process:

[[email protected] grid]$ /u01/app/ -dryRunForUpgrade
Launching Oracle Grid Infrastructure Setup Wizard...
The response file for this session can be found at:
You can find the log of this install session at:
[[email protected] grid]$

From the response file above grid_2019-08-06_00-20-31AM.rsp, create dryRunForUpgradegrid.rsp:

[[email protected] grid]$ grep -v "^#" /u01/app/ | grep -v "=$" | awk 'NF' > /home/oracle/dryRunForUpgradegrid.rsp
[[email protected] ~]$ cat /home/oracle/dryRunForUpgradegrid.rsp
[[email protected] ~]$

Next, create directory /u01/app/ for all nodes:

[[email protected] ~]# id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54318(asmdba),54322(dba),54323(backupdba),54324(oper),54325(dgdba),54326(kmdba)
[[email protected] ~]# mkdir -p /u01/app/
[[email protected] ~]# chown oracle:oinstall /u01/app/
[[email protected] ~]# chmod 775 /u01/app/
[[email protected] ~]# ll /u01/app/
total 4
drwxrwxr-x 2 oracle oinstall 4096 Aug 6 02:07 grid
[[email protected] ~]#

Extract grid software for node1 ONLY:

[[email protected] ~]$ unzip -qo /media/swrepo/LINUX.X64_193000_grid_home.zip -d /u01/app/
[[email protected] ~]$ ls /u01/app/
addnode clone dbjava diagnostics gpnp install jdbc lib OPatch ords perl qos rhp rootupgrade.sh sqlpatch tomcat welcome.html xdk
assistants crs dbs dmu gridSetup.sh instantclient jdk md opmn oss plsql racg root.sh runcluvfy.sh sqlplus ucp wlm
bin css deinstall env.ora has inventory jlib network oracore oui precomp rdbms root.sh.old sdk srvm usm wwg
cha cv demo evm hs javavm ldap nls ord owm QOpatch relnotes root.sh.old.1 slax suptools utl xag
[[email protected] ~]$ du -sh /u01/app/
6.0G /u01/app/
[[email protected] ~]$

Run gridSetup.sh -silent -dryRunForUpgrade:

[[email protected] ~]$ env|grep -i ora
[[email protected] ~]$ date
Tue Aug 6 02:35:47 CEST 2019
[[email protected] ~]$ /u01/app/ -silent -dryRunForUpgrade -responseFile /home/oracle/dryRunForUpgradegrid.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[WARNING] [INS-13014] Target environment does not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/GridSetupActions2019-08-06_02-35-52AM/gridSetupActions2019-08-06_02-35-52AM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/GridSetupActions2019-08-06_02-35-52AM/gridSetupActions2019-08-06_02-35-52AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
You can find the log of this install session at:
As a root user, execute the following script(s):
1. /u01/app/
Execute /u01/app/ on the following nodes:
Run the script on the local node.
Successfully Setup Software with warning(s).
[[email protected] ~]$

Run rootupgrade.sh for node1 ONLY and review log:

[[email protected] ~]# /u01/app/
Check /u01/app/ for the output of root script
[[email protected] ~]# cat /u01/app/
Performing root user operation.
The following environment variables are set as:
ORACLE_HOME= /u01/app/
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Performing Dry run of the Grid Infrastructure upgrade.
Using configuration parameter file: /u01/app/
The log of current session can be found at:
2019/08/06 02:45:44 CLSRSC-464: Starting retrieval of the cluster configuration data
2019/08/06 02:45:52 CLSRSC-729: Checking whether CRS entities are ready for upgrade, cluster upgrade will not be attempted now. This operation may take a few minutes.
2019/08/06 02:47:56 CLSRSC-693: CRS entities validation completed successfully.
[[email protected] ~]#

Next, check grid home for node2:

[[email protected] ~]$ du -sh /u01/app/
6.6G /u01/app/
[[email protected] ~]$

Then, check oraInventory for ALL nodes:

[[email protected] ~]$ cat /u01/app/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2019, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<HOME NAME="OraGI12Home1" LOC="/u01/app/" TYPE="O" IDX="1" CRS="true"/>
<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/" TYPE="O" IDX="2"/>
<HOME NAME="OraGI19Home1" LOC="/u01/app/" TYPE="O" IDX="3"/>
[[email protected] ~]$

Check crs activeversion:

[[email protected] ~]$ . /media/patch/gi.env
The Oracle base has been set to /u01/app/oracle
Oracle Instance alive for sid "+ASM1"
[[email protected] ~]$ crsctl query crs activeversion -f
Oracle Clusterware active version on the cluster is []. The cluster upgrade state is [NORMAL]. The cluster active patch level is [927320293].
[[email protected] ~]$

Check log location:

[[email protected] ~]$ cd /u01/app/oraInventory/logs/GridSetupActions2019-08-06_02-35-52AM/
[[email protected] GridSetupActions2019-08-06_02-35-52AM]$ ls -alrt
total 17420
-rw-r----- 1 oracle oinstall 129 Aug 6 02:35 installerPatchActions_2019-08-06_02-35-52AM.log
-rw-r----- 1 oracle oinstall 0 Aug 6 02:35 gridSetupActions2019-08-06_02-35-52AM.err
drwxrwx--- 3 oracle oinstall 4096 Aug 6 02:35 temp_ob
-rw-r----- 1 oracle oinstall 0 Aug 6 02:39 oraInstall2019-08-06_02-35-52AM.err
drwxrwx--- 17 oracle oinstall 4096 Aug 6 02:39 ..
-rw-r----- 1 oracle oinstall 157 Aug 6 02:39 oraInstall2019-08-06_02-35-52AM.out
-rw-r----- 1 oracle oinstall 0 Aug 6 02:43 oraInstall2019-08-06_02-35-52AM.err.racnode-dc2-2
-rw-r----- 1 oracle oinstall 142 Aug 6 02:43 oraInstall2019-08-06_02-35-52AM.out.racnode-dc2-2
-rw-r----- 1 oracle oinstall 9341920 Aug 6 02:43 gridSetupActions2019-08-06_02-35-52AM.out
-rw-r----- 1 oracle oinstall 13419 Aug 6 02:43 time2019-08-06_02-35-52AM.log
-rw-r----- 1 oracle oinstall 8443087 Aug 6 02:43 gridSetupActions2019-08-06_02-35-52AM.log
drwxrwx--- 3 oracle oinstall 4096 Aug 6 02:56 .
[[email protected] GridSetupActions2019-08-06_02-35-52AM]$

Since I have not performed an actual upgrade, I don’t know if grid home in oraInventory will be problematic. It was problematic when performing a test with silent mode after the initial test with GUI. To resolve the issue, you can detach grid home.

export ORACLE_HOME=/u01/app/
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$ORACLE_HOME

In conclusion, testing a grid upgrade using dryRunForUpgrade functionality is a good method to identify any possible issues before performing an actual upgrade.

Want to talk with an expert? Schedule a call with our team to get the conversation started.

No comments

Leave a Reply

Your email address will not be published. Required fields are marked *