I have been trying to install Oracle 19c GI on a Oracle Linux 8 via VMware on a M4 chip (aarch64 architecture) using THIS guide, but I keep getting these errors:

INFO:  [17-Feb-2025 15:32:32] Skipping line: [FATAL] [DBT-30002] Disk group DATA creation failed.
INFO:  [17-Feb-2025 15:32:32] ORA-15018: diskgroup cannot be created
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-15018: diskgroup cannot be created
INFO:  [17-Feb-2025 15:32:32] ORA-15031: disk specification '/dev/sda' matches no disks
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-15031: disk specification '/dev/sda' matches no disks
INFO:  [17-Feb-2025 15:32:32] ORA-15025: could not open disk "/dev/sda"
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-15025: could not open disk "/dev/sda"
INFO:  [17-Feb-2025 15:32:32] ORA-27041: unable to open file
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-27041: unable to open file

So decided to create a new guide for Apple Silicon.

As a starting point, we are on a Oracle Linux 8.10 (AARCH64) server, with 16G of swap.

[asanzto@olinux8 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.10 (Ootpa)
[asanzto@olinux8 ~]$

[asanzto@olinux8 ~]$ uname -a
Linux olinux8 5.15.0-206.153.7.1.el8uek.aarch64 #2 SMP Wed May 22 23:22:35 PDT 2024 aarch64 aarch64 aarch64 GNU/Linux
[asanzto@olinux8 ~]$

Lets install few bits and reboot:

[root@olinux8 ~]# yum install policycoreutils-python-utils
[root@olinux8 ~]# dnf install perl
[root@olinux8 ~]# yum install chkconfig
[root@olinux8 ~]# yum update -y
[root@olinux8 ~]# yum install -y oracle-database-preinstall-19c

[root@olinux8 ~]# reboot


[root@olinux8 ~]# uptime
 14:40:19 up 10 min,  1 user,  load average: 0.00, 0.00, 0.00
[root@olinux8 ~]# uname -a
Linux olinux8 5.15.0-305.176.4.el8uek.aarch64 #2 SMP Tue Jan 28 22:46:53 PST 2025 aarch64 aarch64 aarch64 GNU/Linux
[root@olinux8 ~]#

Stop / Disable services, create link and remove file:

[root@olinux8 ~]# systemctl stop firewalld.service
[root@olinux8 ~]# systemctl disable firewalld.service

[root@olinux8 ~]# systemctl disable avahi-daemon.service
[root@olinux8 ~]# systemctl stop avahi-daemon.service

[root@olinux8 ~]# systemctl stop chronyd.service
[root@olinux8 ~]# systemctl disable chronyd.service
[root@olinux8 ~]# mv /etc/chrony.conf /etc/chrony.conf.old

[root@olinux8 ~]# ln -s /usr/bin/sudo /usr/local/bin/sudo
[root@olinux8 ~]# mv /etc/resolv.conf /etc/resolv.conf.bck

Set UMASK for both oracle and root users:

[root@olinux8 ~]# echo "umask 0022" >> .bash_profile

[oracle@olinux8 ~]$ echo "umask 0022" >> .bash_profile

Fix / add oracle groups:

[root@olinux8 ~]# groups oracle
oracle : oinstall dba oper backupdba dgdba kmdba racdba
[root@olinux8 ~]# groupadd -g 54327 asmdba
[root@olinux8 ~]# groupadd -g 54328 asmoper
[root@olinux8 ~]# groupadd -g 54329 asmadmin
[root@olinux8 ~]# usermod -g oinstall oracle
usermod: no changes
[root@olinux8 ~]# usermod -G wheel,dba,oper,backupdba,dgdba,kmdba,racdba,asmdba,asmoper,asmadmin oracle
[root@olinux8 ~]#
[root@olinux8 ~]# groups oracle
oracle : oinstall wheel dba oper backupdba dgdba kmdba racdba asmdba asmoper asmadmin
[root@olinux8 ~]#

[root@olinux8 ~]# grep -i oinstall /etc/group
oinstall:x:54321:    <----- fix this
[root@olinux8 ~]#

fixed:
[root@olinux8 ~]# grep -i oinstall /etc/group
oinstall:x:54321:oracle
[root@olinux8 ~]#

Create directories:

[root@olinux8 ~]# mkdir /u01
[root@olinux8 ~]# chown oracle:oinstall /u01

[oracle@olinux8 ~]$ mkdir -p /u01/app/oracle/product/19c/dbhome_1
[oracle@olinux8 ~]$ mkdir -p /u01/app/oracle/product/19c/grid
[oracle@olinux8 ~]$ mkdir -p /u01/app/oracle/oraInventory
[oracle@olinux8 ~]$ mkdir -p /u01/installs    <<--- software here
[oracle@olinux8 ~]$

[oracle@olinux8 ~]$ mkdir /var/tmp/.oracle

Create .ssh structure by ssh:

[oracle@olinux8 grid]$ ssh olinux8
The authenticity of host 'olinux8 (fe80::20c:29ff:feb7:e511%ens160)' can't be established.
ECDSA key fingerprint is SHA256:cbEa52nxpdWz9w2XYP7SBAVh4EsqV3VjBMNwbeyrHJI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'olinux8,fe80::20c:29ff:feb7:e511%ens160' (ECDSA) to the list of known hosts.
oracle@olinux8's password:

[oracle@olinux8 grid]$

** this automatically creates files needed

Copy / unzip software to GRID home:

[oracle@olinux8 ~]$ cd /u01/app/oracle/product/19c/grid
[oracle@olinux8 grid]$ cp -p /u01/installs/LINUX.ARM64_1919000_grid_home.zip .
[oracle@olinux8 grid]$ cp -p /u01/installs/RU/19.25_OPATCH_p6880880_190000_Linux-ARM-64.zip .
[oracle@olinux8 grid]$ unzip -q LINUX.ARM64_1919000_grid_home.zip
[oracle@olinux8 grid]$ rm -rf OPatch/
[oracle@olinux8 grid]$ unzip -q 19.25_OPATCH_p6880880_190000_Linux-ARM-64.zip
[oracle@olinux8 grid]$ rm -f *.zip
[oracle@olinux8 grid]$ /u01/app/oracle/product/19c/grid/OPatch/opatch version
OPatch Version: 12.2.0.1.44

OPatch succeeded.
[oracle@olinux8 grid]$

Apply 19.23 RU to GRID Home (It should not be needed as software is by default 19.19 version):

[oracle@olinux8 ~]$ cd /u01/app/oracle/product/19c/grid/
[oracle@olinux8 grid]$ export CV_ASSUME_DISTID=OEL7.8
[oracle@olinux8 grid]$ ./gridSetup.sh -silent -applyRU /u01/installs/RU/36209493/36233126
Preparing the home to patch...
Applying the patch /u01/installs/RU/36209493/36233126...
Successfully applied the patch.
The log can be found at: /tmp/GridSetupActions2025-02-17_03-01-26PM/installerPatchActions_2025-02-17_03-01-26PM.log
Launching Oracle Grid Infrastructure Setup Wizard...

[FATAL] [INS-40426] Grid installation option has not been specified.
   ACTION: Specify the valid installation option.
[oracle@olinux8 grid]$

PreInstall checks:

[oracle@olinux8 ~]$ cd /u01/app/oracle/product/19c/grid
[oracle@olinux8 grid]$  export CV_ASSUME_DISTID=OEL7.8
[oracle@olinux8 grid]$  ./runcluvfy.sh stage -pre crsinst -n olinux8 -verbose -method sudo -user oracle
Enter "SUDO" password:
...
Pre-check for cluster services setup was successful.
ORAchk checks ...INFORMATION
PRVH-1507 : ORAchk/EXAchk checks are skipped.


CVU operation performed:      stage -pre crsinst
Date:                         17-Feb-2025 15:16:48
CVU version:                  19.23.0.0.0 (040124aarch64)
CVU home:                     /u01/app/oracle/product/19c/grid
User:                         oracle
Operating system:             Linux5.15.0-305.176.4.el8uek.aarch64
[oracle@olinux8 grid]$

Label disks to use:

[root@olinux8 ~]#  lsblk --list
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda         8:0    0   50G  0 disk    <------
sdb         8:16   0   30G  0 disk    <------
sr0        11:0    1 1024M  0 rom
nvme0n1   259:0    0  150G  0 disk
nvme0n1p1 259:1    0  512M  0 part /boot/efi
nvme0n1p2 259:2    0    1G  0 part /boot
nvme0n1p3 259:3    0   16G  0 part [SWAP]
nvme0n1p4 259:4    0  130G  0 part /
[root@olinux8 ~]#

[root@olinux8 bin]# ./afddriverstate supported
AFD-9200: Supported
[root@olinux8 bin]# ./afdroot version_check
AFD-616: Valid AFD distribution media detected at: '/u01/app/oracle/product/19c/grid/usm/install/Oracle/EL8UEK/aarch64/5.15.0-6.80.3.1/5.15.0-6.80.3.1-aarch64/bin'
[root@olinux8 bin]#

[root@olinux8 ~]# cd /u01/app/oracle/product/19c/grid/bin
[root@olinux8 bin]# export ORACLE_BASE=/tmp
[root@olinux8 bin]# export ORACLE_HOME=/u01/app/oracle/product/19c/grid
[root@olinux8 bin]# ./asmcmd afd_label DATA /dev/sda --init
Creating diag directory /tmp/diag
[root@olinux8 bin]# ./asmcmd afd_label FRA /dev/sdb --init
[root@olinux8 bin]# ./asmcmd afd_lslbl
Could not open pfile '/etc/oracleafd.conf'--------------------------------------------------------------------------------
Label                     Duplicate  Path
================================================================================
DATA                                  /dev/sda
FRA                                   /dev/sdb
[root@olinux8 bin]#

Install GRID software:

Create response file:

[oracle@olinux8 ~]$ cat /u01/app/oracle/product/19c/grid/install/response/gridINSTALL.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v19.0.0
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
oracle.install.option=HA_CONFIG
ORACLE_BASE=/u01/app/oracle
oracle.install.asm.OSDBA=oinstall
oracle.install.asm.OSOPER=asmdba
oracle.install.asm.OSASM=asmdba
oracle.install.asm.SYSASMPassword=Oracle123
oracle.install.asm.diskGroup.name=DATA
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=4
oracle.install.asm.diskGroup.disks=/dev/sda
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/sd*
oracle.install.asm.monitorPassword=Oracle123
oracle.install.asm.configureAFD=true
oracle.install.crs.rootconfig.executeRootScript=false
[oracle@olinux8 ~]$



[oracle@olinux8 ~]$ cd /u01/app/oracle/product/19c/grid/
[oracle@olinux8 grid]$  export CV_ASSUME_DISTID=OEL7.8
[oracle@olinux8 grid]$  ./gridSetup.sh -silent -responseFile /u01/app/oracle/product/19c/grid/install/response/gridINSTALL.rsp -ignorePrereqFailure
Launching Oracle Grid Infrastructure Setup Wizard...
...
...
The response file for this session can be found at:
 /u01/app/oracle/product/19c/grid/install/response/grid_2025-02-17_03-26-28PM.rsp

You can find the log of this install session at:
 /tmp/GridSetupActions2025-02-17_03-26-28PM/gridSetupActions2025-02-17_03-26-28PM.log

As a root user, execute the following script(s):
	1. /u01/app/oracle/oraInventory/orainstRoot.sh
	2. /u01/app/oracle/product/19c/grid/root.sh

Execute /u01/app/oracle/product/19c/grid/root.sh on the following nodes:
[olinux8]

ROOT SCRIPTS:

[root@olinux8 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@olinux8 ~]#

[root@olinux8 ~]# /u01/app/oracle/product/19c/grid/root.sh
Check /u01/app/oracle/product/19c/grid/install/root_olinux8_2025-02-17_15-28-02-164868860.log for the output of root script
[root@olinux8 ~]#

Execute executeConfigTools:
Now, run the script and it will fail (on Intel x86_64 does not fail)

[oracle@olinux8 grid]$ /u01/app/oracle/product/19c/grid/gridSetup.sh -executeConfigTools -responseFile /u01/app/oracle/product/19c/grid/install/response/gridINSTALL.rsp -silent
Launching Oracle Grid Infrastructure Setup Wizard...

You can find the logs of this session at:
/u01/app/oracle/oraInventory/logs/GridSetupActions2025-02-17_03-31-51PM

You can find the log of this install session at:
 /u01/app/oracle/oraInventory/logs/UpdateNodeList2025-02-17_03-31-51PM.log
[WARNING] [INS-43080] Some of the configuration assistants failed, were cancelled or skipped.
   ACTION: Refer to the logs or contact Oracle Support Services.
[oracle@olinux8 grid]$

Lets check the error:

[root@olinux8 ~]# ls -ltr /u01/app/oracle/oraInventory/logs/GridSetupActions2025-02-17_03-31-51PM/gridSetupActions2025-02-17_03-31-51PM.log
-rw-r-----. 1 oracle oinstall 76411 Feb 17 15:32 /u01/app/oracle/oraInventory/logs/GridSetupActions2025-02-17_03-31-51PM/gridSetupActions2025-02-17_03-31-51PM.log
[root@olinux8 ~]#

INFO:  [17-Feb-2025 15:32:32] [FATAL] [DBT-30002] Disk group DATA creation failed.
INFO:  [17-Feb-2025 15:32:32] Skipping line: [FATAL] [DBT-30002] Disk group DATA creation failed.
INFO:  [17-Feb-2025 15:32:32] ORA-15018: diskgroup cannot be created
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-15018: diskgroup cannot be created
INFO:  [17-Feb-2025 15:32:32] ORA-15031: disk specification '/dev/sda' matches no disks
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-15031: disk specification '/dev/sda' matches no disks
INFO:  [17-Feb-2025 15:32:32] ORA-15025: could not open disk "/dev/sda"
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-15025: could not open disk "/dev/sda"
INFO:  [17-Feb-2025 15:32:32] ORA-27041: unable to open file
INFO:  [17-Feb-2025 15:32:32] Skipping line: ORA-27041: unable to open file

Lets fix de-configuring software first:

Deconfig first:

[root@olinux8 ~]# cd /u01/app/oracle/product/19c/grid/crs/install
[root@olinux8 install]# ./roothas.sh -deconfig -force
Smartmatch is deprecated at /u01/app/oracle/product/19c/grid/crs/install/crsupgrade.pm line 6512.
Using configuration parameter file: /u01/app/oracle/product/19c/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/app/oracle/crsdata/olinux8/crsconfig/hadeconfig.log
2025/02/17 15:38:18 CLSRSC-332: CRS resources for listeners are still configured
PRCR-1001 : Resource ora.asm does not exist
2025/02/17 15:38:19 CLSRSC-180: An error occurred while executing the command '/u01/app/oracle/product/19c/grid/bin/srvctl stop asm -force'
Redirecting to /bin/systemctl restart rsyslog.service
2025/02/17 15:39:02 CLSRSC-337: Successfully deconfigured Oracle Restart stack
[root@olinux8 install]#

Configure afd:
[root@olinux8 install]# cd /u01/app/oracle/product/19c/grid/bin
[root@olinux8 bin]# export ORACLE_BASE=/tmp
[root@olinux8 bin]# export ORACLE_HOME=/u01/app/oracle/product/19c/grid
[root@olinux8 bin]# ./asmcmd afd_configure
/var/tmp/.oracle is missing or not writable.
ASMCMD-9463: operation failed due to lack of write permissions
AFD-627: AFD distribution files found.
AFD-634: Removing previous AFD installation.
AFD-635: Previous AFD components successfully removed.
AFD-9294: updating file /etc/sysconfig/oracledrivers.conf
AFD-636: Installing requested AFD software.
AFD-637: Loading installed AFD drivers.
AFD-9321: Creating udev for AFD.
AFD-9323: Creating module dependencies - this may take some time.
AFD-9154: Loading 'oracleafd.ko' driver.
AFD-649: Verifying AFD devices.
AFD-9156: Detecting control device '/dev/oracleafd/admin'.
AFD-638: AFD installation correctness verified.
Modifying resource dependencies - this may take some time.
ASMCMD-9524: AFD configuration failed 'ERROR: OHASD start failed'
[root@olinux8 bin]#

** errors are expected

If this file does not exists, create with the following:

[root@olinux8 bin]# cat /etc/afd.conf*
afd_diskstring='/dev/sd*'
[root@olinux8 bin]#

Run ROOT script again:

[root@olinux8 ~]#  /u01/app/oracle/product/19c/grid/root.sh
Check /u01/app/oracle/product/19c/grid/install/root_olinux8_2025-02-17_15-47-08-883738489.log for the output of root script
[root@olinux8 ~]#

Execute executeConfigTools (again):

[oracle@olinux8 ~]$  export CV_ASSUME_DISTID=OEL7.8
[oracle@olinux8 ~]$ /u01/app/oracle/product/19c/grid/gridSetup.sh -executeConfigTools -responseFile /u01/app/oracle/product/19c/grid/install/response/gridINSTALL.rsp -silent
Launching Oracle Grid Infrastructure Setup Wizard...

You can find the logs of this session at:
/u01/app/oracle/oraInventory/logs/GridSetupActions2025-02-17_03-55-07PM

Successfully Configured Software.
[oracle@olinux8 ~]$

It seems now it ran ok, so let’s do some checks:

[oracle@olinux8 ~]$ . oraenv
ORACLE_SID = [oracle] ? +ASM
The Oracle base has been set to /u01/app/oracle

[oracle@olinux8 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       olinux8                  STABLE
ora.asm
               ONLINE  ONLINE       olinux8                  Started,STABLE
ora.ons
               OFFLINE OFFLINE      olinux8                  STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  ONLINE       olinux8                  STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       olinux8                  STABLE
--------------------------------------------------------------------------------
[oracle@olinux8 ~]$



Create FRA diskgroup:

[oracle@olinux8 ~]$  asmca -silent -createDiskGroup -diskGroupname FRA -disk 'AFD:FRA*' -redundancy EXTERNAL
[DBT-30001] Disk groups created successfully. Check /u01/app/oracle/cfgtoollogs/asmca/asmca-250217PM035715.log for details.
[oracle@olinux8 ~]$


col name format a20
col path format a20
col library format a50
set linesize 190
select group_number, name, path, library from v$asm_disk order by 1;

------------ -------------------- -------------------- --------------------------------------------------
	   1 DATA		  AFD:DATA	       AFD Library - Generic , version 3 (KABI_V3)
	   2 FRA		  AFD:FRA	       AFD Library - Generic , version 3 (KABI_V3)


SQL>  select name,total_mb from v$asm_diskgroup;

NAME		       TOTAL_MB
-------------------- ----------
DATA			  51200
FRA			  30720


[oracle@olinux8 ~]$ $ORACLE_HOME/OPatch/opatch lspatches
36460248;TOMCAT RELEASE UPDATE 19.0.0.0.0 (36460248)
36383196;DBWLM RELEASE UPDATE 19.0.0.0.0 (36383196)
36240578;OCW RELEASE UPDATE 19.23.0.0.0 (36240578)
36233343;ACFS RELEASE UPDATE 19.23.0.0.0 (36233343)
36233263;Database Release Update : 19.23.0.0.240416 (36233263)

OPatch succeeded.
[oracle@olinux8 ~]$

That’s it!

Last modified: 19 February 2025

Author

Comments

Write a Reply or Comment

Your email address will not be published.