Installing and Configuring Oracle Grid Infrastructure and Database 19c on Oracle Linux 9 using ASMLIB v3.1
In this article, I will detail the complete procedure for installing, patching and configuring Oracle Grid Infrastructure and Oracle Database 19c on Oracle Enterprise Linux 9, utilizing ASMLIB v3.1 for efficient ASM disk management.
First, we need to download the following components required for the installation:
[root@host01 ~]# sed -i '$a192.168.56.3 host01' /etc/hosts
[root@host01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.3 host01
dnf update -y
dnf install -y oracle-database-preinstall-19c tigervnc-server wget bind-utils xterm tmux git rsync iotop strace mlocate nfs-utils
reboot
Change the password for the oracle user, then create the main directory /u01, along with subdirectories for the Grid Infrastructure and Database installations. Additionally, create a directory to store the previously downloaded installation files and copy them to that location.
root@host01 ~]# mkdir -p /u01/install /u01/app/19/grid_1 /u01/app/oracle/product/19/dbhome_1
[root@host01 ~]# chown -R oracle:oinstall /u01/
[root@host01 ~]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
painter7@painter7:~/Downloads$ scp LINUX.X64_193000_db_home.zip LINUX.X64_193000_grid_home.zip p37957391_190000_Linux-x86-64.zip p6880880_190000_Linux-x86-64.zip AHF-LINUX_v25.9.0.zip oracle@192.168.56.3:/u01/install
oracle@192.168.56.3's password:
LINUX.X64_193000_db_home.zip 100% 2918MB 460.8MB/s 00:06
LINUX.X64_193000_grid_home.zip 100% 2755MB 420.9MB/s 00:06
p37957391_190000_Linux-x86-64.zip 100% 3752MB 405.9MB/s 00:09
p6880880_190000_Linux-x86-64.zip 100% 69MB 372.8MB/s 00:00
AHF-LINUX_v25.9.0.zip 100% 284MB 406.2MB/s 00:00
ASM Disks Partition
[root@host01 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 199G 0 part
├─vg_system-lv_root 252:0 0 30G 0 lvm /
├─vg_system-lv_swap 252:1 0 7.5G 0 lvm [SWAP]
├─vg_system-lv_tmp 252:2 0 3G 0 lvm /tmp
├─vg_system-lv_u01 252:3 0 90G 0 lvm /u01
└─vg_system-lv_home 252:4 0 10G 0 lvm /home
sdb 8:16 0 50G 0 disk <<<<< DATA
sdc 8:32 0 50G 0 disk <<<<< RECO
sr0 11:0 1 1024M 0 rom
[root@host01 ~]# parted /dev/sdb
GNU Parted 3.5
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
(parted) print
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
(parted) mkpart primary 0% 100%
(parted) print
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 53.7GB 53.7GB primary
(parted) quit
Information: You may need to update /etc/fstab.
[root@host01 ~]# parted /dev/sdc
GNU Parted 3.5
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
(parted) print
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdc: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
(parted) mkpart primary 0% 100%
(parted) quit
Information: You may need to update /etc/fstab.
[root@host01 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 199G 0 part
├─vg_system-lv_root 252:0 0 30G 0 lvm /
├─vg_system-lv_swap 252:1 0 7.5G 0 lvm [SWAP]
├─vg_system-lv_tmp 252:2 0 3G 0 lvm /tmp
├─vg_system-lv_u01 252:3 0 90G 0 lvm /u01
└─vg_system-lv_home 252:4 0 10G 0 lvm /home
sdb 8:16 0 50G 0 disk
└─sdb1 8:17 0 50G 0 part
sdc 8:32 0 50G 0 disk
└─sdc1 8:33 0 50G 0 part
sr0 11:0 1 1024M 0 rom
ASMLib v3.1 Installation and Configuration
If you have an active Unbreakable Linux Network (ULN) subscription, you can install the required ASMLib components directly using:
Alternatively, you can manually download and install the packages using the following versions:
-
oracleasmlib-3.1.1-1.el9.x86_64.rpm
-
oracleasm-support-3.1.1-3.el9.x86_64.rpm
The oracleasm-support package is available from the Unbreakable Linux Network (ULN) or from yum.oracle.com if you do not have an active subscription.
The oracleasmlib package can be downloaded directly from the Oracle ASMLib for Linux 9 download page.
Once downloaded, install the packages using the following commands:
[root@host01 install]# rpm -ivh oracleasm-support-3.1.1-3.el9.x86_64.rpm; rpm -ivh oracleasmlib-3.1.1-1.el9.x86_64.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
package oracleasm-support-3.1.1-3.el9.x86_64 is already installed
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:oracleasmlib-3.1.1-1.el9 ################################# [100%]
[root@host01 ~]# systemctl start oracleasm
[root@host01 ~]# systemctl enable oracleasm
[root@host01 ~]# oracleasm init
Mounting oracleasm driver filesystem: Not applicable with UEK8
Reloading disk partitions: done
Cleaning any stale ASM disks...
Setting up iofilter map for ASM disks: done
Scanning system for ASM disks...
Disk scan successful
[root@host01 ~]# oracleasm configure -i
Configuring the Oracle ASM system service.
This will configure the on-boot properties of the Oracle ASM system
service. The following questions will determine whether the service
is started on boot and what permissions it will have. The current
values will be shown in brackets ('[]'). Hitting without
typing an answer will keep that current value. Ctrl-C will abort.
Default user to own the ASM disk devices []: oracle
Default group to own the ASM disk devices []: oinstall
Start Oracle ASM system service on boot (y/n) [y]: <<< ENTER
Scan for Oracle ASM disks when starting the oracleasm service (y/n) [y]: <<< ENTER
Maximum number of ASM disks that can be used on system [2048]: <<< ENTER
Enable iofilter if kernel supports it (y/n) [y]: <<< ENTER
Writing Oracle ASM system service configuration: done
Configuration changes only come into effect after the Oracle ASM
system service is restarted. Please run 'systemctl restart oracleasm'
after making changes.
WARNING: All of your Oracle and ASM instances must be stopped prior
to restarting the oracleasm service.
[root@host01 ~]# oracleasm status
Checking if the oracleasm kernel module is loaded: no (not required with UEK8)
Checking if /dev/oracleasm is mounted: no (not required with UEK8)
Checking which I/O Interface is in use: io_uring (KABI_V3)
Checking if ASMLIB can be loaded: yes
Checking if io_uring is enabled: yes
Checking if io_uring is accessible to the configured DB user: yes
Checking if io_uring supports integrity passthrough: yes
Checking if ASM disks have the correct ownership and permissions: yes
Checking if ASM I/O filter is set up: yes
ASM Disk Labeling
In this step, we will label the previously partitioned disks to prepare them for use with ASM.
[root@host01 ~]# oracleasm createdisk DATA01 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@host01 ~]# oracleasm createdisk RECO01 /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@host01 ~]# oracleasm listdisks
DATA01
RECO01
Grid Infrastructure Installation and Configuration
Now that all prerequisites are in place, we can proceed with the installation, patching, and configuration of the Grid Infrastructure (GI).
Unzip the GI Software:
[root@host01 ~]# su - oracle
Last login: Sat Oct 18 11:13:30 CEST 2025 on pts/0
[oracle@host01 ~]$ cd /u01/install/
[oracle@host01 install]$ unzip LINUX.X64_193000_grid_home.zip -d /u01/app/19/grid_1/
...
/u01/app/19/grid_1/javavm/admin/lfclasses.bin -> ../../javavm/jdk/jdk8/admin/lfclasses.bin
/u01/app/19/grid_1/javavm/lib/security/cacerts -> ../../../javavm/jdk/jdk8/lib/security/cacerts
/u01/app/19/grid_1/javavm/lib/sunjce_provider.jar -> ../../javavm/jdk/jdk8/lib/sunjce_provider.jar
/u01/app/19/grid_1/javavm/lib/security/README.txt -> ../../../javavm/jdk/jdk8/lib/security/README.txt
/u01/app/19/grid_1/javavm/lib/security/java.security -> ../../../javavm/jdk/jdk8/lib/security/java.security
/u01/app/19/grid_1/jdk/jre/lib/amd64/server/libjsig.so -> ../libjsig.so
Patching the OPatch:
[oracle@host01 install]$ /u01/app/19/grid_1/OPatch/opatch version
OPatch Version: 12.2.0.1.17
OPatch succeeded.
[oracle@host01 install]$ mv /u01/app/19/grid_1/OPatch/ /u01/app/19/grid_1/OPatch_12.2.0.1.17
[oracle@host01 install]$ unzip p6880880_190000_Linux-x86-64.zip -d /u01/app/19/grid_1/
[oracle@host01 install]$ /u01/app/19/grid_1/OPatch/opatch version
OPatch Version: 12.2.0.1.47
OPatch succeeded.
Install and Patch GI Software
It is important to note that the installation can be performed using either the GUI installer or the silent mode. In this guide, we will proceed with the GUI method. You can use tools such as MobaXTerm, which provides an integrated graphical interface, or alternatively, set up a VNC server and connect through a VNC client like TigerVNC.
Before starting the installation, we will first patch the Grid Infrastructure (GI) software using the -applyRU option. This feature is available on Linux systems but not supported on Windows. The patching process takes approximately 10 minutes to complete. Once finished, the GUI installer will automatically launch.
[oracle@host01 install]$ /u01/app/19/grid_1/gridSetup.sh -applyRU /u01/install/37957391/
Preparing the home to patch...
Applying the patch /u01/install/37957391/...
Successfully applied the patch.
The log can be found at: /tmp/GridSetupActions2025-10-18_01-49-31PM/installerPatchActions_2025-10-18_01-49-31PM.log
Launching Oracle Grid Infrastructure Setup Wizard...
[root@host01 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@host01 ~]# /u01/app/19/grid_1/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/19/grid_1
Enter the full pathname of the local bin directory: [/usr/local/bin]: <<<< ENTER
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
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.
To configure Grid Infrastructure for a Cluster or Grid Infrastructure for a Stand-Alone Server execute the following command as oracle user:
/u01/app/19/grid_1/gridSetup.sh
This command launches the Grid Infrastructure Setup Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.
Configure GI
[oracle@host01 install]$ /u01/app/19/grid_1/gridSetup.sh
At this stage, it is crucial to modify the disk discovery path from /dev/sd* to ORCL:*. Failing to do so will prevent the installer from detecting the ASM disks, resulting in the disk group creation and overall installation process failing.[root@host01 ~]# /tmp/GridSetupActions2025-10-18_02-22-32PM/CVU_19_oracle_2025-10-18_14-23-19_21503/runfixup.sh
All Fix-up operations were completed successfully.
[root@host01 ~]# /u01/app/19/grid_1/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/19/grid_1
Enter the full pathname of the local bin directory: [/usr/local/bin]: <<<< ENTER
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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: /u01/app/19/grid_1/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/host01/crsconfig/roothas_2025-10-18_02-48-44PM.log
Redirecting to /bin/systemctl restart rsyslog.service
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node host01 successfully pinned.
2025/10/18 14:49:12 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
host01 2025/10/18 14:49:41 /u01/app/oracle/crsdata/host01/olr/backup_20251018_144941.olr 880628325
2025/10/18 14:49:42 CLSRSC-327: Successfully configured Oracle Restart for a standalone server
We still need to create the RECO disk group. To accomplish this, we will use the ASM Configuration Assistant (asmca) graphical tool.
[oracle@host01 ~]$ /u01/app/19/grid_1/bin/asmcaNow, we need to perform a final verification to ensure that the ASM instance is running correctly, the patch level and that all disk groups are properly mounted and available.
[oracle@host01 ~]$ ps -ef | grep smon
oracle 56141 1 0 14:50 ? 00:00:00 asm_smon_+ASM
oracle 65462 3366 0 15:13 pts/2 00:00:00 grep --color=auto smon
[oracle@host01 ~]$ . oraenv <<< +ASM
ORACLE_SID = [+ASM1] ? The Oracle base remains unchanged with value /u01/app/oracle
[oracle@host01 ~]$ asmcmd lsdg
State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 512 4096 4194304 51196 51092 0 51092 0 N DATA/
MOUNTED EXTERN N 512 512 4096 4194304 51196 51100 0 51100 0 N RECO/
[oracle@host01 37957391]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE host01 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE host01 STABLE
ora.RECO.dg
ONLINE ONLINE host01 STABLE
ora.asm
ONLINE ONLINE host01 Started,STABLE
ora.ons
OFFLINE OFFLINE host01 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE host01 STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE host01 STABLE
--------------------------------------------------------------------------------
[oracle@host01 ~]$ /u01/app/19/grid_1/OPatch/opatch lspatches
38124772;TOMCAT RELEASE UPDATE 19.0.0.0.0 (38124772)
37962946;OCW RELEASE UPDATE 19.28.0.0.0 (37962946)
37962938;ACFS RELEASE UPDATE 19.28.0.0.0 (37962938)
37960098;Database Release Update : 19.28.0.0.250715 (37960098)
36758186;DBWLM RELEASE UPDATE 19.0.0.0.0 (36758186)
Database Installation and Configuration
Unzip DB Software
[oracle@host01 install]$ unzip LINUX.X64_193000_db_home.zip -d /u01/app/oracle/product/19/dbhome_1/Patching OPatch
[oracle@host01 install]$ /u01/app/oracle/product/19/dbhome_1/OPatch/opatch version
OPatch Version: 12.2.0.1.17
OPatch succeeded.
[oracle@host01 install]$ mv /u01/app/oracle/product/19/dbhome_1/OPatch/ /u01/app/oracle/product/19/dbhome_1/OPatch_12.2.0.1.17
[oracle@host01 install]$ unzip p6880880_190000_Linux-x86-64.zip -d /u01/app/oracle/product/19/dbhome_1/
[oracle@host01 install]$ /u01/app/oracle/product/19/dbhome_1/OPatch/opatch version
OPatch Version: 12.2.0.1.47
OPatch succeeded.Install and Patch DB Software
The patching process takes approximately 10 minutes to complete. Once it finishes, the installation GUI will automatically appear.
[oracle@host01 install]$ [oracle@host01 install]$ /u01/app/oracle/product/19/dbhome_1/runInstaller -applyRU /u01/install/37957391/
Preparing the home to patch...
Applying the patch /u01/install/37957391/...
Successfully applied the patch.
The log can be found at: /u01/app/oraInventory/logs/InstallActions2025-10-18_03-47-31PM/installerPatchActions_2025-10-18_03-47-31PM.log
Launching Oracle Database Setup Wizard...
[root@host01 u01]# /u01/app/oracle/product/19/dbhome_1/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/19/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]: <<<< ENTER
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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.
[oracle@host01 install]$ /u01/app/oracle/product/19/dbhome_1/bin/dbca[oracle@host01 install]$ ps -ef | grep smon
oracle 56141 1 0 14:50 ? 00:00:00 asm_smon_+ASM
oracle 108150 1 0 16:25 ? 00:00:00 ora_smon_PROD
oracle 112678 3366 0 16:36 pts/2 00:00:00 grep --color=auto smon
[oracle@host01 install]$ /u01/app/oracle/product/19/dbhome_1/OPatch/opatch lspatches
37962946;OCW RELEASE UPDATE 19.28.0.0.0 (37962946)
37960098;Database Release Update : 19.28.0.0.250715 (37960098)
OPatch succeeded.
[oracle@host01 install]$ . oraenv <<< +ASM
ORACLE_SID = [PROD] ? The Oracle base remains unchanged with value /u01/app/oracle
[oracle@host01 install]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE host01 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE host01 STABLE
ora.RECO.dg
ONLINE ONLINE host01 STABLE
ora.asm
ONLINE ONLINE host01 Started,STABLE
ora.ons
OFFLINE OFFLINE host01 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE host01 STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE host01 STABLE
ora.prod.db
1 ONLINE ONLINE host01 Open,HOME=/u01/app/o
racle/product/19/dbh
ome_1,STABLE
--------------------------------------------------------------------------------
With these steps completed, the system is fully configured with a functional Oracle Grid Infrastructure and Oracle Database environment on Oracle Linux 9. However, this setup serves as a basic reference configuration. For production environments, adjustments should be made according to specific application and performance requirements. This includes consulting with developers or administrators to determine appropriate memory allocation, storage capacity, NLS character settings, and other environment parameters.



























































Comments
Post a Comment