INSTALLING ORACLE DATABASE 12c Steps (1)
INSTALLING ORACLE DATABASE 12c Steps (1)
Packages:
First we need to install the required packages. These packages we can easily get
from OS officially repository.
# yum install -y
Host File:
The host file must contain a fully qualified name for the server.
Selinux:
Set secure Linux to permissive using selinux configuration file.
# vim /etc/sysconfig/selinx
SELINUX=permissive
# setenforce Permissive
IPTables:
If on server Linux firewall is enabled, so you need to stop it and need to
configrure it.
For CentOS/RHEL 7
# systemctl stop firewalld
# systemctl disable firewalld
For CentOS/RHEL 6
# service iptables stop
# chkconfig iptables off
Oracle database will run with normal Linux user. So we need to create the user and
group for oracle.
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
Now we need to configure our system before start the installation of Oracle
Database. Add mention kernel parameters in sysctl.conf file.
# vim /etc/sysctl.conf
Add the mention lines.
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8329226240
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
# sysctl -p
# sysctl -a
# vim /etc/security/limits.conf
Before installing Oracle Database, create directories that will be used during the
Oracle installation, and provide the required permissions.
# mkdir /u01
# chown -R oracle:oinstall /u01
# chmod -R 775 /u01
# chmod g+s /u01
Once you will download the Oracle database setup from Oracle official website.
Extract the Oracle files on a Linux server.
# cd /software
# unzip linuxx64_12201_Oracle_database.zip
Start the Oracle Database Installer issuing the following command in the database
directory.
# cd /software/database
# ./runInstaller
# vim /etc/systemd/system/oracle-rdbms.service
#/etc/systemd/system/oracle-rdbms.service
#Invoking Oracle scripts to start/shutdown Instances defined in /etc/oratab #and
starts Listener
[Unit]
Description=Oracle Database(s) and Listener
Requires=network.target
[Service]
Type=forking
Restart=no
ExecStart=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart
/u01/app/oracle/product/12.2.0/dbhome_1
ExecStop=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut
/u01/app/oracle/product/12.2.0/dbhome_1
User=oracle
[Install]
WantedBy=multi-user.target
# vim /etc/oratab
techoism:/u01/app/oracle/product/12.2.0/dbhome_1:N
techoism:/u01/app/oracle/product/12.2.0/dbhome_1:Y