Oracle 12.1.0.1.0 installation on ORACLE Linux 6

Listed in following sections:
  • Prepare VMWARE machine
  • OS installation 
  • Download Software
  • Oracle mount point addition/creation
  • Unzip Files
  • Hosts File
  • Oracle Installation Prerequisites
  • Installation
  • Post Installation
  • Common Errors


Prepare VMWARE machine : Please create as follows


Post VMmachine creation , need to add mount specific for oracle binary and requested database.

For example:
  • Add hard disk  - oel66401_os - 25GB
  • Add hard disk  - /u01 - size 10 GB
Follow below steps:
      

    

   










Finish..

Follow the same instruction for all below mentioned disk creation with its respective define size.
  • Add hard disk  - /diag - size 5GB
  • Add hard disk  - /oradata - size 20GB
  • Add hard disk  - /oraredo01 - size 5G
  • Add hard disk  - /oraredo02 - size 5G
  • Add hard disk  - /orareco - size 10GB
  • Add hard disk -  /backup  - size 10GB

Post creation of aforementioned disk , VMMACHINE (oel66401) looks like as below:





  • OS installation 
          Download Oracle Linux 6
          Install Oracle Linux 6 with bootable iso image.     
          OracleLinux-R6-U0-Server-x86_64-dvd  

          V38500-01_1of2.zip Oracle Database 12.1.0.1.0 for Linux x86-64, 1.3 GB         
          V38500-01_2of2.zip Oracle Database 12.1.0.1.0 for Linux x86-64, 1.0 GB



         
  • Oracle mount point addition/creation into VMmachine (oel66401)


  [root@oel66401 ~]# fdisk -l|more  Disk /dev/sdb doesn't contain a valid partition table
  Disk /dev/sdc doesn't contain a valid partition table
  Disk /dev/sdd doesn't contain a valid partition table
  Disk /dev/sde doesn't contain a valid partition table
  Disk /dev/sdf doesn't contain a valid partition table
  Disk /dev/sdg doesn't contain a valid partition table
  Disk /dev/sdh doesn't contain a valid partition table

Formatting aforementioned disk and mounting
/dev/sdb as follows


after that :


    
    Finally making an entry into /etc/fstab (to mount automatically at the time of every system starts)


Follow the same instruction for other unformatted disk
/dev/sdc  
/dev/sdd,
/dev/sde,
dev/sdf,
/dev/sdg,
/ev/sdh

Post successful completion of disk addition steps , will look like :


  • Unzip Files
    Go to software location folder and then unzip files
.

    we should now have a single directory called "database" containing installation files.


  •    Hosts File
             In my case DHCP enabled, which is taking ip address dynamically. 
             In other case, if you want to fix the ip of your machine, please make an entry into  
             /etc/hosts file. (must contain fully qualified name)


           The "/etc/hosts" file must contain a fully qualified name for the server.
           <IP-address>  <fully-qualified-machine-name>  <machine-name>
          
           For example.
           127.0.0.1       localhost.localdomain  localhost

           192.168.1.210   ol66401.localdomain    ol66401
  • Oracle Installation Prerequisites
Manual Setup : 

1.  Add or amend the 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

Execute the below command to change the current kernel parameters.

sysctl -p


2. Add the following lines to the "/etc/security/limits.conf" file.

oracle   soft   nofile    1024
oracle   hard   nofile    65536
oracle   soft   nproc    16384
oracle   hard   nproc    16384
oracle   soft   stack    10240
oracle   hard   stack    32768
  
3. Install the following packages if they are not already present :

go to media software location/Packages

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)

*Install the following packages if they are not already present..
# From Public Yum or ULN
yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y

yum install unixODBC-devel -y

4. Create the new groups and users.

groupadd -g 502 oinstall
groupadd -g 503 dba
groupadd -g 504 oper

to verify , cat /etc/group

 useradd -u 505 -g oinstall -G dba,oper oracle

id oracle

[root@oel66401 home]# id oracle
uid=505(oracle) gid=502(oinstall) groups=502(oinstall),503(dba),504(oper)

5. Additional Setup
  • Set the password for the "oracle" user
[root@oel66401 home]# 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.
[root@oel66401 home]#

  • Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
         SELINUX=permissive


  • Create the directories in which the Oracle software will be installed. Accordingly assign the permission to oracle binary owner
[root@oel66401 home]# mkdir -p /u01/app/oracle/product/12.1.0.1.0/db_1
[root@oel66401 home]# chown -R oracle:oinstall /u01
[root@oel66401 home]# chmod -R 775 /u01
  • Add the following lines at the end of the "/home/oracle/.bash_profile" file.
[root@oel66401 ~]# cat /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=oel66401
export ORACLE_UNQNAME=cdb1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1.0/db_1
export ORACLE_SID=cdb1
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

6. Installation
Log into the oracle user. If you are using X windows/xming then set the DISPLAY environmental variable.
example:
DISPLAY=<machine-name>:0.0; export DISPLAY

DISPLAY=oel66401:0.0; export DISPLAY

Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.





   See above, failed and warning reported.
   Hard limit can be fixable , click Fix & Check again button. 
   will ask to run /tmp/CVU_12.1.0.1.0_oracle/runfixup.sh , ref as below

  Follow the below mentioned instruction :

 1. Open a terminal window
 2. Login as 'root'
 3. Run the command
 4. Return to this window and click 'OK' to continue.

Completion message will come like :

[root@oel66401 ~]# sh  /tmp/CVU_12.1.0.1.0_oracle/runfixup.sh
All Fix-up operations were completed successfully.


   See. first error got resolved.

  we can skip the warning or can fix by installing asked rpm.

 let try to install missing rpms:

* go to OS software location
[root@oel66401 Packages]# pwd
/media/OL6.0 x86_64 Disc 1 20110203/Packages
[root@oel66401 Packages]#



   See, post installation of ksh-20100621-2.el6.x86_64.rpm , error goes off

  will fix next one:
    

Click button "Check again" , error goes off



   Now click on "Install"



    [root@oel66401 Packages]# sh /u01/app/oraInventory/orainstRoot.sh


    [root@oel66401 Packages]# sh /u01/app/oraInventory/orainstRoot.sh

    Press "OK"
    




Comments

Popular posts from this blog

Supported oracle database upgrade path

Oracle Linux Server 6.0 readiness for Oracle Binary

11.2.0.1 oracle installation on Oracle Linux 6