You are on page 1of 6

Oracle Linux and Virtualization Essentials

Activity Guide: Oracle Linux 7

finelearn.com
Contents
1. Introduction .................................................................................................................................... 3
1.1 Configure Hostname ................................................................................................................ 3
1.2 Installing Oracle Preinstall RPM ................................................................................................ 3
1.3 Create Directories and Change Ownership, Permissions ........................................................... 4
1.4 Manage users and groups (RAC) ............................................................................................... 4
1.5 Install other Packages............................................................................................................... 5
1.6 Verify Kernel Parameters and User Limits................................................................................. 5
1.7 Disable Firewall ........................................................................................................................ 5
1.8 Configure oraInst.loc ................................................................................................................ 5
1.9 Run orachk (Optional) .............................................................................................................. 5
1.10 Check Documentation .............................................................................................................. 6
1. Introduction
This document helps you configure Oracle Linux 7 machine (or VM) for installing any Oracle Software.

1.1 Configure Hostname

• Check the hostname using “hostname” commands and if you need to change then use:

hostnamectl set-hostname oraclelinux7.finelearn.com

For example, If you want to change the hostname for EBS Installation, you can set as below:

hostnamectl set-hostname erpn1.vishnu.ae

• Configure /etc/hosts

192.168.56.150 oraclelinux7.finelearn.com oraclelinux7

1.2 Installing Oracle Preinstall RPM

The Preinstall Package of Oracle not only helps you to configure your Linux machine for Oracle Database
but also for any Oracle Software such as Oracle Fusion Middleware, Enterprise Manager etc.

To install Oracle Database 12cR2:

yum install oracle-database-server-12cR2-preinstall

To install Oracle Database 18c:

yum install oracle-database-preinstall-18c

To install Oracle Database 19c:

yum install oracle-database-preinstall-19c

For installing Oracle E-Business Suite, you need to enable addon in /etc/yum.repos.d/oracle*:
yum install oracle-ebs-server-R12-preinstall

Always check the latest OS packages available in Yum Site:

https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html

In this VM, I will be installing Oracle Database 12c and Oracle EBS R12 Pre-install RPMs:

yum install oracle-database-server-12cR2-preinstall


yum install oracle-ebs-server-R12-preinstall

1.3 Create Directories and Change Ownership, Permissions

Based on the purpose of the VM, the permissions need to be given. Below example is for a database
machine. If you are running Oracle EBS application tier, you need to keep applmgr as the owner.

chown -R oracle:oinstall /u01


su - oracle
mkdir -p /u01/app/oracle

1.4 Manage users and groups (RAC)

Oracle recommends using separate user for Grid Infrastructure. Verify the “oracle” user and create
“grid” user similarly as below:

[root@racs1 ~]# id oracle


uid=54321(oracle) gid=54321(oinstall)
groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330
(racdba)

groupadd -g 54333 asmdba


groupadd -g 54334 asmoper
groupadd -g 54335 asmadmin

useradd -u 54323 -g oinstall -G dba,asmdba,asmoper,asmadmin,backupdba,dgdba,kmdba,racdba grid

Add “asmdba” to “oracle” user:

usermod -a -G asmdba oracle


Change user passwords:

passwd oracle
passwd grid
passwd applmgr
1.5 Install other Packages

You can install any optional packages based on the requirement. I will be installing below:

yum install telnet

1.6 Verify Kernel Parameters and User Limits

Preinstall RPMs configure all the required prerequisites for the Oracle user such as Kernel Parameters
related to Shared Memory, Semaphore settings and User Limits.

Verify: /etc/sysctl.conf and /etc/security/limits.d/<*>.conf files

These should have already been updated by the pre-install RPMs installed.

1.7 Disable Firewall

Based on your requirement, you can disable the firewall to ensure that the connectivity between
application and database does not have any issues. In real-time, organizations usually open only specific
ports for connectivity.

systemctl stop firewalld


systemctl disable firewalld

1.8 Configure oraInst.loc

Oracle Central Inventory stores the information about all the Oracle Software installed on the system.
The location of the Central Inventory is stored in /etc/oraInst.loc. Create the file as below:

vi /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
chmod 777 /etc/oraInst.loc

1.9 Run orachk (Optional)

You can download orachk tool from “My Oracle Support” and run it. This is optional.

https://support.oracle.com/rs?type=doc&id=1268927.2
./orachk -profile preinstall

1.10 Check Documentation

If you need more details related to a different operating system etc., please refer to Oracle
Documentation i.e. https://docs.oracle.com

Some links:

https://docs.oracle.com/en/database/oracle/oracle-database/index.html

For 12c:

https://docs.oracle.com/database/121/nav/portal_11.htm

For 19c:

https://docs.oracle.com/en/database/oracle/oracle-database/19/install-and-upgrade.html

You might also like