To set up Oracle RAC on Oracle Linux 7 (OEL7) without internet access, you must use the Oracle Linux 7 installation ISO (or Full/Add-on DVD) as a local offline yum repository to install all required dependencies and pre-installation RPMs.
Step 1: Mount the OEL7 ISO as a Local Yum Repository
- Upload or insert the OEL7 ISO image into your VM/server
(e.g. /root/V984223-01.iso or via your hypervisor\’s virtual DVD drive) - Create a mount point and mount the ISO:
mkdir -p /mnt/oel7_iso
mount -o loop /path/to/oracle-linux-7.iso /mnt/oel7_iso
- Create a local .repo file in /etc/yum.repos.d/ pointing to the mounted directory. Create /etc/yum.repos.d/local-oel7.repo.ini
[local-oel7]
name=Oracle Linux 7 Local DVD
baseurl=file:///mnt/oel7_iso
enabled=1
gpgcheck=1
gpgkey=file:///mnt/oel7_iso/RPM-GPG-KEY-oracle-linux7
- Verify and clean yum cache:
yum clean all
yum repolist
The space in the path (OL-7.9 Server.x86_64) is breaking the gpgkey URL parse. Fix it by URL-encoding the space as %20 (or by using a path without spaces).
Option 1: URL-encode the spaces (quickest)
cat > /etc/yum.repos.d/local-oel7.repo <<\’EOF\’
[local-oel7]
name=Oracle Linux 7 Local DVD
baseurl=file:///run/media/root/OL-7.9%20Server.x86_64
enabled=1
gpgcheck=1
gpgkey=file:///run/media/root/OL-7.9%20Server.x86_64/RPM-GPG-KEY-oracle
EOF
yum clean all
yum repolist
Option 2: Bind-mount to a space-free path (more robust)
mkdir -p /mnt/oel7dvd
mount –bind \”/run/media/root/OL-7.9 Server.x86_64\” /mnt/oel7dvd
cat > /etc/yum.repos.d/local-oel7.repo <<\’EOF\’
[local-oel7]
name=Oracle Linux 7 Local DVD
baseurl=file:///mnt/oel7dvd
enabled=1
gpgcheck=1
gpgkey=file:///mnt/oel7dvd/RPM-GPG-KEY-oracle
EOF
yum clean all
yum repolist
If the DVD gets auto-unmounted or remounted, Option 2 needs the bind mount redone. To persist it, mount the ISO/device directly at /mnt/oel7dvd instead (e.g., mount -o loop,ro /path/to/OL7.iso /mnt/oel7dvd)
Also worth noting: there is an extra /etc/yum.repos.d/bkp/ directory, which yum ignores, so that’s fine. Make sure no other .repo files there are enabled and unreachable, or yum will try them and time out.
Step 2: Install Oracle Pre-installation RPM or Manual Dependencies
Without internet access, you cannot run yum install oracle-database-server-12cR2-preinstall directly unless the preinstall RPM and its dependency tree reside on your local ISO.
- Option A (If the Preinstall RPM is on the ISO):
yum -y install oracle-database-server-19c-preinstall # or 12cR2-preinstall depending on your version
- Option B (Manual RPM installation from the ISO):
If the preinstall RPM is missing from your specific ISO build, manually install the required packages using yum or rpm from the /mnt/oel7_iso/Packages directory:
cd /mnt/oel7_iso/Packages
yum -y localinstall binutils* compat-libcap* compat-libstdc++* gcc* gcc-c++* glibc* glibc-devel* ksh* libaio* libaio-devel* libgcc* libstdc++* libstdc++-devel* make* sysstat* smartmontools* net-tools*
Use code with caution.
Step 3: Perform OS Kernel and User Configurations Manually
If you could not use an Oracle pre-installation RPM, you must manually apply the OS settings required for Oracle Grid Infrastructure and Database RAC:
- Create Groups and Users:
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
groupadd -g 54327 asmdba
groupadd -g 54328 asmoper
groupadd -g 54329 asmadmin
useradd -u 54321 -g oinstall -G dba,asmdba,asmadmin,asmoper oracle
useradd -u 54332 -g oinstall -G dba,asmdba,asmadmin,asmoper grid
- Configure /etc/security/limits.conf:
Add soft and hard limits for oracle and grid regarding nofile, nproc, stack, and memlock. - Configure Kernel Parameters in /etc/sysctl.d/91-oracle-sysctl.conf:
Set parameters such as fs.file-max, kernel.sem, kernel.shmmax, net.ipv4.ip_local_port_range, etc., then apply them:
sysctl –system
- Configure /etc/hosts and Network Interfaces:
- Define public, private (interconnect), and Virtual/SCAN IP entries for all RAC nodes in /etc/hosts.
- Disable or configure firewall (firewalld) and SELinux (set to permissive or disabled per Oracle guidelines).
Step 4: Transfer Oracle Binaries & Run Grid/DB Installers
- Transfer pre-downloaded Oracle binaries (Grid Infrastructure and Database ZIP files) to your nodes via scp or a shared storage mount/USB.
- Unzip the Grid Infrastructure software into $GRID_HOME (owned by grid:oinstall) and the Database software into $ORACLE_HOME (owned by oracle:oinstall).
- Run the Grid Infrastructure setup script from $GRID_HOME:
./gridSetup.sh
Regards,
Meghashri Karadi