Вы находитесь на странице: 1из 21

Oracle 12c installation on Oracle Linux release-6 (64-bit)

Published 5 months ago by jignesh jethwa

Here we are installing Oracle 12c Release-1 (12.1)(64-bit) on Oracle Linux release-6 (64-bit)
Pre-requisite installation check on CentOS:
# yum install oracle-rdbms-server-12cR1-preinstall -y

Minimum swap size 2GB.


IP Tables off.
SELinux set to permissive.
// Ensure swap size by issuing following command, if swap size do not meet minimum requirement then increase
it.
[root@localhost ~]# free -m
total used free shared buffers cached
Mem: 855 712 142 0 24 491
-/+ buffers/cache: 196 659
Swap: 2015 0 2015

// uname -a:
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Wed Nov 20 23:56:07 PST 2013 x86_64 x86_64
x86_64 GNU/Linux

// Redhat release:
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)

// Update host file /etc/hosts with fully qualified name like below:
Syntax:
<IP-address> <fully-qualified-machine-name> <machine-name>
Ex:
115.xxx.xxx.xxx OL12c.localdomain OL12c
Note:
In my case OL12c.localdomain is fully qualified name with machine name.

// Append following lines in the /etc/sysctl.conf file:


fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500

// To make above changes persistent, issue the following command:


[root@OL12c ~]# sysctl -p
OR
[root@OL12c ~]# /sbin/sysctl -p

// Append following lines to the /etc/security/limits.conf file:


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

// Install following packages:


[root@OL12c ~]# yum install binutils compat-libcap1 compat-libstdc++-33.x86_64 compat-libstdc++-33.i686 gcc

gcc-c++ glibc glibc.i686 glibc-devel glibc-devel.i686 ksh libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++devel libstdc++-devel.i686 libaio libaio.i686 libaio-devel libaio-devel.i686 libXext libXext.i686 libXtst libXtst.i686
libX11 libX11.i686 libXau libXau.i686 libxcb libxcb.i686 libXi libXi.i686 make sysstat unixODBC unixODBCdevel -y

// Create groups & add users:


groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
useradd -u 54321 -g oinstall -G dba,oper oracle

// Set the password for the oracle user:


[root@OL12c ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.

// Modify SELINUX flag in /etc/selinux/config file as below:


SELINUX=permissive

// Restart server and issue following command to make above changes persistent:
[root@OL12c ~]# setenforce Permissive

// Disable IP tables:
[root@OL12c ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]

// To make above changes persistent, issue following command:


[root@OL12c ~]# chkconfig iptables off
[root@OL12c ~]# service iptables status
iptables: Firewall is not running.

// Create directory like below for oracle software installation:


[root@OL12c ~]# mkdir -p /u01/app/oracle/product/12.1.0/db_1
[root@OL12c ~]# chown -R oracle:oinstall /u01
[root@OL12c ~]# chmod -R 775 /u01

// Configure VNC-Server to get GUI prompt.


// Click here to Download Oracle 12c R1 software.
// Unzip it.

// On GUI, open terminal prompt as a root user & issue the following command:
[root@OL12c ~]# xhost +
access control disabled, clients can connect from any host
[root@OL12c ~]# su oracle

// Run oracle universal installer and follow the steps below:


[oracle@OL12c ~]$ ./runInstaller

Oracle 12c installation on Oracle Linux release 6 runInstaller

Oracle 12c installation on Oracle Linux release 6

Oracle 12c installation on Oracle Linux release 6 Configure Security Updates

Oracle 12c installation on Oracle Linux release 6 Email Address Not Specified

Oracle 12c installation on Oracle Linux release 6 Download Software Updates

Oracle 12c installation on Oracle Linux release 6 Select Installation Option

Oracle 12c installation on Oracle Linux release 6 System Class

Oracle 12c installation on Oracle Linux release 6 Grid Installation Option

Oracle 12c installation on Oracle Linux release 6 Select Install Type

Oracle 12c installation on Oracle Linux release 6 Typical Install Configuration

Oracle 12c installation on Oracle Linux release 6


Note: Provide password according to oracle standards.

Oracle 12c installation on Oracle Linux release 6 Create Inventory

Oracle 12c installation on Oracle Linux release 6 Performed Prerequisite Check


Note: Change kernel parameter according to requirement & provide sufficient Physical Memory to continue
installation.

Oracle 12c installation on Oracle Linux release 6 summary

Oracle 12c installation on Oracle Linux release 6 Install Product

Oracle 12c installation on Oracle Linux release 6 Install Product

Oracle 12c installation on Oracle Linux release 6 Execute Configuration Scripts

// Logged in as root and run following script as below:


[root@OL12c ~]# cd /u01/app/oraInventory/
[root@OL12c oraInventory]# ./orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@OL12c oraInventory]# cd /u01/app/ora
oracle/ oraInventory/
[root@OL12c oraInventory]# cd /u01/app/oracle/product/12.1.0/dbhome_1/
[root@OL12c dbhome_1]# ./root.sh
Performing root user operation for Oracle 12c
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/12.1.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin
Copying oraenv to /usr/local/bin
Copying coraenv to /usr/local/bin

Creating /etc/oratab file


Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.

Oracle 12c installation on Oracle Linux release 6 Database Configuration Assistant

Oracle 12c installation on Oracle Linux release 6 Finish

// After installation completed, export oracle environment variable by Oracel user to access sql prompt as
below:
[oracle@OL12c ~]$ export ORACLE_SID=orcl
[oracle@OL12c ~]$ export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1/
[oracle@OL12c ~]$ export PATH=$PATH:/u01/app/oracle/product/12.1.0/dbhome_1/bin/
[oracle@OL12c ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Wed Mar 5 17:53:41 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Note:
Set oracle environment variable to /home/oracle/.bash_profile file so that no need to set it again while next login
to oracle user.

// If you wish to start your databases on every reboot then make following changes in /etc/oratab file for all
databases.
orcl:/u01/app/oracle/product/12.1.0/dbhome_1:Y

// By above steps you can install Oracle 12.1c on OEL-6.

Вам также может понравиться