Step by Step upgrade GI from 12.2 to 19.12 on AIX

Step by Step upgrade grid infrastructure from 12.2.0.1 to 19.12.0.0.0 on AIX

High level steps:

Source Version: 12.2.0.1.0

Target Version: 19.12.0.0.0

OS : AIX 7.1

 

  1. Verify prerequisites and setup Kernel parameters & OS Packs on AIX server.
  2. Apply Bundle Patch 27006180 on 12c grid home before upgrading to 19c
  3. as a grid user run rootpre.sh as a root user
      $ sh /u00/grid/oracle/product/19000/grid/clone/rootpre.sh
  4. run gridSetup.sh with grid/oracle user  from 19C Oracle HOME and select the required options in the GUI
  1. run rootupgrade.sh as a root user
# sh /u00/grid/oracle/product/19000/grid/rootupgrade.sh
  1. Upgrade from 19.3.0.0.0 to 19.12.0.0.0

Step 1) Connect as grid user(in this scenario it is oracle user) , create directory structure.

mkdir -p /u00/grid/oracle/product/19000/grid

Step 2)

export ORACLE_HOME=/u00/grid/oracle/product/19000/grid

export ORACLE_SID=+ASM

export DISPLAY=<remote Desktop IP>:0.0

xclock

Step 3:$ sh /u00/grid/oracle/product/19000/grid/clone/rootpre.sh

Step 4) cd /u00/grid/oracle/product/19000/grid

                  ./gridSetup.sh

Step 5)

Step 6)

Checks shown in the screenshot have been ignored all.

root@AIXSRVR  /u02/software/19C_AIX_GRID/27006180

# crsctl start has

CRS-4123: Oracle High Availability Services has been started.

root@AIXSRVR  /u02/software/19C_AIX_GRID/27006180

# sh /u00/grid/oracle/product/19000/grid/rootupgrade.sh

Performing root user operation.

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=  /u00/grid/oracle/product/19000/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of “dbhome” have not changed. No need to overwrite.

The file “oraenv” already exists in /usr/local/bin.  Overwrite it? (y/n) [n]:

The file “coraenv” already exists in /usr/local/bin.  Overwrite it? (y/n) [n]:

 

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.

Using configuration parameter file: /u00/grid/oracle/product/19000/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u00/grid/oracle/crsdata/AIXSRVR/crsconfig/roothas_2022-03-02_09-49-50AM.log

2022/03/02 09:50:03 CLSRSC-595: Executing upgrade step 1 of 12: ‘UpgPrechecks’.

2022/03/02 09:50:13 CLSRSC-363: User ignored prerequisites during installation

2022/03/02 09:50:22 CLSRSC-595: Executing upgrade step 2 of 12: ‘GetOldConfig’.

2022/03/02 09:50:38 CLSRSC-595: Executing upgrade step 3 of 12: ‘GenSiteGUIDs’.

2022/03/02 09:50:38 CLSRSC-595: Executing upgrade step 4 of 12: ‘SetupOSD’.

2022/03/02 09:50:39 CLSRSC-595: Executing upgrade step 5 of 12: ‘PreUpgrade’.

 

ASM has been upgraded and started successfully.

 

2022/03/02 09:51:35 CLSRSC-595: Executing upgrade step 6 of 12: ‘UpgradeAFD’.

2022/03/02 09:51:36 CLSRSC-595: Executing upgrade step 7 of 12: ‘UpgradeOLR’.

clscfg: EXISTING configuration version 0 detected.

Creating OCR keys for user ‘oracle’, privgrp ‘dba’..

Operation successful.

2022/03/02 09:52:04 CLSRSC-595: Executing upgrade step 8 of 12: ‘UpgradeOCR’.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user ‘root’, privgrp ‘system’..

Operation successful.

CRS-4664: Node AIXSRVR successfully pinned.

2022/03/02 09:52:13 CLSRSC-595: Executing upgrade step 9 of 12: ‘CreateOHASD’.

2022/03/02 09:52:18 CLSRSC-595: Executing upgrade step 10 of 12: ‘ConfigOHASD’.

2022/03/02 09:52:19 CLSRSC-329: Replacing Clusterware entries in file ‘/etc/inittab’

2022/03/02 09:53:30 CLSRSC-595: Executing upgrade step 11 of 12: ‘UpgradeSIHA’.

 

AIXSRVR     2022/03/02 09:55:51     /u00/grid/oracle/crsdata/AIXSRVR/olr/backup_20220302_095551.olr     2676783881

 

AIXSRVR     2020/05/20 21:48:06     /u00/grid/oracle/product/12201/grid/cdata/AIXSRVR/backup_20200520_214806.olr     0

 

AIXSRVR     2020/05/19 23:33:15     /u00/grid/oracle/product/1120/grid/cdata/AIXSRVR/backup_20200519_233315.olr     –

 

AIXSRVR     2020/05/19 23:30:33     /u00/grid/oracle/product/1120/grid/cdata/AIXSRVR/backup_20200519_233033.olr     –

 

AIXSRVR     2013/01/27 07:04:43     /u00/grid/oracle/product/1120/grid/cdata/AIXSRVR/backup_20130127_070443.olr     –

2022/03/02 09:55:52 CLSRSC-595: Executing upgrade step 12 of 12: ‘InstallACFS’.

2022/03/02 09:58:34 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

root@AIXSRVR  /u02/software/19C_AIX_GRID/27006180

 

Step 7:

oracle 35717628        1   0 01:21:54      –  0:00 asm_pmon_+ASM

root@AIXSRVR:/>crsctl stop has

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘AIXSRVR’

CRS-2673: Attempting to stop ‘ora.evmd’ on ‘AIXSRVR’

CRS-2673: Attempting to stop ‘ora.DATA.dg’ on ‘AIXSRVR’

CRS-2673: Attempting to stop ‘ora.FRA.dg’ on ‘AIXSRVR’

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ‘AIXSRVR’

CRS-2677: Stop of ‘ora.DATA.dg’ on ‘AIXSRVR’ succeeded

CRS-2677: Stop of ‘ora.FRA.dg’ on ‘AIXSRVR’ succeeded

CRS-2673: Attempting to stop ‘ora.asm’ on ‘AIXSRVR’

CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ‘AIXSRVR’ succeeded

CRS-2677: Stop of ‘ora.evmd’ on ‘AIXSRVR’ succeeded

CRS-2677: Stop of ‘ora.asm’ on ‘AIXSRVR’ succeeded

CRS-2673: Attempting to stop ‘ora.cssd’ on ‘AIXSRVR’

CRS-2677: Stop of ‘ora.cssd’ on ‘AIXSRVR’ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘AIXSRVR’ has completed

CRS-4133: Oracle High Availability Services has been stopped.

root@AIXSRVR:/>

export ORACLE_HOME=/u00/grid/oracle/product/19000/grid

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

/u10/software/software/19C_AIX_GRID/32895426

$ORACLE_HOME/OPatch/opatchauto apply /u10/software/software/19C_AIX_GRID/32895426 -analyze -oh /u00/grid/oracle/product/19000/grid

 

opatchauto returns with error code = 2

root@AIXSRVR:/u00/grid/oracle/product/19000/grid>export ORACLE_HOME=/u00/grid/oracle/product/19000/grid

root@AIXSRVR:/u00/grid/oracle/product/19000/grid>export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

root@AIXSRVR:/u00/grid/oracle/product/19000/grid>/32895426 -analyze -oh /u00/grid/oracle/product/19000/grid              <

OPatchauto session is initiated at Sat Apr 23 01:53:48 2022

System initialization log file is /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchautodb/systemconfig2022-04-23_01-54-11AM.log.

Session log file is /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/opatchauto2022-04-23_01-54-37AM.log

The id for this session is SJBZ

Executing OPatch prereq operations to verify patch applicability on home /u00/grid/oracle/product/19000/grid

Patch applicability verified successfully on home /u00/grid/oracle/product/19000/grid

Executing patch validation checks on home /u00/grid/oracle/product/19000/grid

Patch validation checks successfully completed on home /u00/grid/oracle/product/19000/grid

OPatchAuto successful.

——————————–Summary——————————–

Analysis for applying patches has completed successfully:

 

Host:AIXSRVR

SIHA Home:/u00/grid/oracle/product/19000/grid

Version:19.0.0.0.0

 

==Following patches were SUCCESSFULLY analyzed to be applied:

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32916816

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_01-55-22AM_1.log

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32915586

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_01-55-22AM_1.log

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32585572

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_01-55-22AM_1.log

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32918050

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_01-55-22AM_1.log

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32904851

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_01-55-22AM_1.log

 

OPatchauto session completed at Sat Apr 23 01:56:16 2022

Time taken to complete the session 2 minutes, 29 seconds

root@AIXSRVR:/u00/grid/oracle/product/19000/grid>

 

AIXSRVR:/u00/app/oracle:SID=+ASM >

AIXSRVR:/u00/app/oracle:SID=+ASM > $ORACLE_HOME/OPatch/opatch lsinventory|grep applied

Patch  29585399     : applied on Sun May 19 07:32:58 CDT 2019

Patch  29517247     : applied on Sun May 19 07:32:35 CDT 2019

Patch  29517242     : applied on Sun May 19 07:32:09 CDT 2019

Patch  29401763     : applied on Sun May 19 07:31:44 CDT 2019

AIXSRVR:/u00/app/oracle:SID=+ASM >

 

opatchauto apply <UNZIPPED_PATCH_LOCATION>/32895426 -oh <GI_HOME>

 

$ORACLE_HOME/OPatch/opatchauto apply /u10/software/software/19C_AIX_GRID/32895426 -oh /u00/grid/oracle/product/19000/grid

root@AIXSRVR:/>export ORACLE_HOME=/u00/grid/oracle/product/19000/grid

root@AIXSRVR:/>export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

root@AIXSRVR:/>

root@AIXSRVR:/>ftware/19C_AIX_GRID/32895426 -oh /u00/grid/oracle/product/19000/grid         <

 

OPatchauto session is initiated at Sat Apr 23 01:59:34 2022

 

System initialization log file is /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchautodb/systemconfig2022-04-23_01-59-52AM.log.

 

Session log file is /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/opatchauto2022-04-23_02-00-07AM.log

The id for this session is 1TZ3

 

Executing OPatch prereq operations to verify patch applicability on home /u00/grid/oracle/product/19000/grid

Patch applicability verified successfully on home /u00/grid/oracle/product/19000/grid

 

 

Executing patch validation checks on home /u00/grid/oracle/product/19000/grid

Patch validation checks successfully completed on home /u00/grid/oracle/product/19000/grid

 

 

Performing prepatch operations on CRS – bringing down CRS service on home /u00/grid/oracle/product/19000/grid

Prepatch operation log file location: /u00/app/oracle/crsdata/AIXSRVR/crsconfig/hapatch_2022-04-23_02-01-46AM.log

CRS service brought down successfully on home /u00/grid/oracle/product/19000/grid

 

 

Start applying binary patch on home /u00/grid/oracle/product/19000/grid

Successfully executed command: /usr/sbin/slibclean

 

Binary patch applied successfully on home /u00/grid/oracle/product/19000/grid

 

 

Performing postpatch operations on CRS – starting CRS service on home /u00/grid/oracle/product/19000/grid

Postpatch operation log file location: /u00/app/oracle/crsdata/AIXSRVR/crsconfig/hapatch_2022-04-23_02-13-26AM.log

CRS service started successfully on home /u00/grid/oracle/product/19000/grid

OPatchAuto successful.

——————————–Summary——————————–

Patching is completed successfully. Please find the summary as follows:

Host:AIXSRVR

SIHA Home:/u00/grid/oracle/product/19000/grid

Version:19.0.0.0.0

Summary:

==Following patches were SUCCESSFULLY applied:

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32585572

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_02-02-12AM_1.log

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32904851

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_02-02-12AM_1.log

 

Patch: /u10/software/software/19C_AIX_GRID/32895426/32915586

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_02-02-12AM_1.log

Patch: /u10/software/software/19C_AIX_GRID/32895426/32916816

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_02-02-12AM_1.log

Patch: /u10/software/software/19C_AIX_GRID/32895426/32918050

Log: /u00/grid/oracle/product/19000/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-04-23_02-02-12AM_1.log

OPatchauto session completed at Sat Apr 23 02:14:52 2022

Time taken to complete the session 15 minutes, 18 seconds

root@AIXSRVR:>/u00/app/oracle:SID=+ASM >  $ORACLE_HOME/OPatch/opatch lsinventory|grep applied

Patch  32918050     : applied on Sat Apr 23 02:13:13 CDT 2022

Patch  32916816     : applied on Sat Apr 23 02:11:42 CDT 2022

Patch  32915586     : applied on Sat Apr 23 02:09:40 CDT 2022

Patch  32904851     : applied on Sat Apr 23 02:05:09 CDT 2022

Patch  32585572     : applied on Sat Apr 23 02:02:36 CDT 2022

AIXSRVR:/u00/app/oracle:SID=+ASM >

 

See Also

ORA-15032: not all alterations performed

Errors while running rootupgrade.sh GI upgrade in RAC

Error received While upgrading GI from 12c to 19c

Issues &#038; Fixes while upgrading GI from 12c to 19c

Failed or Missing checks &#8211; 19c runcluvfy.sh on RAC

https://support.oracle.com