0% found this document useful (0 votes)
13 views

INSTALLING ORACLE DATABASE 12c Steps (1)

Uploaded by

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

INSTALLING ORACLE DATABASE 12c Steps (1)

Uploaded by

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

STEP 1: PREREQUISITES

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.

127.0.0.1 oracle.techoism.net oracle


192.168.1.110 oracle.techoism.net oracle

Selinux:
Set secure Linux to permissive using selinux configuration file.

# vim /etc/sysconfig/selinx

Change the parameters.

SELINUX=permissive

Reboot the server or execute the mention command.

# 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

Step 2: Create User and Group

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

Set the oracle user password.

# passwd oracle

Step 3: Kernel Parameters

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

Reload the configuration file to reflect the changes.

# sysctl -p
# sysctl -a

Next, we need to configure some limits for the oracle user.

# vim /etc/security/limits.conf

oracle soft nproc 2047


oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768

Step 4: Configure X11 Forwarding


Step 5: Create the Directories

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

Step 6: Extract the File

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

Step 7: Install Oracle Database

Start the Oracle Database Installer issuing the following command in the database
directory.

# cd /software/database
# ./runInstaller

Step 8: Access Oracle Enterprise Manager


Step 9: Set Oracle Home Directory

Add the following lines in user home directory at .bash_profile file.

Step 10: Listener File Configuration


Step 11: Enabling Oracle to Start on System Boot
o enable the database service to start automatically on boot, create the service
file for oracle database and add the mention lines.

# 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

Finally, indicate to database to be brought up during boot.

# vim /etc/oratab

Find the mention line.

techoism:/u01/app/oracle/product/12.2.0/dbhome_1:N

Replace ‘N’ with ‘Y’.

techoism:/u01/app/oracle/product/12.2.0/dbhome_1:Y

You might also like