Oracle AI Database 26ai RAC Part 3 Client Connections and Shared ACFS Storage

Share on LinkedIn ↗

By Venkata Rachuri · October 26, 2026

In Part 1, we prepared the servers, network, users, and shared storage. In Part 2, we installed Grid Infrastructure and created the two-node RAC database.

Here we configure persistent user environments, connect SQL Developer to the PDB through SSH tunnels, and create an 18 GB Oracle ACFS filesystem shared by both nodes. We finish by rebooting each node separately and verifying automatic mounting and retained files.

Our final storage arrangement uses ASMLib for OCR, DATA, and RECO, and a dedicated udev-managed disk for ACFS. Follow the account and machine labels beside each command: the virtualization host, RAC nodes, grid account, and oracle account each have different responsibilities.

Lab settings

Address privacy: IP addresses in the text and screenshots have their last three octets masked. Values such as 192.xxx.xxx.xxx and 127.xxx.xxx.xxx are display placeholders, not executable addresses. Replace them with your own node, forwarding-host, and local loopback addresses before running commands. Use the node names and port numbers to distinguish the connections.

Component Value
Virtualization KVM and libvirt
Operating system Oracle Linux 8.10 with UEK R7
RAC nodes rac26ai-node1 and rac26ai-node2
Node public addresses 192.xxx.xxx.xxx and 192.xxx.xxx.xxx
Grid home /u01/app/26ai/grid
Database home /u01/app/oracle/product/26ai/dbhome_1
Database unique name rac26ai
Database instances rac26ai1 and rac26ai2
PDB service used by SQL Developer racpdb1.lab.test
SCAN name rac26ai-scan.lab.test
ACFS backing image /var/lib/libvirt/rac-storage/acfs01.img
ACFS physical disk 20 GB, serial RAC_ACFS01
ACFS disk group and volume ACFS and ACFSVOL1
Filesystem mount point /acfs/shared

The addresses, paths, and instance names below belong to this lab. Substitute your own values consistently. The ACFS disk uses external redundancy, so ASM does not mirror it; both nodes accessing one shared disk does not create a second copy of its contents.

Prechecks before starting

Confirm the database and owner environments

As oracle on either RAC node:

whoami
hostname
srvctl status database -db rac26ai

Expect rac26ai1 running on node 1 and rac26ai2 running on node 2. If the commands are not available in a new login, complete the persistent environment section below first.

The oracle session confirms rac26ai1 running on node 1 and rac26ai2 running on node 2
The oracle session confirms rac26ai1 running on node 1 and rac26ai2 running on node 2

The captured database status shows both instances running. Use whoami and hostname above to identify the account and node in your own session.

For this lab, grid manages Grid Infrastructure and ASM; oracle manages the database home. Use a root session for libvirt operations on the host, system device configuration on the guests, and filesystem registration.

Check the ACFS drivers on both nodes

As root on each RAC node:

hostname
uname -r
/u01/app/26ai/grid/bin/acfsdriverstate supported
/u01/app/26ai/grid/bin/acfsdriverstate installed
/u01/app/26ai/grid/bin/acfsdriverstate loaded
/u01/app/26ai/grid/bin/acfsdriverstate version -v
command -v mkfs.acfs

Proceed when the platform is supported, the drivers are installed and loaded, and the installed command and driver versions are consistent. In our lab, mkfs.acfs is available through /sbin and /usr/sbin; it is not a program under the Grid home's bin directory.

Use a kernel and Grid Infrastructure release supported together on your platform. Kernel maintenance belongs before the storage procedure, with a planned restart and subsequent driver checks; a kernel update is not an ACFS creation step.

ACFS support, installed-driver and loaded-driver checks on both RAC nodes
ACFS support, installed-driver and loaded-driver checks on both RAC nodes

Choose the dedicated ACFS disk access method

This walkthrough uses direct disk access with persistent udev ownership for the dedicated ACFS disk. Configure the dedicated ACFS partition with a persistent udev rule so grid can access it through /dev/asm-acfs01. Keep the existing ASMLib discovery entry for the database disk groups.

Before partitioning, check the disk's size, serial, signatures, and mounts. The target must be the new unused ACFS disk, not an OCR, DATA, RECO, or operating-system disk. If your intended disk already has an ASM label, contains a filesystem, or belongs to a disk group, stop and inventory it before continuing; the commands here assume an unused disk.

Use successful ACFS formatting, mounting, and file access as the filesystem checkpoints. A generic blkid probe is not a substitute for these checks on an ADVM device.

Check the SSH forwarding source before connecting a client

The SSH host must be able to reach both RAC nodes on TCP 1521. For this lab, traffic forwarded by the host reaches the guests with source address 192.xxx.xxx.xxx.

As root on the virtualization host:

ip route get 192.xxx.xxx.xxx
ip route get 192.xxx.xxx.xxx

Read the src value. Use that actual source address in the guest firewall rules later in this guide. A listening port on Windows confirms only the local end of the tunnel; the remote connection must also succeed.

Step 1 Save the Grid and database environments

Each login should select the correct Oracle home and the local instance automatically. We use separate profiles for grid and oracle.

As grid on both nodes, inspect and back up the profile before editing:

grep -nE 'ORACLE_|GRID_HOME|PATH=|oraenv' ~/.bash_profile ~/.bashrc
cp -p ~/.bash_profile ~/.bash_profile.before-oracle-env

Open the profile with vi ~/.bash_profile and add the following block once. If Oracle environment settings already exist, edit that block rather than adding conflicting definitions. Save the file before running the verification commands.

export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/26ai/grid

case "$(hostname -s)" in
  rac26ai-node1) export ORACLE_SID=+ASM1 ;;
  rac26ai-node2) export ORACLE_SID=+ASM2 ;;
esac

case ":$PATH:" in
  *":$ORACLE_HOME/bin:"*) ;;
  *) export PATH="$ORACLE_HOME/bin:$PATH" ;;
esac

Load and verify it:

source ~/.bash_profile
hostname
printf 'ORACLE_HOME=%s\nORACLE_SID=%s\n' "$ORACLE_HOME" "$ORACLE_SID"
command -v sqlplus
command -v lsnrctl

Grid environments resolve to the Grid home and the correct ASM instance on each node
Grid environments resolve to the Grid home and the correct ASM instance on each node

As oracle on both nodes, inspect and back up that user's profile:

grep -nE 'ORACLE_|GRID_HOME|PATH=|oraenv' ~/.bash_profile ~/.bashrc
cp -p ~/.bash_profile ~/.bash_profile.before-oracle-env
vi ~/.bash_profile

Add this block once and save the file:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/26ai/dbhome_1

case "$(hostname -s)" in
  rac26ai-node1) export ORACLE_SID=rac26ai1 ;;
  rac26ai-node2) export ORACLE_SID=rac26ai2 ;;
esac

case ":$PATH:" in
  *":$ORACLE_HOME/bin:"*) ;;
  *) export PATH="$ORACLE_HOME/bin:$PATH" ;;
esac

Then verify:

source ~/.bash_profile
printf 'ORACLE_HOME=%s\nORACLE_SID=%s\n' "$ORACLE_HOME" "$ORACLE_SID"
command -v sqlplus
command -v srvctl

A fresh login such as su - grid or su - oracle loads the corresponding profile. These commands are Linux shell commands, entered at $ or #, rather than at the SQL> prompt.

Database environments resolve to the database home with rac26ai1 and rac26ai2
Database environments resolve to the database home with rac26ai1 and rac26ai2

Step 2 Verify listeners and the PDB service

As grid on either node:

srvctl config scan
srvctl status scan_listener

Our SCAN name resolves to three SCAN VIPs, with listeners distributed across the cluster.

SCAN configuration and running SCAN listeners
SCAN configuration and running SCAN listeners

Check the local listener on each node:

lsnrctl services LISTENER

Locate the PDB service racpdb1.lab.test and a ready handler for the local database instance. This is the service we will enter in SQL Developer.

Local listeners advertise the PDB service with READY instance handlers
Local listeners advertise the PDB service with READY instance handlers

Step 3 Configure PuTTY forwarding for SQL Developer

On Windows, load the saved Oracle26ai-RAC-Tunnel session that connects to the virtualization host. Under Connection → SSH → Tunnels, configure local forwards as follows:

Source on Windows Destination reachable from the SSH host Purpose
127.xxx.xxx.xxx:10031 192.xxx.xxx.xxx:22 Node 1 SSH
127.xxx.xxx.xxx:10032 192.xxx.xxx.xxx:22 Node 2 SSH
127.xxx.xxx.xxx:11531 192.xxx.xxx.xxx:1521 Node 1 database listener
127.xxx.xxx.xxx:11532 192.xxx.xxx.xxx:1521 Node 2 database listener

Select Local forwarding and leave Local ports accept connections from other hosts unchecked. Click Add for each entry, return to Session, and save the profile. Open the saved session and keep it connected while using SQL Developer. Reopen a session after changing its saved configuration so the required forwards are active.

PuTTY database forwards use loopback ports 11531 and 11532
PuTTY database forwards use loopback ports 11531 and 11532

As root on both RAC nodes, inspect the active zone before adding the client rule:

firewall-cmd --get-active-zones
firewall-cmd --zone=public --list-all

In our lab, the public interface belongs to public. Allow the forwarding host's verified source address only on TCP 1521, in both runtime and permanent configuration:

rule='rule family="ipv4" source address="192.xxx.xxx.xxx/32" port port="1521" protocol="tcp" accept'
firewall-cmd --zone=public --add-rich-rule="$rule"
firewall-cmd --permanent --zone=public --add-rich-rule="$rule"
firewall-cmd --zone=public --query-rich-rule="$rule"
firewall-cmd --permanent --zone=public --query-rich-rule="$rule"

Both query commands should return yes. Substitute your actual zone and forwarding source if they differ.

Both nodes confirm the runtime and permanent listener access rule
Both nodes confirm the runtime and permanent listener access rule

Step 4 Connect SQL Developer to each instance

Create two Basic connections in SQL Developer:

Setting Node 1 connection Node 2 connection
Connection name RAC26ai-PDB-Node1 RAC26ai-PDB-Node2
Username system system
Role default default
Hostname 127.xxx.xxx.xxx 127.xxx.xxx.xxx
Port 11531 11532
Service name racpdb1.lab.test racpdb1.lab.test

Select Service name, enter the database password created during DBCA, and click Test. We used SYSTEM to validate the lab connections; use an appropriately privileged application account for application work.

SQL Developer connection to the node 1 listener passes its test
SQL Developer connection to the node 1 listener passes its test

SQL Developer connection to the node 2 listener passes its test
SQL Developer connection to the node 2 listener passes its test

Connect and run this query in each worksheet:

SELECT
    SYS_CONTEXT('USERENV', 'CON_NAME')      AS pdb_name,
    SYS_CONTEXT('USERENV', 'INSTANCE_NAME') AS instance_name,
    SYS_CONTEXT('USERENV', 'SERVER_HOST')   AS server_host
FROM dual;

The node 1 connection returned RACPDB1, rac26ai1, and rac26ai-node1. The node 2 connection returned RACPDB1, rac26ai2, and rac26ai-node2.

Node 1 worksheet confirms the PDB and instance serving the connection
Node 1 worksheet confirms the PDB and instance serving the connection

Node 2 worksheet confirms RACPDB1 on rac26ai2
Node 2 worksheet confirms RACPDB1 on rac26ai2

These explicit node tunnels validate each listener and instance. Applications using SCAN need client DNS and network access to SCAN and the listener redirect destinations; our two loopback tunnels do not test that connection path.

Step 5 Create and attach the shared ACFS disk

Run this section on the virtualization host as root. Confirm the VM names, existing disk targets, and available storage:

hostname
virsh list --all
virsh domblklist rac26ai-node1 --details
virsh domblklist rac26ai-node2 --details
df -h /var/lib/libvirt/rac-storage

In the initial disk layout, vda is the operating-system disk, vdb is OCR, vdc is DATA, and vdd is RECO. We use the free target vde for ACFS. This requires that vde is unused in both the live and persistent configurations; also check with virsh domblklist VM_NAME --inactive --details before attaching it.

Create one shared raw image. The existence check prevents overwriting an existing image:

(
disk=/var/lib/libvirt/rac-storage/acfs01.img
if [ -e "$disk" ]; then
  echo "STOP: ACFS image already exists. Inspect it before continuing."
  exit 1
fi

qemu-img create -f raw "$disk" 20G &&
chown --reference=/var/lib/libvirt/rac-storage/ocr01.img "$disk" &&
chmod --reference=/var/lib/libvirt/rac-storage/ocr01.img "$disk" &&
qemu-img info "$disk"
)

This raw image is sparse: reserve enough real host storage for its future growth, rather than relying only on its small initial allocation.

A 20 GB raw image provides the new shared ACFS disk
A 20 GB raw image provides the new shared ACFS disk

Create the disk attachment definition:

cat > /root/rac-acfs01.xml <<'EOF'
<disk type='file' device='disk'>
  <driver name='qemu' type='raw' cache='none' io='native'/>
  <source file='/var/lib/libvirt/rac-storage/acfs01.img'/>
  <target dev='vde' bus='virtio'/>
  <shareable/>
  <serial>RAC_ACFS01</serial>
</disk>
EOF

Attach the same image to both VMs:

virsh attach-device rac26ai-node1 /root/rac-acfs01.xml --live --config
virsh attach-device rac26ai-node2 /root/rac-acfs01.xml --live --config

--live --config attaches it to the running guests and saves the attachment for subsequent boots.

Step 6 Partition once and configure udev on both nodes

As root on each RAC node, verify the new disk before writing to it:

hostname
lsblk -d -o NAME,SIZE,TYPE,SERIAL
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT /dev/vde
wipefs -n /dev/vde

Expect the 20 GB disk with serial RAC_ACFS01, no existing filesystem, and no mounted contents. The device name must match the verified ACFS disk on that node.

Both nodes see the 20 GB ACFS disk and its serial
Both nodes see the 20 GB ACFS disk and its serial

Create the partition as root on node 1 only:

parted -s /dev/vde mklabel gpt
parted -s /dev/vde mkpart primary 1MiB 100%
partprobe /dev/vde
udevadm settle

On node 2, refresh the existing shared partition table without recreating it:

partprobe /dev/vde
udevadm settle

On both nodes, create the persistent udev rule:

cat > /etc/udev/rules.d/99-acfs01.rules <<'EOF'
SUBSYSTEM=="block", ENV{DEVTYPE}=="partition", ATTRS{serial}=="RAC_ACFS01", OWNER="grid", GROUP="asmadmin", MODE="0660", SYMLINK+="asm-acfs01"
EOF

udevadm control --reload-rules
udevadm trigger --action=change /sys/class/block/vde1
udevadm settle
ls -l /dev/asm-acfs01 /dev/vde1

Expect /dev/asm-acfs01 to point to vde1, with the block device owned by grid:asmadmin and mode 0660. The serial identifies the disk for the rule; the symlink supplies the ASM discovery path.

The final ACFS disk has the same udev symlink and ownership on both nodes
The final ACFS disk has the same udev symlink and ownership on both nodes

Step 7 Discover the disk and create the ACFS disk group

As grid on each node:

sqlplus / as sysasm

At SQL>, run the following on both nodes. Retain any other discovery entries your existing disk groups require; the final setting for our lab is:

ALTER SYSTEM SET asm_diskstring='ORCL:*','/dev/asm-acfs01' SCOPE=BOTH SID='*';

Then run this query separately:

SELECT path, header_status FROM v$asm_disk WHERE path='/dev/asm-acfs01';

The new disk should be CANDIDATE. Existing database disks remain discoverable through ORCL:*.

Create the disk group once, from node 1's SYSASM session:

CREATE DISKGROUP ACFS EXTERNAL REDUNDANCY DISK '/dev/asm-acfs01' ATTRIBUTE 'compatible.asm'='23.0.0.0.0', 'compatible.rdbms'='19.0.0.0.0', 'compatible.advm'='23.0.0.0.0';

Expected: Diskgroup created. These compatibility values match our installed Grid version and lab settings; choose values supported by every node that will access your group.

Create the volume on node 1 only:

ALTER DISKGROUP ACFS ADD VOLUME ACFSVOL1 SIZE 18G;

Obtain the generated device path:

SELECT volume_name, volume_device FROM v$asm_volume WHERE volume_name='ACFSVOL1';

Creating the final ACFS disk group and 18 GB volume through direct disk access
Creating the final ACFS disk group and 18 GB volume through direct disk access

Our device path is /dev/asm/acfsvol1-411. The suffix is generated by Oracle: use your query result in every subsequent command rather than assuming it will be 411.

Exit SQL*Plus. As grid, check the group and volume:

srvctl status diskgroup -diskgroup ACFS
asmcmd volinfo -G ACFS ACFSVOL1

Completed-lab reference showing ACFSVOL1 enabled with 18432 MB and the ACFS disk group mounted
Completed-lab reference showing ACFSVOL1 enabled with 18432 MB and the ACFS disk group mounted

This completed-lab capture uses asmcmd volinfo --all and asmcmd lsdg to show the same volume and disk-group properties. It was taken after filesystem registration, so its mount path is populated; before Step 8, the mount path is blank.

If the group is not running on a node, use srvctl start diskgroup -diskgroup ACFS and verify again. The volume should be enabled. Use asmcmd volenable -G ACFS ACFSVOL1 on a node that needs the existing volume enabled; do not create another volume there.

Step 8 Format once and register the filesystem

As root on node 1 only, format the new, unused volume using the actual path returned above:

/sbin/mkfs -t acfs /dev/asm/acfsvol1-411

Proceed only after Format complete. Formatting initializes this shared volume once; node 2 uses the same filesystem and must not format it again.

The final 18 GB ACFS volume reports Format complete
The final 18 GB ACFS volume reports Format complete

As root on both nodes, create the mount directory:

mkdir -p /acfs/shared

Register the filesystem as root on node 1 only:

/u01/app/26ai/grid/bin/srvctl add filesystem -device /dev/asm/acfsvol1-411 -path /acfs/shared -user oracle -mountowner oracle -mountgroup oinstall -mountperm 775

Start it and verify the registered mount:

/u01/app/26ai/grid/bin/srvctl start filesystem -device /dev/asm/acfsvol1-411
/u01/app/26ai/grid/bin/srvctl status filesystem -device /dev/asm/acfsvol1-411
/u01/app/26ai/grid/bin/srvctl config filesystem -device /dev/asm/acfsvol1-411

The status should list both nodes. The configuration should show /acfs/shared, ACFSVOL1, oracle ownership, the oinstall group, and an enabled filesystem. Clusterware manages the mount and its storage dependencies; this procedure does not add an independent /etc/fstab entry.

Clusterware reports the final filesystem mounted on both nodes
Clusterware reports the final filesystem mounted on both nodes

Step 9 Verify shared access as oracle

As oracle on node 1:

echo "Written by oracle on node 1" > /acfs/shared/node1-check.txt

As oracle on node 2:

cat /acfs/shared/node1-check.txt
echo "Written by oracle on node 2" > /acfs/shared/node2-check.txt

Back on node 1 as oracle:

cat /acfs/shared/node2-check.txt
df -hT /acfs/shared

Node 2 read node 1's file, and node 1 read node 2's file. The filesystem reports 18 GB with type acfs.

Oracle reads the file written on the other node and verifies the 18 GB filesystem
Oracle reads the file written on the other node and verifies the 18 GB filesystem

Step 10 Verify Clusterware remounting

With no applications using the new filesystem, perform a controlled stop and start as root on node 1. Run one command at a time and stop on any error.

/u01/app/26ai/grid/bin/srvctl stop filesystem -device /dev/asm/acfsvol1-411
/u01/app/26ai/grid/bin/srvctl start filesystem -device /dev/asm/acfsvol1-411
/u01/app/26ai/grid/bin/srvctl status filesystem -device /dev/asm/acfsvol1-411

On both nodes, confirm the files remain available:

cat /acfs/shared/node1-check.txt /acfs/shared/node2-check.txt

Clusterware remounting succeeds and both nodes retain access to the shared files
Clusterware remounting succeeds and both nodes retain access to the shared files

Step 11 Verify automatic mounting after individual node reboots

Reboot one node at a time, leaving the other node running. Before each restart, confirm the surviving database instance is running:

As oracle on the node that will remain online:

srvctl status database -db rac26ai

For the node 1 test, run the following as root on node 1:

/u01/app/26ai/grid/bin/crsctl stop crs

Wait for successful shutdown and the root prompt to return. Then reboot node 1 once:

reboot

Reconnect and allow Clusterware time to finish starting. Do not manually mount or start the filesystem during this test. As root on node 1, check:

hostname
uptime
/u01/app/26ai/grid/bin/crsctl check crs
/u01/app/26ai/grid/bin/srvctl status filesystem -device /dev/asm/acfsvol1-411
findmnt /acfs/shared
cat /acfs/shared/node1-check.txt /acfs/shared/node2-check.txt

Once Clusterware is online, expect /acfs/shared to be mounted read/write and both test files to be readable. Check database status as oracle before moving to the other node:

srvctl status database -db rac26ai

After node 1 boots, ACFS mounts automatically and both database instances are running
After node 1 boots, ACFS mounts automatically and both database instances are running

Repeat the same shutdown, single reboot, and verification sequence on node 2, keeping node 1 running. Wait for node 2's Clusterware startup to complete before assessing its mount status.

Both nodes show automatic ACFS mounting and retained files after their individual reboots
Both nodes show automatic ACFS mounting and retained files after their individual reboots

Our individual node reboot tests confirmed that Clusterware brings ACFS back automatically and that shared files remain accessible. These are controlled restart checks; client connection failover and simultaneous full-cluster recovery are separate tests.

The completed setup

Check Verified result
Persistent environments Correct Grid and database homes and local SIDs
SQL Developer PDB connections through both node tunnels
ACFS capacity 18 GB on the dedicated 20 GB shared disk
Mount point /acfs/shared on both nodes
Shared access Oracle writes on either node and reads from the other
Clusterware registration Enabled filesystem with saved mount configuration
Resource restart Filesystem stops and starts through SRVCTL
Individual node reboots Automatic mounting and retained files on both nodes

The RAC database continues to use ASMLib-backed OCR, DATA, and RECO. ACFS adds a shared filesystem through its dedicated udev-managed disk, ADVM volume, and Clusterware resource.

Oracle documentation

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.