Oracle 11gR2 two node step by step installation guide on Linux using Virtual Box 4.1.4 Mohamed Azar. Database Administrator, Blogger, Contributor, Book Reviewer http://mohamedazar.wordpress.com reach me at azarmohds@gmail.com DBA, Blogger, Contributor, Book Reviewer Page 1
Please check my rac install guide on vmware server, If you have question. http://mohamedazar.wordpress.com/2011/07/27/oracle-11gr2-two-nodereal-application-cluster-installation-step-by-step-guide-on-linux-usingvmware-server/ Step 1: Pre-requisites Before Start my installation, the below recommanded Memory Configuration needed for you. In this case onle you can smoothly install RAC. If you re plan to Install Two node RAC on your virtual machine, Each node want atleast minimum 2GB RAM as per Oracle 11gR2 Installation recommand. So you need atelast minimum 6GB RAM for your laptop. 4 GB for Virtual Machine, remaining for your windows. Step 2: Download Software Download VMware Server and Install http://downloads.vmware.com/d/info/datacenter_downloads/vmware_server/2_0?hl=en&rlz=&q=vm ware%20server%20download&aq=f&aqi=g10&aql=&oq= Download Oracle Enterprise Linux 32 Bit https://edelivery.oracle.com/linux Download Oracle Software Grid Infrastructure and Database Software http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft- 085393.html Step 3: Install Oracle Enterprise Linux on Virtual Box 4.1.4 Open Virtual Box. DBA, Blogger, Contributor, Book Reviewer Page 2
Select 2GB RAM minimum Create new hard disk DBA, Blogger, Contributor, Book Reviewer Page 3
Choose hard disk location Start Linux Installation DBA, Blogger, Contributor, Book Reviewer Page 4
IP Address Configuration DBA, Blogger, Contributor, Book Reviewer Page 5
Here subnetmask is 255.255.255.0 DBA, Blogger, Contributor, Book Reviewer Page 6
DBA, Blogger, Contributor, Book Reviewer Page 7
DBA, Blogger, Contributor, Book Reviewer Page 8
Linux Installation completed successfully. Install Guest Additions DBA, Blogger, Contributor, Book Reviewer Page 9
After installed guest additions successfully, just restart the server. Oracle Installation Prerequisites. DBA, Blogger, Contributor, Book Reviewer Page 10
Edit Hosts (Public ipaddress 192.68.2.102 for racnode2, not 182) Kernel Parameter /etc/sysctl.conf /etc/security/limits.conf DBA, Blogger, Contributor, Book Reviewer Page 11
/etc/pam.d/login cat /etc/selinux/config The Oracle Cluster Time Synchronization Service (ctssd) can synchronize the times of the RAC nodes. In this case we will reconfigure NTP. User and Group creation DBA, Blogger, Contributor, Book Reviewer Page 12
Directory create Bash_profile as oracle user. [root@racnode1 ~]# su - oracle [oracle@ racnode1 ~]$vi.bash_profile RPM Packages DBA, Blogger, Contributor, Book Reviewer Page 13
Shutdown NODE 1 machine. [root@racnode1 ~]#shutdown h now Create three shared Disk Now Restart the NODE 1 racnode1 machine and after restarted, partition your disks like below DBA, Blogger, Contributor, Book Reviewer Page 14
Do It as same again procedure for other remaining Disks. ASMLIB Install DBA, Blogger, Contributor, Book Reviewer Page 15
Shutdown NODE 1 machine. DBA, Blogger, Contributor, Book Reviewer Page 16
[root@racnode1 ~]#shutdown h now Manually clone the racnode1.vdi disk using the following commands on the host server. Create the "racnode2" virtual machine in VirtualBox in the same way as you did for "racnode1", with the exception of using an existing racnode2.vdi virtual hard drive. Add two network adapters. DBA, Blogger, Contributor, Book Reviewer Page 17
Attach shared disks to racnode2 machine. DBA, Blogger, Contributor, Book Reviewer Page 18
DBA, Blogger, Contributor, Book Reviewer Page 19
Edit.bash_profile for racnode2. Edit hosts DBA, Blogger, Contributor, Book Reviewer Page 20
Ping ipaddress both node ssh configure racnode1 racnode2 DBA, Blogger, Contributor, Book Reviewer Page 21
racnode1 racnode2 DBA, Blogger, Contributor, Book Reviewer Page 22
Cluvfy pre requisites check 11gR2 we would probably use the "runcluvfy.sh" utility in the clusterware root directory to check the prerequisites have been met. DBA, Blogger, Contributor, Book Reviewer Page 23
Grid Infrastructure installation DBA, Blogger, Contributor, Book Reviewer Page 24
DBA, Blogger, Contributor, Book Reviewer Page 25
DBA, Blogger, Contributor, Book Reviewer Page 26
DBA, Blogger, Contributor, Book Reviewer Page 27
DBA, Blogger, Contributor, Book Reviewer Page 28
DBA, Blogger, Contributor, Book Reviewer Page 29
Execute both root scripts on both node one by one. DBA, Blogger, Contributor, Book Reviewer Page 30
Do it as same like racnode2 also. DBA, Blogger, Contributor, Book Reviewer Page 31
Grid Infrastructure installation completed successfully. Database Software Install DBA, Blogger, Contributor, Book Reviewer Page 32
DBA, Blogger, Contributor, Book Reviewer Page 33
DBA, Blogger, Contributor, Book Reviewer Page 34
DBA, Blogger, Contributor, Book Reviewer Page 35
DBA, Blogger, Contributor, Book Reviewer Page 36
DBA, Blogger, Contributor, Book Reviewer Page 37
Run the above root scripts on both node. Check whether the created database on both node working properly or not. racnode1 DBA, Blogger, Contributor, Book Reviewer Page 38
racnode2 DBA, Blogger, Contributor, Book Reviewer Page 39