12c on RHEL7

50
STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7 Introduction This document describe steps to to Install Redhat Enterprise Linux 7 and then using this OS to install Oracle Database 12.1.0.2. Environment:- Operating System: Redhat Enterprise Linux 7 Database: - 12.1.0.2 Software Needed:- 1. Oracle Database 12.1.0.2 Downloaded from here. 2. Redhat Enterprise Linux 7.

Transcript of 12c on RHEL7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Introduction

This document describe steps to to Install Redhat Enterprise Linux 7 and then using this OS to install

Oracle Database 12.1.0.2.

Environment:-

Operating System: Redhat Enterprise Linux 7

Database: - 12.1.0.2

Software Needed:-

1. Oracle Database 12.1.0.2 Downloaded from here.

2. Redhat Enterprise Linux 7.

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

About the Author

Osama Mustafa has progressive experience in Oracle Products, community. He recently served as

Oracle Database Administrator.

Provide Database Implementation Solutions, High Availability Solution, Infrastructure and Storage

Planning, Install, Configure, Implement and manage Oracle E-Business Suite environments. Architect,

build and support highly-available Oracle EBS, Database and Fusion Middleware environments including

appropriate reporting, Installs, configures, upgrades, tunes, and maintains production, development and

test databases.

He entered Oracle ACE Program in 2013, he is author for the book Oracle Penetration Testing, Osama

Mustafa Certified OCP 10g,11g, Linux Implementations , Certified Ethical hacker and LPT , and Solaris

Administrator.

Include to all this Osama Mustafa is international Speaker in Oracle User Group and Oracle OTN Tour,

Published Online Articles in His blog about Oracle Technology, Volunteer in Oracle User Group such as

IOUG, ODTUG and UKOUG , Volunteer Board member in RACSIG and Organizer for RACATTACK

Event around the world. Recently his article has been published on OTECH magazine about Real

Application Cluster Here.

Twitter: @OsamaOracle G+: Osama Mustafa SlidShare: Osama Mustafa LinkedIn: http://www.linkedin.com/in/osamamustafa Blog: https://osamamustafa.blogpsot.com.

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

This document provided with Screenshots follow the pictures Good Luck

Welcome Screen, Choose The Language you would like to continue your setup :-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

In Redhat 7 you can prepare the installation in one screen as you see from the below picture:-

Press on the First Option Date & Time:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Second Option, Keyboard language:-

Ethernet Card Configuration and Hostname :-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Now the Package installation:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

The Hard Disk Configuration and Create Custom File System:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Now we are ready to press next.

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Set The Root Password By Pressing “Root Password”:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Press Reboot

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Congratulation Done.

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Now the operating system is ready to install oracle database 12.1.0.2 but we need to perform some pre

requisites before install Oracle Database or you can do it by “Fix & Check Again”

Regarding to Oracle documentation:-

Group and oracle User:-

groupadd -g 54321 oinstall groupadd -g 54322 dba groupadd -g 54323 oper groupadd -g 54324 backupdba groupadd -g 54325 dgdba groupadd -g 54326 kmdba groupadd -g 54327 asmdba groupadd -g 54328 asmoper groupadd -g 54329 asmadmin

useradd -u 54321 -g oracle -G dba,oper oracle password oracle

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Packages:-

binutils-2.23.52.0.1-12.el7.x86_64 compat-libcap1-1.10-3.el7.x86_64 gcc-4.8.2-3.el7.x86_64 gcc-c++-4.8.2-3.el7.x86_64 glibc-2.17-36.el7.i686 glibc-2.17-36.el7.x86_64 glibc-devel-2.17-36.el7.i686 glibc-devel-2.17-36.el7.x86_64 ksh libaio-0.3.109-9.el7.i686 libaio-0.3.109-9.el7.x86_64 libaio-devel-0.3.109-9.el7.i686 libaio-devel-0.3.109-9.el7.x86_64 libgcc-4.8.2-3.el7.i686 libgcc-4.8.2-3.el7.x86_64 libstdc++-4.8.2-3.el7.i686 libstdc++-4.8.2-3.el7.x86_64 libstdc++-devel-4.8.2-3.el7.i686 libstdc++-devel-4.8.2-3.el7.x86_64 libXi-1.7.2-1.el7.i686 libXi-1.7.2-1.el7.x86_64 libXtst-1.2.2-1.el7.i686 libXtst-1.2.2-1.el7.x86_64 make-3.82-19.el7.x86_64 sysstat-10.1.5-1.el7.x86_64

Download the package using rpm –ivh Package-name.

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Now edit the following file & add these line:- vi /etc/sysctl.conf

fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 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

/sbin/sysctl –p Edit the below File and change the following:- vi /etc/sysconfig/selinux

# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive

Disable Firewall

systemctl stop firewalld systemctl stop firewalld

Create oracle installation directory:-

mkdir -p /u01/app/oracle/product/12.1.0/db_1 chown -R oracle:oinstall /u01 chmod -R 775 /u01

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Edit the Profile Parameter file:- vi /etc/security/limits.conf

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

Enable it to all the users:-

vi /etc/security/limits.d/20-nproc.conf * soft nproc 1024 to * - nproc 16384

Finally Edit .bash_profile :-

export ORACLE_UNQNAME=orcl export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1 export ORACLE_SID=orcl export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH

Now everything is ready Follow the below screens:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

The Binary has been installed successfully without any problem lets continue to create listener:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Listener created successfully run dbca command to create database:-

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

STEPS TO INSTALL ORACLE DATABASE 12.1.0.2 ON REDHAT 7

Done … To Be continue with more advanced topics