oracle 11gr2 two node step by step installation guide on ... · pdf filemohamed azar || dba,...
TRANSCRIPT
![Page 1: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/1.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 1
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 [email protected]
![Page 2: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/2.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 2
Please check my rac install guide on vmware server, If you have question.
http://mohamedazar.wordpress.com/2011/07/27/oracle-11gr2-two-node-
real-application-cluster-installation-step-by-step-guide-on-linux-using-vmware-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=vmware%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.
![Page 3: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/3.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 3
Select 2GB RAM minimum Create new hard disk
![Page 4: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/4.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 4
Choose hard disk location
Start Linux Installation…
![Page 5: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/5.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 5
IP Address Configuration
![Page 6: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/6.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 6
Here subnetmask is 255.255.255.0
![Page 7: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/7.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 7
![Page 8: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/8.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 8
![Page 9: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/9.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 9
Linux Installation completed successfully.
Install Guest Additions
![Page 10: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/10.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 10
After installed guest additions successfully, just restart the server.
Oracle Installation Prerequisites.
![Page 11: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/11.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 11
Edit Hosts (Public ipaddress 192.68.2.102 for racnode2, not 182)
Kernel Parameter /etc/sysctl.conf
/etc/security/limits.conf
![Page 12: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/12.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 12
/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
![Page 13: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/13.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 13
Directory create
Bash_profile as oracle user.
[root@racnode1 ~]# su - oracle
[oracle@ racnode1 ~]$vi .bash_profile
RPM Packages
![Page 14: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/14.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 14
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
![Page 15: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/15.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 15
Do It as same again procedure for other remaining Disks.
ASMLIB Install
![Page 16: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/16.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 16
Shutdown NODE 1 machine.
![Page 17: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/17.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 17
[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.
![Page 18: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/18.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 18
Attach shared disks to racnode2 machine.
![Page 19: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/19.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 19
![Page 20: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/20.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 20
Edit .bash_profile for racnode2.
Edit hosts
![Page 21: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/21.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 21
Ping ipaddress both node
ssh configure
racnode1
racnode2
![Page 22: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/22.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 22
racnode1
racnode2
![Page 23: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/23.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 23
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.
![Page 24: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/24.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 24
Grid Infrastructure installation
![Page 25: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/25.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 25
![Page 26: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/26.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 26
![Page 27: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/27.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 27
![Page 28: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/28.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 28
![Page 29: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/29.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 29
![Page 30: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/30.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 30
Execute both root scripts on both node one by one.
![Page 31: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/31.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 31
Do it as same like racnode2 also.
![Page 32: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/32.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 32
Grid Infrastructure installation completed successfully.
Database Software Install
![Page 33: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/33.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 33
![Page 34: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/34.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 34
![Page 35: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/35.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 35
![Page 36: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/36.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 36
![Page 37: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/37.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 37
![Page 38: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/38.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 38
Run the above root scripts on both node.
Check whether the created database on both node working properly or not.
racnode1
![Page 39: Oracle 11gR2 two node step by step installation guide on ... · PDF fileMohamed Azar || DBA, Blogger, Contributor, Book Reviewer Page 1 Oracle 11gR2 two node step by step installation](https://reader035.vdocuments.mx/reader035/viewer/2022062306/5a77fcd07f8b9a1b688e620b/html5/thumbnails/39.jpg)
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 39
racnode2