0% found this document useful (0 votes)
36 views3 pages

Handy Oracle 19c Pre-Install System Check Script

The document provides a Bash script named 'oracle19c_check.sh' designed for pre-installation system checks for Oracle 19c on Oracle Linux. It verifies various system parameters such as OS version, kernel version, SELinux status, firewall status, memory and swap info, disk space, Oracle user and group checks, required packages, directory existence, hostname, and resource limits. Instructions for saving, making the script executable, and running it are also included.

Uploaded by

Mishu Mimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views3 pages

Handy Oracle 19c Pre-Install System Check Script

The document provides a Bash script named 'oracle19c_check.sh' designed for pre-installation system checks for Oracle 19c on Oracle Linux. It verifies various system parameters such as OS version, kernel version, SELinux status, firewall status, memory and swap info, disk space, Oracle user and group checks, required packages, directory existence, hostname, and resource limits. Instructions for saving, making the script executable, and running it are also included.

Uploaded by

Mishu Mimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

👇

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

You might also like