Simple Installation of Oracle RAC 11gR2 on OEL 6

Embed Size (px)

Citation preview

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    1/100

    Step by Step Install of Oracle RAC 11gR2 on OEL 6.5 on Oracle VM Virtual BOX

    Here I am listing out the steps to install 11gR2 RAC on OS OEL6.5 on Oracle VM Virtual BOX.

    Step1:

    Create new Virtual BOX VM. Click on new and provide Name as rac1 type as Linux and version as Oracle 64bit. Click Next

    Step2:Set Base Memory to 3072 MB, then click the "Next" button

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    2/100

    Step3:Accept the default option to create a new virtual hard disk by clicking the "Create" button

    Step:4 Select the default VMDK type and click the "Next" button on the Create Virtual Hard Drive screen

    Step5: Select Dynamically Allocated and select option split into files of less than 2gb Click next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    3/100

    Step6: Provide the location where you want to save the VM files. In my case I have provided path as below. Also increase the

    size of your vm from default to say 50GB and Click Create

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    4/100

    Once we click on Create we get rac1 vm created as highlighted below:

    Step7:Click on General->Advanced and change shared clipboardto Bidirectional and Change Drag nDrop to Bidirectional

    and click Ok

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    5/100

    Step8: Click on Network

    Add three Adaptors.

    a. Make sure "Adapter 1" is enabled, attached to "Internal Network" or "Host-only Adapter". This interface will be

    used for public network, for example, for connection to the RAC datbase from other applications. More about

    networking will be explained later. On the screenshot below "Internal Network" is selected and name "pubnet"

    was given to this network

    b.Then click on the "Adapter 2" tab. Make sure "Adapter 2" is enabled and attach to "Internal Network". Name this

    network "privnet":

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    6/100

    Then finally click on the "Adapter 3", enable it, and attach to "Bridged Adapter" or "NAT". This adapter will be used for

    nternet. Then press "OK" button

    Step:9 Click on storage

    Step10:Select OEl6.5 ISO and click ok

    Step11 Click on Shared Folder

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    7/100

    Now we can see shared folders with 1 value. It Means we are sharing a folder/drive from Host machine to Guest.

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    8/100

    Step12: Click on Start as shown below

    Step13. After starting we get below screen and select Install or Upgrade an Existing System.

    Step14: Select skip

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    9/100

    Step15:Scroll Down and click NEXT

    Step16: Click Next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    10/100

    Step17:Click Next

    Step18: Select basic Storage and click Next

    Step19: Select Discard any Data

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    11/100

    Step20: Change the hostname as below(not mandatory that it should be same as below

    Scroll down and click on Configure Network

    Step20:Select System eth0 and click on edit

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    12/100

    Step21: Select Connect Automatically and select IPV4 Setting

    Step22: Make sure that "Connect automatically" is checked. Select "IPv4 Settings" tab; change Method to "Manual";

    Press "Add" and fill Address: 192.168.56.71; Netmask: 255.255.255.0; Gateway: 0.0.0.0. Press "Apply" then done:

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    13/100

    Step23: Now select System eth1 and click on edit

    Step24: In the Network Connections screen select "System eth1" interface, this will be used for private network, then

    press "Edit". Then check the box "Connect automatically". Select "IPv4 Settings" tab; change Method to "Manual". Press

    Add" and fill Address: 192.168.10.1; Netmask: 255.255.255.0; Gateway: 0.0.0.0. When done, press "Apply":

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    14/100

    Step25: Finally select "System eth2" interface, this will be used for Internet, then press "Edit". Check the box "Connect

    automatically". Select "IPv4 Settings" tab make sure the Method is set to "Automatic (DHCP)".Press "Apply" button:

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    15/100

    Step26: Click Next

    Step27:Give password for root

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    16/100

    Step28:

    Step29:Click next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    17/100

    Step30:Select on Format

    Step31:Select Write Changes to disk

    Step32:Click Next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    18/100

    Step33: Select Database Server option and select Customize now and Click Next

    Step34:Select Tiger VNC (Not Manadatory). I sometimes prefer using vnc

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    19/100

    Step35:Select options as below for Desktop and Click Next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    20/100

    NOW Sit and Relax.

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    21/100

    We are done with the installation of OEL 6.5: Click Reboot.

    36:After Reboot: Click on Forward

    37:Licence Info: Click Forward

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    22/100

    Step38:Click Forward

    Click39:

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    23/100

    Step40:Click Forward

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    24/100

    Step41:Click Forward

    Step42:Click Finish

    Step43:Login into the Server using root

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    25/100

    First of all check whether we can connect to the internet or not

    will use putty to connect to Guest Linux.

    Change the /etc/hosts entries as below

    # Public

    192.168.56.71 rac1.localdomain rac1192.168.56.72 rac2.localdomain rac2

    # Private

    192.168.10.1 rac1-priv.localdomain rac1-priv

    192.168.10.2 rac2-priv.localdomain rac2-priv

    # Virtual

    192.168.56.81 rac1-vip.localdomain rac1-vip

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    26/100

    192.168.56.82 rac2-vip.localdomain rac2-vip

    # SCAN

    192.168.56.91 rac-scan.localdomain rac-scan

    192.168.56.92 rac-scan.localdomain rac-scan

    192.168.56.93 rac-scan.localdomain rac-scan

    Step44: Install Virtual BOX Software

    Step45:Click OK

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    27/100

    Step47:Click on RUN

    Ste48: It is failed

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    28/100

    HERE>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.

    Step50: Follow my previous post

    http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unable-

    o-find-the-sources-of-your-current-linux-kernel-specify-kern_dir/

    To overcome this error update gcc using

    1.yum update gcc

    2. yum update

    3. yum install kernel-uek-devel

    http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir/http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir/http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir/http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir/http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir/
  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    29/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    30/100

    Say Yes

    Once this is installed Reboot the Server.

    Once again try to install VM tools

    Lets see what happens this time

    This time it went fine now reboot the server

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    31/100

    Reboot.

    Purpose we will be able to view the shared folders in Linux Guest.

    Step51:Now we need to disable the firewall: Linux Main menu | System | Administration | Firewall. Click on "Disable"

    con, then on "Apply".

    Stop and Disable

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    32/100

    Step52: Copy the software from shared folder to tmp and change the permissions to read write execute on zip files

    Step53: Install oracle-rdbms-server-11gR2-preinstall using yum

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    33/100

    Step54:

    Select Y

    nstall ASM packages as below

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    34/100

    groupadd -g 1000 oinstallgroupadd -g 1200 dbauseradd -u 1100 -g oinstall -G dba oraclepasswd oracle

    Passwd oracle

    Create Passwd for oracle user

    Step54: Create the directory in which the Oracle software will be installed.

    mkdir -p /u01/app/11.2.0.3/grid

    mkdir -p /u01/app/oracle/product/11.2.0.3/db_1

    chown -R oracle:oinstall /u01

    chmod -R 775 /u01/

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    35/100

    Step55:Disable secure linux by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.

    SELINUX=disabled

    Change Enforcing to disabled

    Add or amend the following lines to the "/etc/sysctl.conf" file.

    s.aio-max-nr = 1048576s.file-max = 6815744#kernel.shmall = 2097152#kernel.shmmax = 1054504960kernel.shmmni = 4096

    # semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586Run the following command to change the current kernel parameters.

    sbin/sysctlp

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    36/100

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

    oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 4096oracle hard nofile 65536oracle soft stack 10240

    # service iptables stop# chkconfig iptables off

    Step57:Either configure NTP, or make sure it is not configured so the Oracle Cluster Time Synchronization Service (ctssd)can synchronize the times of the RAC nodes. If you want to deconfigure NTP do the following.

    # service ntpd stopShutting down ntpd: [ OK ]# chkconfig ntpd off# mv /etc/ntp.conf /etc/ntp.conf.orig# rm /var/run/ntpd.pid

    f you want to use NTP, you must add the "-x" option into the following line in the "/etc/sysconfig/ntpd" file.

    OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"

    Then restart NTP.

    # service ntpd restart

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    37/100

    Now we will shut down the server as we need to add asm disks. Before we add asm disks. We will backup our vm

    Backup VM.

    Click File export Appliance

    Select our VM and click next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    38/100

    Save to some location

    Click next and click export

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    39/100

    Ok We done with the backup now add disks for ASM storage.

    TO add disks click on storage

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    40/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    41/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    42/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    43/100

    Add ASMDISK3 as well

    Now Restore the Backup that was taken earlier and change it as Rac2

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    44/100

    Change the name as Rac2

    Scroll down

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    45/100

    Click Import

    After import we got RAC2 VM

    Change the disks to shared that were created earlier for ASM

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    46/100

    Do the same for all theASMDISKs

    Now once this is done click on RAC2 Vm and Storage

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    47/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    48/100

    Do the same for other two disks

    Start the RAC2 VM

    f we see here it is still rac1. Hostname has to be changed

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    49/100

    Change the domain

    Change the IP addresses

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    50/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    51/100

    Reboot

    f there is any problem then restart network services

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    52/100

    Service network restart

    Now check whether you are able to ping the hosts as below from rac1

    Now repeat for rac2 as well.

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    53/100

    nstall Oracleasmlib. I have downloaded file from

    http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html

    http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.htmlhttp://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.htmlhttp://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html
  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    54/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    55/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    56/100

    Do the same with other storage devices i.e for /dev/sdc and /dev/sdd

    Configure OracleASM

    Configure ASMLib using the following command.

    # oracleasm configure -i

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    57/100

    Do the same on rac2 as well

    /usr/sbin/oracleasm init

    On RAC2

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    58/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    59/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    60/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    61/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    62/100

    Click on SSH Connectivity..

    Give the password for grid and click next

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    63/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    64/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    65/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    66/100

    Okay we see some issues with RPMs

    Lets install one after the other using yum

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    67/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    68/100

    Now we have 3 issues

    1. Asm

    2. Ntp issue--ignore

    3. Resolve.conf---ignore

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    69/100

    1.ASM

    Here the issue is with group. Installation is looking for oinstall group for disks.

    Lets check the group on the server

    Repeat the same on RAC2 server as well

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    70/100

    Now Issue with ASM is resolved now we will move on to second issue

    2.NTP

    f you want to use NTP, you must add the "-x" option into the following line in the /etc/sysconfig/ntpd file.

    OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    71/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    72/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    73/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    74/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    75/100

    Start running orainstRoot.sh on rac1 first

    On RAC2

    Root.sh on RAC1

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    76/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    77/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    78/100

    On RAC2 Now:

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    79/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    80/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    81/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    82/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    83/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    84/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    85/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    86/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    87/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    88/100

    SCAN Issue can be resolved using below

    root@rac1]# mv /usr/bin/nslookup /usr/bin/nslookup.original

    Next, create a new shell script named /usr/bin/nslookup as shown below while

    eplacing 24.154.1.34 with your primary DNS, rac-scan with your

    SCAN host name, and 192.168.56.91 with your SCAN IP address:

    #!/bin/bash

    HOSTNAME=${1}

    f [[ $HOSTNAME = "racnode-cluster-scan" ]]; then

    echo "Server: 24.154.1.34"

    echo "Address: 24.154.1.34#53"

    echo "Non-authoritative answer:"

    echo "Name: racn-scan"

    echo "Address: 192.168.56.91 "

    else

    /usr/bin/nslookup.original $HOSTNAME

    Fi

    Finally, change the new nslookup shell script to executable:root@rac1 ~]# chmod 755 /usr/bin/nslookup

    Remember to perform these actions on both Oracle RAC nodes.

    The new nslookup shell script simply echo's back your SCAN IP address whenever the CVU calls nslookup with your SCAN

    host name; otherwise, it calls the original nslookup binary. The CVU will now pass during the Oracle grid infrastructure

    nstallation when it attempts

    o verify your SCAN:

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    89/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    90/100

    Checkagain will not work so need to run runInstaller again.

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    91/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    92/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    93/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    94/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    95/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    96/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    97/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    98/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    99/100

  • 7/22/2019 Simple Installation of Oracle RAC 11gR2 on OEL 6

    100/100