Escolar Documentos
Profissional Documentos
Cultura Documentos
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
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
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
Step7:Click on General->Advanced and change shared clipboard to Bidirectional and Change Drag n Drop to Bidirectional and click Ok
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":
Then finally click on the "Adapter 3", enable it, and attach to "Bridged Adapter" or "NAT". This adapter will be used for internet. Then press "OK" button
Now we can see shared folders with 1 value. It Means we are sharing a folder/drive from Host machine to Guest.
Step13. After starting we get below screen and select Install or Upgrade an Existing System.
Step17:Click Next
Step20: Change the hostname as below(not mandatory that it should be same as below
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:
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":
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:
Step28:
Step29:Click next
Step30:Select on Format
Step32:Click Next
Step33: Select Database Server option and select Customize now and Click Next
We are done with the installation of OEL 6.5: Click Reboot. 36:After Reboot: Click on Forward
Step38:Click Forward
Click39:
Step40:Click Forward
Step41:Click Forward
Step42:Click Finish
Change the /etc/hosts entries as below # Public 192.168.56.71 192.168.56.72 # Private 192.168.10.1 192.168.10.2 # Virtual 192.168.56.81
rac1.localdomain rac2.localdomain
rac1 rac2
Step45:Click OK
Step47:Click on RUN
Ste48: It is failed
http://oracleappsdbar12.wordpress.com/2013/11/10/virtualbox-error-tmpvbox-0makefile-include-header97-error-unableto-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
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
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" icon, then on "Apply".
Step52: Copy the software from shared folder to tmp and change the permissions to read write execute on zip files
Step54:
groupadd -g 1000 oinstall groupadd -g 1200 dba useradd -u 1100 -g oinstall -G dba oracle passwd 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
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. fs.aio-max-nr = 1048576 fs.file-max = 6815744 #kernel.shmall = 2097152 #kernel.shmmax = 1054504960 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=1048586 Run the following command to change the current kernel parameters. /sbin/sysctl p
Add the following lines to the "/etc/security/limits.conf" file. oracle oracle oracle oracle oracle soft nproc 2047 hard nproc 16384 soft nofile 4096 hard nofile 65536 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 stop Shutting down ntpd: # chkconfig ntpd off # mv /etc/ntp.conf /etc/ntp.conf.orig # rm /var/run/ntpd.pid
OK
If 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"
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
Ok We done with the backup now add disks for ASM storage. TO add disks click on storage
Now Restore the Backup that was taken earlier and change it as Rac2
Scroll down
Change the disks to shared that were created earlier for ASM
Do the same for all the ASMDISKs Now once this is done click on RAC2 Vm and Storage
Reboot
Service network restart Now check whether you are able to ping the hosts as below from rac1
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
On RAC2
Okay we see some issues with RPMs Lets install one after the other using yum
1.ASM
Here the issue is with group. Installation is looking for oinstall group for disks. Lets check the group on the server
Now Issue with ASM is resolved now we will move on to second issue 2.NTP
If 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"
On RAC2
Root.sh on RAC1
On RAC2 Now:
[root@rac1]# mv /usr/bin/nslookup /usr/bin/nslookup.original Next, create a new shell script named /usr/bin/nslookup as shown below while replacing 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} if [[ $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 installation when it attempts to verify your SCAN: