Part 2: Installing Grid Infrastructure and creating an Oracle 26ai RAC database

Share on LinkedIn ↗

Part 2 · By Venkata Rachuri · October 22, 2026

In Part 1, we prepared two Oracle Linux nodes, their networks, shared ASMLib disks, users, SSH connectivity, and installation limits. Here we install Grid Infrastructure, create the shared ASM disk groups, install the RAC database software, and create and verify a two-instance container database with one PDB.

Follow this guide from node1 unless a step explicitly says otherwise. The installer copies Grid software to node2; we do not start a second installer there. The screenshots show the wizard selections and the successful verification checkpoints from our lab.

What we are building

Grid Infrastructure runs locally on each node and manages the shared OCR, DATA, and RECO disks
Grid Infrastructure runs locally on each node and manages the shared OCR, DATA, and RECO disks

Grid Infrastructure contains Oracle Clusterware, which coordinates the cluster and its resources, and Oracle ASM, which manages shared storage. Each node has its own local Grid home at /u01/app/26ai/grid. Both nodes access the same shared disks. The diagram shows the Grid and ASM foundation. Later in this walkthrough, we add a database home owned by oracle on each node and create the RAC instances rac26ai1 and rac26ai2, using DATA for database files and RECO for the recovery area.

Component Our lab setting
Nodes rac26ai-node1, rac26ai-node2
Operating system Oracle Linux 8.10, UEK; 4 vCPUs and 16 GiB RAM per node
Grid owner / inventory group grid / oinstall
Grid home on each node /u01/app/26ai/grid
Grid base /u01/app/grid
Central inventory /u01/app/oraInventory
Cluster / SCAN rac26ai-cluster / rac26ai-scan.lab.test
Public / private interfaces enp1s0 / enp7s0
Shared ASMLib disks ORCL:OCR01 (40 GB), ORCL:DATA01 (100 GB), ORCL:RECO01 (50 GB)

This is a learning lab on one virtualization host. We use External redundancy for the disk groups, so ASM does not mirror their contents. Sharing a disk between two VMs does not protect against failure of that disk or the host. A production design needs an appropriate storage and availability design.

1. Confirm the Part 1 handoff

Before opening the wizard, complete the final validation steps in Part 1. In particular, verify:

Use the grid graphical session on node1 verified at the end of Part 1. Confirm the account, host, display, and memlock values in the terminal you are about to use:

whoami
hostname
printf 'DISPLAY=%s\n' "$DISPLAY"
ulimit -Sl
ulimit -Hl

Expect grid, rac26ai-node1, a nonempty display such as :0, and memlock values meeting the Part 1 calculation. If you have started a different login session since preparation, repeat the complete graphical-session check, including file, process, and stack limits. That section also covers the conditional fix when a graphical terminal remains at 64 KB after logout.

Start the installer from this same terminal:

cd /u01/app/26ai/grid
./gridSetup.sh

The following screens reflect the Grid image used in this lab. A newer release update can change screen wording; match the settings and purposes rather than relying only on the wizard's step number.

2. Create a new cluster and configure SCAN

Select Configure Oracle Grid Infrastructure for a New Cluster, then choose Configure cluster to manage Oracle RAC databases. Leave Configure as Extended Cluster unchecked for this single-site lab.

Choose a new Grid Infrastructure cluster
Choose a new Grid Infrastructure cluster

Configure the cluster to manage Oracle RAC databases
Configure the cluster to manage Oracle RAC databases

On Grid Plug and Play Information, use:

Field Value
SCAN option Create Local SCAN
Cluster name rac26ai-cluster
SCAN name rac26ai-scan.lab.test
SCAN port 1521
Configure GNS Unchecked

Our DNS configuration from Part 1 supplies SCAN resolution. The SCAN name is distinct from either node's public hostname.

Cluster name and local SCAN settings
Cluster name and local SCAN settings

3. Add node2 and test SSH connectivity

Confirm node1, then click Add and enter node2's public hostname and VIP hostname. Our names are:

Node Public hostname VIP hostname
Node1 rac26ai-node1.lab.test rac26ai-node1-vip.lab.test
Node2 rac26ai-node2.lab.test rac26ai-node2-vip.lab.test

The wizard may display the short names after accepting them. Check that both nodes are included.

Add the second cluster node and its VIP hostname
Add the second cluster node and its VIP hostname

Expand SSH Connectivity. Our keys were already configured in Part 1, so we used username grid and clicked Test. We did not need to enter a password or run Setup again.

Both nodes selected with the grid SSH connectivity panel
Both nodes selected with the grid SSH connectivity panel

Successful SSH connectivity test
Successful SSH connectivity test

Proceed only after the test succeeds. If it fails, return to the SSH checks in Part 1 and fix the indicated name or direction before continuing.

4. Assign network interfaces and select ASM storage

On Network Interface Usage, select:

Interface in this lab Use for
enp1s0 Public
enp7s0 ASM & Private
Any unrelated interface Do Not Use

Match these roles to your own interface names if they differ. The public network carries client-facing resources; the private network connects the cluster nodes. Do not select an unrelated guest bridge as the interconnect.

On Storage Option, choose Use Oracle Flex ASM for storage. In this lab we left Configure a separate disk group to store backups of OCR unchecked. That is a lab simplification; plan OCR backup placement separately for a production system.

Use Oracle Flex ASM for cluster storage
Use Oracle Flex ASM for cluster storage

5. Create the OCR disk group

The first disk group holds the Oracle Cluster Registry and voting files. Select only the dedicated OCR disk:

Field Selection
Disk group name OCR
Redundancy External (None)
Allocation unit size 4 MB
Disk discovery path ORCL:*
Selected disk ORCL:OCR01, approximately 40 GB

Leave ORCL:DATA01 and ORCL:RECO01 unselected. We will use them in separate groups after installation. Check the disk label and size before proceeding; this step initializes the selected disk for ASM.

Create OCR using only the OCR01 disk with External redundancy
Create OCR using only the OCR01 disk with External redundancy

On ASM Password, enter your own strong password for the requested ASM accounts. We used the option to share a password between those accounts in this lab. Keep the password private; there is no sample password to copy from this article.

6. Set management options, groups, and installation paths

For this lab, use these choices on the next screens:

Screen Choice
Automatic Self Correction Leave automatic self correction unchecked
Failure Isolation Do not use Intelligent Platform Management Interface (IPMI)
Management Options Leave Enterprise Manager registration unchecked

Automatic self correction selection
Automatic self correction selection

Do not use IPMI in this lab
Do not use IPMI in this lab

Enterprise Manager registration left unchecked
Enterprise Manager registration left unchecked

On Operating System Groups, check all three assignments:

Privilege Group
Oracle ASM Administrator (OSASM) asmadmin
Oracle ASM DBA (OSDBA for ASM) asmdba
Oracle ASM Operator (OSOPER for ASM) asmoper

ASM operating system group assignments
ASM operating system group assignments

Use Oracle base /u01/app/grid and software location /u01/app/26ai/grid. The software location is the directory where we extracted the Grid image, not the future database home.

Grid base and software home
Grid base and software home

For a first installation, use inventory directory /u01/app/oraInventory and inventory group oinstall.

Central inventory location and group
Central inventory location and group

If INS-32047 says the inventory directory is not empty: inspect its contents before accepting. Our directory contained only installer logs, and neither an inventory pointer nor an inventory XML file was present. That evidence allowed us to continue this fresh installation; it is not a general instruction to reuse or delete an existing inventory.

As grid on node1, inspect:

ls -la /u01/app/oraInventory
if [ -f /etc/oraInst.loc ]; then
  cat /etc/oraInst.loc
fi
if [ -f /u01/app/oraInventory/ContentsXML/inventory.xml ]; then
  cat /u01/app/oraInventory/ContentsXML/inventory.xml
fi

Inventory warning encountered during this fresh installation
Inventory warning encountered during this fresh installation

If you find registered Oracle homes or cannot read the inventory, investigate before proceeding. Preserve an existing central inventory.

7. Choose manual root scripts and review prerequisites

Leave Automatically run configuration scripts unchecked. We will run the displayed scripts as root in separate terminals when prompted.

Manual root script configuration
Manual root script configuration

Run the prerequisite checks for All Nodes and inspect every failed or informational item. Use more details to read the actual reason.

In our run, the remaining two entries were RPM Package Manager database and cgroup OS compatibility, both marked Info. Their details reported PRVG-11250: the checks were not performed because root credentials had not been supplied. These were skipped checks, not confirmed passes.

Two remaining informational prerequisite checks
Two remaining informational prerequisite checks

PRVG-11250 explains that root privileges were unavailable for this check
PRVG-11250 explains that root privileges were unavailable for this check

For this lab we explicitly accepted those two unperformed checks using Ignore All after reviewing their details. If you require those checks to run, provide an appropriate privileged verification method and rerun them. Do not generalize our choice to other errors: connectivity, storage, memory, ownership, and name-resolution failures need investigation.

Review Summary carefully: both nodes, SCAN, interface roles, home paths, groups, and manual root configuration. Save a response file if you want a record of the chosen configuration; handle any sensitive values privately. Click Install.

Review the cluster installation summary
Review the cluster installation summary

Installer prepares the local node and links binaries
Installer prepares the local node and links binaries

Allow the installer to copy files and configure the remote node. The root-script prompt is the next point where you need to act.

8. Run root scripts on both nodes

Keep the installer open. Its prompt lists the exact paths and nodes requiring each script.

Configuration scripts that must run as root on both nodes
Configuration scripts that must run as root on both nodes

Open a root terminal on each node. Confirm hostname before running commands. First run the inventory script on both nodes:

hostname
/u01/app/oraInventory/orainstRoot.sh

Wait for it to complete successfully. Then, as root on node1, run:

/u01/app/26ai/grid/root.sh

Accept /usr/local/bin at the local bin directory prompt by pressing Enter. Wait for node1's script to finish successfully before starting the Grid root script on node2.

As root on node2, run:

/u01/app/26ai/grid/root.sh

Accept the same local bin directory default. The script configures Clusterware through multiple numbered steps; do not interrupt it because one step takes longer than another. Look for the final success message and the returned shell prompt:

CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Node2 root script completes successfully
Node2 root script completes successfully

If a script fails, read the log path printed by that script and resolve the reported error before returning to the installer. Our logs were under /u01/app/grid/crsdata/<node>/crsconfig/.

After both nodes have completed successfully, return to the installer and click OK. It continues with the configuration assistants and final cluster verification.

Installer continues configuration after successful root scripts
Installer continues configuration after successful root scripts

9. Verify the cluster and finish installation

The final Cluster Verification Utility (CVU) check validates the configured cluster. The end state should be a successful configuration, not merely a progress bar showing 100%.

After the configuration assistants complete successfully, the installer displays the Finish screen below. If your verification reports a failure, review its detailed output and resolve it before continuing.

The completed installation displays:

Grid Infrastructure configuration completed successfully
Grid Infrastructure configuration completed successfully

Click Close. As grid on node1, run post-install verification for both nodes and retain the report:

set -o pipefail
/u01/app/26ai/grid/bin/cluvfy stage -post crsinst \
  -n rac26ai-node1,rac26ai-node2 -verbose \
  2>&1 | tee ~/rac-postinstall-check.log

Read the full report and confirm the final result:

Post-check for cluster services setup was successful.

CVU can include health checks from ORAchk, part of Oracle Autonomous Health Framework (AHF). Review any recommendations in the report alongside the overall result.

In the same grid terminal, check cluster services and node membership:

/u01/app/26ai/grid/bin/crsctl check cluster -all
/u01/app/26ai/grid/bin/crsctl stat res -t
/u01/app/26ai/grid/bin/olsnodes -n -s

Expect both nodes to be active:

rac26ai-node1  1  Active
rac26ai-node2  2  Active

In the resource table, check the local listeners, ASM, OCR disk group, node VIPs, and SCAN listeners/VIPs. Their expected running resources should have matching ONLINE targets and states. Our screenshot also contains resources whose target and state are both OFFLINE; those rows alone do not mean Clusterware failed. Investigate a resource intended to be ONLINE that remains OFFLINE or reports an error.

Cluster resources and both nodes Active after installation
Cluster resources and both nodes Active after installation

10. Open ASMCA and create DATA

Return to the grid graphical session on node1 and start ASM Configuration Assistant:

/u01/app/26ai/grid/bin/asmca

ASM Configuration Assistant welcome screen
ASM Configuration Assistant welcome screen

Select Disk Groups, then Create. OCR already exists because Grid Setup created it. The remaining eligible disks in our lab are DATA01 and RECO01.

Remaining eligible ASMLib disks before creating DATA
Remaining eligible ASMLib disks before creating DATA

Create DATA with these settings:

Field Value
Disk group name DATA
Redundancy External (None)
Allocation unit size 4 MB
Discovery path ORCL:*
Select only ORCL:DATA01, approximately 100 GB

Leave RECO01 unchecked. Leave advanced options at their defaults for this lab and click OK. Wait for creation to complete, then refresh Disk Groups.

DATA settings with only DATA01 selected
DATA settings with only DATA01 selected

The DATA group should show approximately 100 GB and MOUNTED (2 of 2). You create the group once; do not repeat its creation on node2.

DATA and OCR mounted on both ASM instances
DATA and OCR mounted on both ASM instances

11. Create RECO and confirm the final storage state

In Disk Groups, click Create again. Use the same workflow with these values:

Field Value
Disk group name RECO
Redundancy External (None)
Allocation unit size 4 MB
Discovery path ORCL:*
Select only ORCL:RECO01, approximately 50 GB

Click OK, wait, and refresh. The screenshot below is the actual final result after creating RECO:

OCR, DATA, and RECO mounted on both nodes
OCR, DATA, and RECO mounted on both nodes

Disk group Size shown State Purpose
OCR 40 GB MOUNTED (2 of 2) Cluster registry and voting files
DATA 100 GB MOUNTED (2 of 2) Storage for the future database
RECO 50 GB MOUNTED (2 of 2) Storage for the future recovery area

Free space is slightly below total size because ASM uses space for metadata. Creating RECO does not yet configure a database fast recovery area; that happens when we configure the database.

If a group is mounted on only one instance, investigate that node's ASM and disk visibility before proceeding. Do not recreate or relabel the shared disks to resolve a mount issue.

Prepare the database installation media

The database ZIP is already downloaded on node1. As root on node1, place it in a directory oracle can read:

mkdir -p /u01/stage/database
chown oracle:oinstall /u01/stage/database
chmod 750 /u01/stage/database
cp -i /root/Downloads/LINUX.X64_2326100_db_home.zip /u01/stage/database/
chown oracle:oinstall /u01/stage/database/LINUX.X64_2326100_db_home.zip
chmod 640 /u01/stage/database/LINUX.X64_2326100_db_home.zip

As oracle on node1, calculate the checksum and compare it with the checksum supplied for the download:

cd /u01/stage/database
sha256sum LINUX.X64_2326100_db_home.zip

The checksum recorded for this lab's ZIP is:

2a5d2583df076209e624dff750829f9a562473c27c8f926d546cf9ad2a1a2efd

Database media staged with oracle ownership and checksum calculated
Database media staged with oracle ownership and checksum calculated

Both nodes already have /u01/app/oracle/product/26ai/dbhome_1 owned by oracle:oinstall. Check available space on both nodes with df -h /u01. Extract into the empty database home on node1 as oracle:

(
  cd /u01/app/oracle/product/26ai/dbhome_1 || exit 1
  if [ -n "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
    echo "STOP: Database home is not empty."
    exit 1
  fi
  unzip -q /u01/stage/database/LINUX.X64_2326100_db_home.zip &&
  ls -l runInstaller
)

The installer will copy the software to node2 during the cluster installation.

Database ZIP extracted into the database home and runInstaller present
Database ZIP extracted into the database home and runInstaller present

Configure SSH for the oracle account

Grid's SSH configuration belongs to the grid account. The database installation needs oracle to connect to both nodes, including itself, without a password prompt.

As oracle on each node, inspect the existing keys:

hostname
ls -la ~/.ssh

Both oracle accounts initially have known_hosts but no user key pair
Both oracle accounts initially have known_hosts but no user key pair

First establish host trust for the short names and FQDNs on each node. Verify each displayed fingerprint against the destination node's host public key fingerprint obtained through a trusted console. As root on each destination, display those fingerprints with:

for key in /etc/ssh/ssh_host_*_key.pub; do
  ssh-keygen -lf "$key"
done

Then, as oracle on both nodes, connect to each name:

for host in rac26ai-node1 rac26ai-node1.lab.test rac26ai-node2 rac26ai-node2.lab.test; do
  ssh -o StrictHostKeyChecking=ask -o ConnectTimeout=10 \
    oracle@"$host" 'whoami; hostname'
done

Type yes only after the fingerprint matches. A password prompt here requests the destination oracle account's password. Accepting a host key establishes host trust; user keys are configured next.

In this lab neither oracle account had an existing key pair. As oracle on each node, generate its own key and install its public key on both nodes. Preserve existing keys if following this on a previously configured account.

ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
for host in rac26ai-node1 rac26ai-node2; do
  ssh-copy-id -i ~/.ssh/id_ed25519.pub \
    -o StrictHostKeyChecking=yes oracle@"$host" || break
done

Both nodes generate oracle user keys and copy their public keys successfully
Both nodes generate oracle user keys and copy their public keys successfully

Run the following as oracle from both nodes. All four destinations must return oracle and the destination hostname without asking for a password:

for host in rac26ai-node1 rac26ai-node1.lab.test rac26ai-node2 rac26ai-node2.lab.test; do
  echo "=== $host ==="
  ssh -o BatchMode=yes -o StrictHostKeyChecking=yes \
    -o ConnectTimeout=10 oracle@"$host" 'whoami; hostname'
done

All eight oracle SSH tests pass using short names and FQDNs
All eight oracle SSH tests pass using short names and FQDNs

Verify the graphical launch session

Open a graphical terminal as oracle on node1. Check the limits in this actual terminal before launching the installer:

whoami
hostname
printf 'DISPLAY=%s\n' "$DISPLAY"
ulimit -Sn
ulimit -Hn
ulimit -Su
ulimit -Hu
ulimit -Ss
ulimit -Hs
ulimit -Sl
ulimit -Hl

The initial graphical session in this lab still had a 64 KB memlock limit.

Initial oracle graphical terminal shows a low memlock limit
Initial oracle graphical terminal shows a low memlock limit

Correct a low graphical memlock limit when needed

A fresh su - oracle session and a graphical terminal can inherit limits from different parent processes. Here the systemd user manager and GNOME terminal server retained 65536 bytes even though the graphical login session had a higher limit. Logging out alone did not resolve it.

As root on node1, inspect existing memlock configuration and the oracle user service:

grep -nH 'memlock' /etc/security/limits.conf /etc/security/limits.d/*.conf
oracle_uid=$(id -u oracle)
systemctl show "user@${oracle_uid}.service" -p LimitMEMLOCK -p LimitMEMLOCKSoft

For this lab the chosen oracle limit was 90 percent of physical memory. Apply the account limits and user service override as root on the affected node:

oracle_uid=$(id -u oracle)
oracle_memlock_kb=$(awk '/^MemTotal:/ { print int(($2 * 9 + 9) / 10) }' /proc/meminfo)
printf 'oracle soft memlock %s\noracle hard memlock %s\n' \
  "$oracle_memlock_kb" "$oracle_memlock_kb" \
  > /etc/security/limits.d/99-oracle-memlock.conf
chmod 644 /etc/security/limits.d/99-oracle-memlock.conf
mkdir -p "/etc/systemd/system/user@${oracle_uid}.service.d"
printf '[Service]\nLimitMEMLOCK=%s\n' "$((oracle_memlock_kb * 1024))" \
  > "/etc/systemd/system/user@${oracle_uid}.service.d/90-oracle-memlock.conf"
systemctl daemon-reload

Save work and log out of the oracle desktop. From a separate root session, terminate the old oracle user session before logging in again:

loginctl terminate-user oracle

This ends oracle's processes and belongs before starting the installer or database. PAM limits files can contain other oracle entries; inspect the effective limits rather than assuming one file wins. In this lab, the preinstall package provided a larger limit for fresh command-line logins. The limit permits locked memory; it does not allocate that memory.

After logging back in, the graphical terminal showed soft and hard memlock values of 14474517 KB. Check DISPLAY using the command above; the screenshot's DISPLAY command contains a typing error and does not verify its value.

Oracle graphical terminal now has the intended soft and hard memlock limits
Oracle graphical terminal now has the intended soft and hard memlock limits

Run database prerequisites before launching the installer

As oracle on node1, check both nodes using the installed Grid CVU:

set -o pipefail
/u01/app/26ai/grid/bin/cluvfy stage -pre dbinst \
  -n rac26ai-node1,rac26ai-node2 \
  -d /u01/app/oracle/product/26ai/dbhome_1 \
  -osdba dba -osoper oper -osbackup backupdba \
  -osdg dgdba -oskm kmdba \
  -verbose 2>&1 | tee ~/rac-db-preinstall-check.log

Review the full report. The first run in this lab failed the ORAchk invocation because oracle was not registered for AHF access. Maximum locked memory passed; HugePages produced a warning on both nodes.

Standalone database prerequisite report identifies missing oracle AHF access
Standalone database prerequisite report identifies missing oracle AHF access

As root on node1, register oracle and verify the access list:

tfactl access lsusers
tfactl access add -user oracle
tfactl access lsusers

The output showed oracle Allowed on both nodes. This installed AHF version accepted the command but printed a deprecation notice; follow the installed version's help for replacement syntax when needed.

Oracle added to the AHF access list on both nodes
Oracle added to the AHF access list on both nodes

Repeat the CVU command as oracle. The subsequent report stated Pre-check for database installation was successful, with HugePages warnings and an ORAchk health warning that rngd was absent on both nodes.

As root on each node, install and start rngd:

dnf install -y rng-tools
systemctl enable --now rngd
systemctl is-enabled rngd
systemctl status rngd --no-pager -l

Confirm enabled and active (running) on both nodes.

rngd installed enabled and running on node1
rngd installed enabled and running on node1

rngd installed enabled and running on node2
rngd installed enabled and running on node2

HugePages sizing remains a task before database creation, once the database memory settings are chosen. The installation below sets up software only.

Launch the RAC database software installer

As oracle in the verified graphical terminal on node1:

cd /u01/app/oracle/product/26ai/dbhome_1
./runInstaller

Select Set Up RAC Software Only.

Select Set Up RAC Software Only
Select Set Up RAC Software Only

Select Oracle Real Application Clusters database installation.

Select Oracle Real Application Clusters database installation
Select Oracle Real Application Clusters database installation

Keep both rac26ai-node1 and rac26ai-node2 selected.

Select both RAC nodes for database software installation
Select both RAC nodes for database software installation

Verify Oracle base /u01/app/oracle and software location /u01/app/oracle/product/26ai/dbhome_1.

Verify the Oracle base and database home paths
Verify the Oracle base and database home paths

Set the operating system groups as follows. The OSOPER field was initially blank; select oper before continuing.

Role Group
OSDBA dba
OSOPER oper
OSBACKUPDBA backupdba
OSDGDBA dgdba
OSKMDBA kmdba
OSRACDBA racdba

All six database administrative groups selected including oper
All six database administrative groups selected including oper

Leave Automatically run configuration scripts unchecked. Run the scripts manually when prompted.

Choose manual root script execution
Choose manual root script execution

Review the installer prerequisite results

The installer displayed HugePages Existence — Warning, matching the standalone check. Review the details and confirm that this is the only outstanding item before proceeding. For this software-only lab installation, select Ignore All, then Next. Configure HugePages before database creation after choosing memory settings.

Installer prerequisite screen shows the HugePages warning
Installer prerequisite screen shows the HugePages warning

The Summary screen shows Enterprise Edition, Set Up Software Only, the database home, manual root configuration, and both cluster nodes. Verify these selections and click Install.

Review the RAC database software installation summary
Review the RAC database software installation summary

Run the database home root scripts

The installer copies software to the remote node and pauses for root scripts. Leave the dialog open.

Installer requests database home root.sh on both nodes
Installer requests database home root.sh on both nodes

As root on node1, run:

/u01/app/oracle/product/26ai/dbhome_1/root.sh

Press Enter to accept /usr/local/bin when prompted. Wait for successful completion, then run the same command as root on node2. These scripts belong to the database home shown in the dialog.

Both nodes returned to the root prompt without visible errors. The messages that dbhome, oraenv, and coraenv were unchanged required no overwrite.

Database home root scripts complete on both nodes
Database home root scripts complete on both nodes

Return to the installer and click OK. The Finish screen confirms The registration of Oracle AI Database was successful. Click Close.

Installer confirms successful Oracle AI Database registration
Installer confirms successful Oracle AI Database registration

The RAC database software installation has finished. Continue below to plan database memory, reserve HugePages, and create the RAC database on ASM.

Plan database memory and configure HugePages

Run the following as root on both nodes before starting DBCA:

hostname
free -h
grep -E 'MemTotal|MemAvailable|HugePages_Total|HugePages_Free|Hugepagesize|Hugetlb' /proc/meminfo
sysctl vm.nr_hugepages

Both nodes reported 16082796 KB of physical memory, roughly 9–10 GiB available at the time of the check, a 2048 KB HugePage size, and zero standard HugePages. Available memory includes reclaimable cache; a small free column alone does not mean the node has run out of memory.

Physical memory and initial HugePages state on both nodes
Physical memory and initial HugePages state on both nodes

Check the existing ASM memory settings as grid on each node. Do not use the oracle database home for this connection:

export ORACLE_HOME=/u01/app/26ai/grid
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=$(ps -eo args | awk '/^[a]sm_pmon_/ {sub(/^asm_pmon_/, ""); print; exit}')
echo "ASM instance: $ORACLE_SID"
sqlplus / as sysasm

At the SQL prompt, run:

show parameter memory_target
show parameter sga_target
show parameter sga_max_size
show parameter pga_aggregate_target
exit

Both ASM instances showed MEMORY_TARGET=1884M, SGA_TARGET=0, SGA_MAX_SIZE=1888M and PGA_AGGREGATE_TARGET=0. We retained ASM's automatic memory management. Its current AMM allocation remains outside the standard HugePages pool reserved for the database.

ASM memory settings checked as grid on both nodes
ASM memory settings checked as grid on both nodes

For this learning lab, choose a 4096 MB database SGA and a 1024 MB PGA target per instance. The PGA target is a tuning target, not a strict limit on all process memory. Leave room for Linux, Clusterware, ASM, and other processes. Reserve 2304 standard HugePages per node: at 2 MiB per page, that is 4.5 GiB, providing headroom above the planned 4 GiB SGA.

HugePages apply to single-instance databases as well as RAC. Each RAC node has its own memory and needs its own reservation. These lab values should be recalculated for a different memory size or workload.

Run as root on each node:

cat > /etc/sysctl.d/99-oracle-hugepages.conf <<EOF
vm.nr_hugepages = 2304
vm.hugetlb_shm_group = $(id -g oracle)
EOF
sysctl -p /etc/sysctl.d/99-oracle-hugepages.conf
hostname
grep -E 'HugePages_Total|HugePages_Free|HugePages_Rsvd|Hugepagesize' /proc/meminfo
su - oracle -c 'ulimit -Sl; ulimit -Hl'

Confirm HugePages_Total=2304 on both nodes before proceeding. In this run all 2304 pages were free before database startup, and fresh oracle login shells reported memlock limits of 134217728 KB on both nodes. If the kernel allocates fewer pages, investigate allocation before creating a database that requires them.

2304 standard HugePages allocated on each node and oracle memlock checked
2304 standard HugePages allocated on each node and oracle memlock checked

Launch DBCA and select the RAC nodes

In the graphical terminal as oracle on node1, use the database home:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/26ai/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
$ORACLE_HOME/bin/dbca

DBCA starts from the oracle database home on node1
DBCA starts from the oracle database home on node1

Select Create a database, then Next.

DBCA Create a database operation
DBCA Create a database operation

Select Advanced configuration to control the cluster, storage, and memory options.

DBCA Advanced configuration selected
DBCA Advanced configuration selected

Select the RAC database type, Automatic database management policy, and General Purpose or Transaction Processing template. The final summary identifies this configuration as an administrator-managed RAC database; the Automatic policy controls its management behavior.

RAC deployment and General Purpose template selected
RAC deployment and General Purpose template selected

Keep both rac26ai-node1 and rac26ai-node2 selected.

Both nodes selected for the RAC database
Both nodes selected for the RAC database

Name the container database and PDB

Use the following names for this lab:

Field Value
Global database name rac26ai.lab.test
SID prefix rac26ai
Number of PDBs 1
PDB name racpdb1
Local Undo for PDBs Enabled

Keep Create a Container database with one or more PDBs selected. DBCA will create instances rac26ai1 and rac26ai2 for the same RAC database. These are two instances accessing one shared database, rather than two independent databases.

Container database and PDB identification details
Container database and PDB identification details

Store database files on DATA and recovery files on RECO

Select Use following for the database storage attributes, choose Automatic Storage Management (ASM), and retain +DATA/{DB_UNIQUE_NAME} as the database file location. Keep Oracle-Managed Files enabled so Oracle generates and manages the file names.

ASM DATA storage and Oracle-Managed Files enabled
ASM DATA storage and Oracle-Managed Files enabled

On Fast Recovery Option, enable Specify Fast Recovery Area. Set ASM storage, +RECO as the location, and 20480 MB as the FRA size. Check Enable archiving. This enables ARCHIVELOG mode for later backup and recovery exercises. The FRA size is a quota, not an immediate reservation of the entire disk group; monitor archived logs and back them up and reclaim space according to the recovery policy.

20 GiB FRA on RECO and archiving enabled
20 GiB FRA on RECO and archiving enabled

Leave Configure Oracle Database Vault and Configure Oracle Label Security unchecked for this lab.

Optional Database Vault and Label Security left unconfigured
Optional Database Vault and Label Security left unconfigured

Set memory and database configuration options

On the Memory tab, select Automatic Shared Memory Management, set SGA to 4096 MB and PGA to 1024 MB. Leave Automatic Memory Management unselected for this database so its SGA can use the standard HugePages pool.

Automatic Shared Memory Management with 4096 MB SGA and 1024 MB PGA target
Automatic Shared Memory Management with 4096 MB SGA and 1024 MB PGA target

The slider label in this screenshot does not equal the two edited numeric fields. Use the SGA and PGA fields and verify their initialization parameters in the final summary, as shown below.

On Character sets, retain Unicode AL32UTF8, national character set AL16UTF16, American language, and United States territory.

AL32UTF8 and AL16UTF16 character sets
AL32UTF8 and AL16UTF16 character sets

Keep Dedicated server mode on Connection mode.

Dedicated server mode selected
Dedicated server mode selected

Keep periodic CVU checks enabled and Enterprise Manager Cloud Control registration unchecked.

Periodic CVU checks enabled without Enterprise Manager registration
Periodic CVU checks enabled without Enterprise Manager registration

Enter administrative passwords privately on User Credentials. This lab used the same administrative password option; choose credentials appropriate to your environment and do not include them in commands, screenshots, or published notes.

Require HugePages and review creation prerequisites

Keep Create database checked and leave Post DB creation scripts blank. Click All Initialization Parameters, enable Show advanced parameters, and locate use_large_pages.

Database creation options and initialization parameter control
Database creation options and initialization parameter control

Set use_large_pages to ONLY and check Include in spfile. With ONLY, startup requires sufficient standard HugePages instead of falling back to regular pages. The reservation must therefore be sufficient on both nodes before creation and after any future reboot.

USE_LARGE_PAGES set to ONLY and included in the SPFILE
USE_LARGE_PAGES set to ONLY and included in the SPFILE

Close the parameter window and continue. DBCA's prerequisite screen reported All minimum requirements are satisfied. Review this result on your own system before proceeding.

DBCA prerequisite checks pass
DBCA prerequisite checks pass

Review the summary and create the database

Confirm the global name rac26ai.lab.test, both nodes, RAC administrator-managed configuration, one PDB named racpdb1, Local Undo, ASM storage, and Automatic Shared Memory Management.

DBCA summary confirms RAC configuration and container database settings
DBCA summary confirms RAC configuration and container database settings

Scroll through initialization parameters. Confirm SGA_TARGET=4096 MB, PGA_AGGREGATE_TARGET=1024 MB, USE_LARGE_PAGES=ONLY, and separate instance numbers, redo threads and undo tablespaces for rac26ai1 and rac26ai2. Confirm +RECO, the 20480 MB FRA and the selected archiving option before starting creation.

Final memory parameters and separate RAC redo threads and undo tablespaces
Final memory parameters and separate RAC redo threads and undo tablespaces

Click Finish. Leave DBCA running through database file copying, instance startup, cluster database configuration and PDB creation. If an error appears, inspect it and the DBCA logs before retrying.

DBCA database creation begins
DBCA database creation begins

The Finish screen reported Database creation complete, global name rac26ai.lab.test, SID prefix rac26ai, and an SPFILE in +DATA/RAC26AI/PARAMETERFILE. Logs are under /u01/app/oracle/cfgtoollogs/dbca/rac26ai. Click Close.

DBCA confirms successful RAC database creation
DBCA confirms successful RAC database creation

Verify both instances and the PDB after creation

As oracle on node1, set the database environment and check Clusterware status. Set these variables in each new shell; a prior graphical terminal's exports do not configure a separate SSH session.

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/26ai/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
srvctl status database -db rac26ai

Expected and observed: rac26ai1 is running on rac26ai-node1 and rac26ai2 is running on rac26ai-node2.

SRVCTL confirms both RAC database instances are running
SRVCTL confirms both RAC database instances are running

Connect as oracle on node1 to its local instance:

export ORACLE_SID=rac26ai1
sqlplus / as sysdba

Run each SQL statement as one complete line to avoid paste problems in the terminal:

set lines 200 pages 100
column instance_name format a15
column host_name format a25
column name format a20
select inst_id, instance_name, host_name, status from gv$instance order by inst_id;
select name, open_mode, log_mode from v$database;
select inst_id, name, open_mode from gv$pdbs order by inst_id, con_id;

The output confirms both instances OPEN, RAC26AI READ WRITE in ARCHIVELOG mode, and RACPDB1 READ WRITE on both instances. PDB$SEED is correctly READ ONLY.

SQL checks confirm open RAC instances ARCHIVELOG mode and the PDB open on both nodes
SQL checks confirm open RAC instances ARCHIVELOG mode and the PDB open on both nodes

Verify the large-page setting across the cluster:

column value format a15
select inst_id, value from gv$parameter where name = 'use_large_pages' order by inst_id;

Both instances returned ONLY. The screenshot also contains an earlier multiline paste error; the final one-line query succeeded and returned both values. The formatting command above keeps the output compact.

Both RAC instances report USE_LARGE_PAGES ONLY
Both RAC instances report USE_LARGE_PAGES ONLY

These results confirm the completed database software installation and database creation, with both instances and the PDB open at the time of verification. Client connectivity through SCAN, service failover, backup recovery, and restart persistence are separate validation exercises.

Completed two part lab

Part 1 prepares the operating systems, networking, users, shared disks, and Grid installation prerequisites. Part 2 takes that foundation through Grid Infrastructure, ASM disk groups, RAC database software, memory preparation, DBCA creation, and SQL verification.

Verified component Result
Database RAC26AI, global name rac26ai.lab.test
Instance on node1 rac26ai1, OPEN
Instance on node2 rac26ai2, OPEN
Application PDB RACPDB1, READ WRITE on both instances
Recovery mode ARCHIVELOG
Database file storage ASM DATA
Recovery area ASM RECO, 20480 MB quota
Large-page setting ONLY on both instances

Oracle documentation

See Oracle's Grid Infrastructure installation guide, CVU reference, memory management guide, and USE_LARGE_PAGES reference.

Continue with Part 3: Client Connections and Shared ACFS Storage for persistent environments, SQL Developer connections, shared storage, and reboot verification.

Share on LinkedIn ↗

Join the discussion

Ask a question, share a result, or add a useful tip.

Loading comments…

Leave a comment

Your name and comment will be public. Keep passwords, email addresses, IP addresses, and other private details out of your comment. Cloudflare Turnstile checks submissions to help prevent spam.