👇
Handy Oracle 19c Pre-Install System Check Script for Oracle Linux – it will help you quickly
verify everything in one go
Bash Script: oracle19c_check.sh
Copy below
#!/bin/bash
🖥️
echo "==============================="
echo " Oracle Linux Version:"
cat /etc/os-release
echo "==============================="
echo "🧠 Kernel Version (Check for UEK):"
uname -r
echo "==============================="
echo "🔐 SELinux Status:"
getenforce
echo "==============================="
echo "🔥 Firewall Status:"
systemctl is-active firewalld
echo "==============================="
echo "💾 Memory and Swap Info:"
free -h
echo "==============================="
echo "📂 Disk Space:"
df -h
echo "==============================="
echo "👤 Oracle User Check:"
id oracle 2>/dev/null || echo "User 'oracle' not found!"
echo "==============================="
echo "👥 Oracle Groups Check:"
getent group oinstall
getent group dba
echo "==============================="
echo "📦 Required Packages Check (sample):"
for pkg in wget vim net-tools unzip oracle-database-preinstall-19c; do
rpm -q $pkg || echo "$pkg not installed"
done
echo "==============================="
echo "📁 Directory Check:"
for dir in /u01/app/oracle /u01/app/oraInventory; do
[ -d "$dir" ] && echo "$dir exists" || echo "$dir missing"
done
echo "==============================="
echo "🌐 Hostname:"
hostname
echo "==============================="
echo "📄 /etc/hosts entry for hostname:"
grep $(hostname) /etc/hosts || echo "Hostname not found in /etc/hosts"
echo "==============================="
echo "✅ Ulimit (resource limits):"
ulimit -a
echo "==============================="
echo "🎉 All checks completed!"
🛠️ How to Use It
1. Save the script:
Bash : nano oracle19c_check.sh
2. Paste the script inside and save (Ctrl + O, Enter, Ctrl + X)
3. Make it executable:
Bash: chmod +x oracle19c_check.sh
4.Run the script:
Bash: ./oracle19c_check.sh