This is exactly what I did last time and upgrade will fail due to compatible.asm=11.2.0.0.0
Goal now is to now to detect and prevent the failure.
Let’s see if ORAchk – Health Checks for the Oracle Stack (Doc ID 1268927.2) will detect this.
[oracle@db-asm-1 ~]$ asmcmd lsattr -G CRS -l
Name Value
access_control.enabled FALSE
access_control.umask 066
au_size 4194304
cell.smart_scan_capable FALSE
compatible.asm 11.2.0.0.0
compatible.rdbms 10.1.0.0.0
disk_repair_time 3.6h
sector_size 512
[oracle@db-asm-1 ~]$
Install Grid 12.2, runcluvfy.sh, resolve swap issue, create grid_upgrade.rsp
[oracle@db-asm-1 ~]$ mkdir -p /u01/app/12.2.0.1/grid [oracle@db-asm-1 ~]$ ls -l /sf_OracleSoftware/12.2.0.1_Linux_64/ total 6297251 -rwxrwxrwx. 1 vagrant vagrant 3453696911 Apr 12 15:44 linuxx64_12201_database.zip -rwxrwxrwx. 1 vagrant vagrant 2994687209 Apr 12 15:43 linuxx64_12201_grid_home.zip [oracle@db-asm-1 ~]$ unzip -d /u01/app/12.2.0.1/grid -qo /sf_OracleSoftware/12.2.0.1_Linux_64/linuxx64_12201_grid_home.zip; echo $? 0 [oracle@db-asm-1 grid]$ ./runcluvfy.sh stage -pre hacfg Pre-check for Oracle Restart configuration was unsuccessful. Failures were encountered during execution of CVU verification request "stage -pre hacfg". Verifying Physical Memory ...FAILED db-asm-1: PRVF-7530 : Sufficient physical memory is not available on node "db-asm-1" [Required physical memory = 8GB (8388608.0KB)] Verifying Swap Size ...FAILED db-asm-1: PRVF-7573 : Sufficient swap size is not available on node "db-asm-1" [Required = 1.5GB (1572864.0KB) ; Found = 1023.9961MB (1048572.0KB)] CVU operation performed: stage -pre hacfg Date: Oct 8, 2017 11:36:24 PM CVU home: /u01/app/12.2.0.1/grid/ User: oracle [root@db-asm-1 ~]# swapon -s Filename Type Size Used Priority /dev/sda1 partition 1048572 20860 -1 [root@db-asm-1 ~]# cat /proc/swaps Filename Type Size Used Priority /dev/sda1 partition 1048572 20860 -1 [root@db-asm-1 ~]# cat /etc/fstab|grep swap UUID=f6263370-a504-46e9-bb85-26e2400eafae swap swap defaults 0 0 [root@db-asm-1 ~]# df -h /root/ Filesystem Size Used Avail Use% Mounted on /dev/sda2 47G 2.4G 43G 6% / [root@db-asm-1 ~]# dd if=/dev/zero of=/root/swapfile count=1024 bs=2097152 1024+0 records in 1024+0 records out 2147483648 bytes (2.1 GB) copied, 4.2507 s, 505 MB/s [root@db-asm-1 ~]# mkswap -c /root/swapfile mkswap: /root/swapfile: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 2097148 KiB no label, UUID=c0aa5207-4882-4ce5-8943-1b245e1615dc [root@db-asm-1 ~]# swapon /root/swapfile [root@db-asm-1 ~]# swapon -s Filename Type Size Used Priority /dev/sda1 partition 1048572 20860 -1 /root/swapfile file 2097148 0 -2 [root@db-asm-1 ~]# cat /etc/fstab|grep swap UUID=f6263370-a504-46e9-bb85-26e2400eafae swap swap defaults 0 0 [root@db-asm-1 ~]# vi /etc/fstab [root@db-asm-1 ~]# cat /etc/fstab|grep swap UUID=f6263370-a504-46e9-bb85-26e2400eafae swap swap defaults 0 0 /root/swapfile swap swap defaults 0 0 [root@db-asm-1 ~]# [oracle@db-asm-1 grid]$ ./runcluvfy.sh stage -pre hacfg Pre-check for Oracle Restart configuration was unsuccessful. Failures were encountered during execution of CVU verification request "stage -pre hacfg". Verifying Physical Memory ...FAILED db-asm-1: PRVF-7530 : Sufficient physical memory is not available on node "db-asm-1" [Required physical memory = 8GB (8388608.0KB)] CVU operation performed: stage -pre hacfg Date: Oct 8, 2017 11:49:01 PM CVU home: /u01/app/12.2.0.1/grid/ User: oracle [oracle@db-asm-1 grid]$ [oracle@db-asm-1 ~]$ echo $ORACLE_HOME /u01/app/oracle/11.2.0.4/db1 [oracle@db-asm-1 ~]$ cat $ORACLE_HOME/rdbms/lib/config.c /* SS_DBA_GRP defines the UNIX group ID for sqldba adminstrative access. */ /* Refer to the Installation and User's Guide for further information. */ /* IMPORTANT: this file needs to be in sync with rdbms/src/server/osds/config.c, specifically regarding the number of elements in the ss_dba_grp array. */ #define SS_DBA_GRP "oinstall" #define SS_OPER_GRP "oinstall" #define SS_ASM_GRP "" char *ss_dba_grp[] = {SS_DBA_GRP, SS_OPER_GRP, SS_ASM_GRP}; [oracle@db-asm-1 ~]$ [oracle@db-asm-1 ~]$ echo $ORACLE_HOME /u01/app/oracle/11.2.0.4/grid [oracle@db-asm-1 ~]$ cat $ORACLE_HOME/rdbms/lib/config.c /* SS_DBA_GRP defines the UNIX group ID for sqldba adminstrative access. */ /* Refer to the Installation and User's Guide for further information. */ /* IMPORTANT: this file needs to be in sync with rdbms/src/server/osds/config.c, specifically regarding the number of elements in the ss_dba_grp array. */ #define SS_DBA_GRP "dba" #define SS_OPER_GRP "oper" #define SS_ASM_GRP "dba" char *ss_dba_grp[] = {SS_DBA_GRP, SS_OPER_GRP, SS_ASM_GRP}; [oracle@db-asm-1 ~]$ [oracle@db-asm-1 ~]$ cd /u01/app/12.2.0.1/grid/install/response/ [oracle@db-asm-1 response]$ ls -l total 76 -rw-r--r--. 1 oracle oinstall 34357 Jan 26 2017 grid_2017-01-26_04-10-28PM.rsp -rw-r-----. 1 oracle oinstall 35087 Jan 26 2017 gridsetup.rsp -rw-r-----. 1 oracle oinstall 1541 May 20 2016 sample.ccf [oracle@db-asm-1 response]$ cp -v gridsetup.rsp grid_upgrade.rsp `gridsetup.rsp' -> `grid_upgrade.rsp' [oracle@db-asm-1 response]$ vi grid_upgrade.rsp [oracle@db-asm-1 response]$ diff -iwyB --suppress-common-lines -W 150 gridsetup.rsp grid_upgrade.rsp; echo oracle.install.option= | oracle.install.option=UPGRADE ORACLE_BASE= | ORACLE_BASE=/u01/app/oracle oracle.install.asm.OSDBA= | oracle.install.asm.OSDBA=dba oracle.install.asm.OSOPER= | oracle.install.asm.OSOPER=oper oracle.install.asm.OSASM= | oracle.install.asm.OSASM=dba [oracle@db-asm-1 response]$
Incorrect group will results in failure.
[oracle@db-asm-1 ~]$ groups
oinstall asmdba dba backupdba oper dgdba kmdba
[oracle@db-asm-1 ~]$ id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54318(asmdba),54322(dba),54323(backupdba),54324(oper),54325(dgdba),54326(kmdba)
[oracle@db-asm-1 ~]$
oracle@db-asm-1::/u01/app/12.2.0.1/grid/install/response
> diff -iwyB --suppress-common-lines -W 150 gridsetup.rsp grid_upgrade.rsp; echo
oracle.install.option= | oracle.install.option=UPGRADE
ORACLE_BASE= | ORACLE_BASE=/u01/app/oracle
oracle.install.asm.OSDBA= | oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER= | oracle.install.asm.OSOPER=asmdba
oracle.install.asm.OSASM= | oracle.install.asm.OSASM=asmdba
oracle@db-asm-1::/u01/app/12.2.0.1/grid
> ./gridSetup.sh -silent -waitforcompletion -skipPrereqs -responseFile /u01/app/12.2.0.1/grid/install/response/grid_upgrade.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[WARNING] [INS-40436] Installer has detected an earlier version of Oracle Automatic Storage Management (ASM) Instance configured. Before proceeding with the upgrade you must shutdown all Oracle Databases that are using Oracle ASM for storage.
You may ignore this message and continue with the upgrade, if the database(s) are already in shutdown state.
[WARNING] [INS-41808] Possible invalid choice for OSASM Group.
CAUSE: The name of the group you selected for the OSASM group is commonly used to grant other system privileges (For example: asmdba, asmoper, dba, oper).
ACTION: Oracle recommends that you designate asmadmin as the OSASM group.
[WARNING] [INS-41813] OSDBA for ASM, OSOPER for ASM, and OSASM are the same OS group.
CAUSE: The group you selected for granting the OSDBA for ASM group for database access, and the OSOPER for ASM group for startup and shutdown of Oracle ASM, is the same group as the OSASM group, whose members have SYSASM privileges on Oracle ASM.
ACTION: Choose different groups as the OSASM, OSDBA for ASM, and OSOPER for ASM groups.
[FATAL] [INS-41881] Installer has detected that the group specified for OSDBA is not same as the group 'dba' retrieved from the current configuration of grid software.
The upgrade operation will not be successful if the same group name is not selected.
ACTION: Select the same group and proceed further.
[FATAL] [INS-41881] Installer has detected that the group specified for OSOPER is not same as the group 'oper' retrieved from the current configuration of grid software.
The upgrade operation will not be successful if the same group name is not selected.
ACTION: Select the same group and proceed further.
[FATAL] [INS-41881] Installer has detected that the group specified for OSASM is not same as the group 'dba' retrieved from the current configuration of grid software.
The upgrade operation will not be successful if the same group name is not selected.
ACTION: Select the same group and proceed further.
