Oracle 11gR2 two node step by step installation guide on Linux
Transcript of Oracle 11gR2 two node step by step installation guide on Linux
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]
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.
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 3
Select 2GB RAM minimum Create new hard disk
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 4
Choose hard disk location
Start Linux Installation…
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 5
IP Address Configuration
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 6
Here subnetmask is 255.255.255.0
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 7
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 8
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 9
Linux Installation completed successfully.
Install Guest Additions
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.
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
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
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
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
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
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 16
Shutdown NODE 1 machine.
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.
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 18
Attach shared disks to racnode2 machine.
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 19
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 20
Edit .bash_profile for racnode2.
Edit hosts
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 21
Ping ipaddress both node
ssh configure
racnode1
racnode2
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 22
racnode1
racnode2
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.
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 24
Grid Infrastructure installation
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 25
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 26
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 27
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 28
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 29
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 30
Execute both root scripts on both node one by one.
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 31
Do it as same like racnode2 also.
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 32
Grid Infrastructure installation completed successfully.
Database Software Install
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 33
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 34
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 35
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 36
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 37
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
Mohamed Azar || http://mohamedazar.wordpress.com DBA, Blogger, Contributor, Book Reviewer Page 39
racnode2