> Red Hat Enterprise Linux Server release 6*
> Oracle Linux 6*
Download Oracle Database 12c Release 1 Enterprise/Standard Edition for Linux x86-64: http://www.oracle.com/technetwork/datab ... 59253.html
Directions:
1. All files are in the .zip format. There is an unzip utility here (updates.oracle.com/unzips/unzips.html) if you need one.
2. Download and unzip both files to the same directory.
3. Installation guides and general Oracle Database 12c documentation are here: http://www.oracle.com/technetwork/datab ... index.html.
Check Server Hardware and Memory Configuration
Determine the physical RAM size:
[root@localhost ~]# grep MemTotal /proc/meminfo
Minimum: 1 GB of RAM
Recommended: 2 GB of RAM or more
***Note: If the size of the RAM is less than the required size, then you must install more memory before continuing.
Determine the size of the configured swap space:
[root@localhost ~]# grep SwapTotal /proc/meminfo
Swap Space Requirement for Linux:
> For RAM Between 1 GB and 2 GB, Swap space is 1.5 times the size of the RAM.
> For RAM Between 2 GB and 16 GB, Swap space is Equal to the size of the RAM
> For More than 16 GB of RAM, Swap space is 16 GB
Determine the amount of space available in the /tmp directory:
[root@localhost ~]# df -h /tmp
> 1 GB of space in the /tmp directory. Adjust the size if needed or delete unnecessary files. Oracle Universal Installer (OUI) requires up to 1 GB of free space in the /tmp directory
> Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type
> 1.2 GB of disk space for a preconfigured database that uses file system storage (optional)
Determine the amount of free disk space on the system:
[root@localhost ~]# df -h
Determine the system architecture: Should be: x86_64
[root@localhost ~]# uname -m
x86-64 Supported Linux 6 Operating System Requirements
Oracle Linux 6:
Oracle Linux 6 with the Unbreakable Enterprise kernel: 2.6.39-200.24.1.el6uek.x86_64 or later
Oracle Linux 6 with the Red Hat Compatible kernel: 2.6.32-71.el6.x86_64 or later
Red Hat Enterprise Linux 6:
Red Hat Enterprise Linux 6: 2.6.32-71.el6.x86_64 or later
Red Hat Enterprise Linux 6 with the Unbreakable Enterprise Kernel: 2.6.32-100.28.5.el6.x86_64 or later
Packages for Oracle Linux 6 and Red Hat Enterprise Linux 6
The following packages (or later versions) must be installed:
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (i686)
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (i686)
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (i686)
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6 (i686)
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6 (i686)
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (i686)
libXext-1.1 (x86_64)
libXext-1.1 (i686)
libXtst-1.0.99.2 (x86_64)
libXtst-1.0.99.2 (i686)
libX11-1.3 (x86_64)
libX11-1.3 (i686)
libXau-1.0.5 (x86_64)
libXau-1.0.5 (i686)
libxcb-1.5 (x86_64)
libxcb-1.5 (i686)
libXi-1.3 (x86_64)
libXi-1.3 (i686)
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
unixODBC-2.2.14-11.el6
unixODBC-devel-2.2.14-11.el6
oracleasm-support-2.1.8-1.el6.x86_64.rpm
[root@localhost ~]# cd /media/OL6.4 x86_64 Disc 1 20130225/Server/Packages
[root@localhost Packages]# rpm -Uvh [package_name]
Display Requirements
1024 x 768 or higher
Check the Software Requirements
Determine the distribution and version of Linux installed:
[root@localhost ~]# cat /etc/oracle-release
[root@localhost ~]# cat /etc/redhat-release
[root@localhost ~]# lsb_release -id
Determine whether the required kernel errata is installed:
[root@localhost ~]# uname -r
e.g. 2.6.39-400.17.1.el6uek.x86_64
Install the cvuqdisk RPM for Linux
To install the cvuqdisk RPM, complete the following procedure:
Locate the cvuqdisk RPM package, which is in the directory rpm on the Oracle Database installation media.
Log in as root.
Set the environment variable CVUQDISK_GRP to point to the group that owns cvuqdisk, typically oinstall, for example:
[root@localhost ~]# CVUQDISK_GRP=oinstall; export CVUQDISK_GRP
[root@oel6u4x64 grid_staging]# cd grid_staging/grid/rpm
[[root@oel6u4x64 grid_staging]# rpm -Uvh cvuqdisk-1.*
Check Shared Memory File System Mount on Linux x86-64
Ensure that the /dev/shm mount area is of type tmpfs and is mounted with the following options:
With rw and execute permissions set on it
With noexec or nosuid not set on it
Use the following procedure to check the shared memory file system:
Check the current mount settings. For example:
[root@localhost ~]# more /etc/fstab |grep "tmpfs"
tmpfs /dev/shm /tmpfs defaults 0 0
If necessary, change the mount settings. For example, log in as root, open the /etc/fstab file with a text editor, and modify the tmpfs line:
tmpfs /dev/shm /tmpfs rw, exec 0 0
Set the ORACLE_HOSTNAME Environment Variable
Change the desired Hostname:
[root@localhost ~]# vi /etc/sysconfig/network
The /etc/hosts file must contain the fully qualified host name.NETWORKING=yes
HOSTNAME=oel6u4x64.localdomain
[root@localhost ~]# vi /etc/hosts
Create Required Operating System Groups and Users192.168.56.143 oel6u4x64.localdomain oel6u4x64
Create Oracle inventory owner group:
[root@oel6u4x64 ~]# groupadd oinstall
Create the OSDBA group:
[root@oel6u4x64 ~]# groupadd dba
Create an OSOPER group:
[root@oel6u4x64 ~]# groupadd oper
Create the OSBACKUPDBA group:
[root@oel6u4x64 ~]# groupadd backupdba
Create the OSDGDBA group:
[root@oel6u4x64 ~]# groupadd dgdba
Create the OSKMDBA group:
[root@oel6u4x64 ~]# groupadd kmdba
Create a new OSDBA group for Oracle ASM:
[root@oel6u4x64 ~]# groupadd asmdba
Create an OSOPER group for Oracle ASM:
[root@oel6u4x64 ~]# groupadd asmoper
Create an OSASM group:
[root@oel6u4x64 ~]# groupadd asmadmin
Create an Oracle Software Owner User:
[root@oel6u4x64 ~]# useradd -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,asmadmin oracle
Set the password of the oracle user:
[root@oel6u4x64 ~]# passwd oracle
Create a Grid Infra User:
[root@oel6u4x64 ~]# useradd -g oinstall -G asmadmin ,asmdba,asmoper,dba grid
[root@oel6u4x64 ~]# passwd grid
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
Increase the Resource Limits. Add the following lines to the /etc/security/limits.conf file.SELINUX=permissive
Add or amend the following lines in the "/etc/sysctl.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
grid soft nofile 1024
grid hard nofile 65536
grid soft nproc 2047
grid hard nproc 16384
grid soft stack 10240
grid hard stack 32768
[root@oel6u4x64 ~]# /sbin/sysctl -pfs.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
Create Oracle Base Directory:
[root@oel6u4x64 ~]# mkdir /u01/app/oracle
Create the directories in which the Oracle software will be installed.
[root@oel6u4x64 ~]# mkdir -p /u01/app/oracle/product/12.1.0/db_1
Create the directories where Grid Infrastructure be installed:
[root@oel6u4x64 ~]# mkdir -p /u01/app/oracle/product/12.1.0/grid
[root@oel6u4x64 ~]# chown -R oracle:oinstall /u01
[root@oel6u4x64 ~]# chmod -R 775 /u01
Add the following lines at the end of the "/home/oracle/.bash_profile" file.
[root@oel6u4x64 ~]# vi /home/oracle/.bash_profile
Add the following lines at the end of the "/home/grid/.bash_profile" file.# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=oel6u4x64.localdomain
export ORACLE_UNQNAME=orcl12c
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1
export ORACLE_SID=orcl12c
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
[root@oel6u4x64 ~]# vi /home/grid/.bash_profile
Installing Oracle Grid Infrastructure for a Standalone Server (Oracle Restart)# Grid Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=oel6u4x64.localdomain
export ORACLE_UNQNAME=+ASM1
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0
export ORACLE_SID=+ASM1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
Start Oracle Universal Installer as the Oracle Restart software owner user (grid).
Upload clusterware files (linuxamd64_12c_grid_1of2.zip and linuxamd64_12c_grid_2of2.zip) and unzip.
Run runInstaller
[grid@oel6u4x64 grid]$ cd grid_staging/grid
Verify that the server meets the installation requirements using the command:
[grid@oel6u4x64 grid]$ ./runcluvfy.sh stage -pre hacfg
# ./runInstaller