guide to install Oracle DB
guide to install Oracle DB
database
Jul 12, 2024
2 min read
Step 1: Prerequisites
System Requirements:
bash
bash
sudo dnf install -y bc binutils gcc gcc-c++ glibc glibc-devel ksh libaio libaio-
devel libX11 libXau libXi libXtst libgcc libnsl libstdc++ libstdc++-devel libxcb
make smartmontools sysstat elfutils-libelf elfutils-libelf-devel libXrender
libXrender-devel
bash
bash
Set kernel parameters: Edit the /etc/sysctl.conf file and add the following lines:
bash
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1073741824
kernel.shmmni = 4096
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
bash
sudo sysctl -p
Set resource limits: Edit the /etc/security/limits.conf file and add the following
lines:
bash
Configure PAM: Edit the /etc/pam.d/login file and add the following line:
bash
bash
bash
sudo su - oracle
Set environment variables: Edit the ~/.bash_profile file and add the following
lines:
bash
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
bash
source ~/.bash_profile
bash
export CV_ASSUME_DISTID=OEL7.8
$ORACLE_HOME/runInstaller
Follow the GUI instructions to complete the installation. Select "Set Up Software
Only" during the installation.
wait aprox 15 min to start the installation
/u01/app/oracle/product/19.0.0/dbhome_1/inventory/Scripts/oraInstall2025-02-12_02-
55-31PM.out (Permission denied)
vi /etc/sudoers
oracle ALL=(ALL) ALL
cd /u01/app/oracle/product/19.0.0/dbhome_1
chmod -R 777 .
cd /u01/
chmod -R 777 .
chmod -R 755 /u01/app/oracle/product/19.0.0/dbhome_1/bin/olsadmintool to 755
sudo chown oracle:oinstall olsadmintool
chmod -R 755 /u01/app/oracle/product/19.0.0/dbhome_1/bin/olsoidsync
sudo chown oracle:oinstall olsoidsync
cd /u01/app/oracle/product/19.0.0/dbhome_1/lib/
sudo chown oracle:oinstall libedtn19.a
cd /u01/app/oracle/product/19.0.0/dbhome_1/bin/
sudo chown oracle:oinstall eusm
sudo chown oracle:oinstall umu
sudo chown oracle:oinstall statusnc
sudo chown oracle:oinstall *
bash
netca
Create a new listener: Follow the prompts to create a listener with default
settings.
bash
dbca
Step 7: Post-Installation
bash
lsnrctl start
sqlplus / as sysdba
Inside SQL*Plus:
sql
STARTUP;
sql