Oracle 12c Installion On Linux
Oracle 12c Installion On Linux
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
// 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.
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
// 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 ]
// 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
Oracle 12c installation on Oracle Linux release 6 Email Address Not Specified
// 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