Sie sind auf Seite 1von 74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Home

Articles

Scripts

Forums

Blog

Certification

Misc

Search

About

Printer Friendly

Oracle 8i | Oracle 9i | Oracle 10g | Oracle 11g | Oracle 12c | Miscellaneous | PL/SQL | SQL | Oracle RAC | Oracle Apps | Linux
Home Articles 11g Here 10 Tw eet 38

Search

Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2


This article describes the installation of Oracle Database 11g release 2 (11.2 64-bit) RAC on Linux (Oracle Enterprise Linux 5 64-bit) using VMware Server 2 with no additional shared disk devices. Introduction Download Software VMware Server Installation Virtual Machine Setup Guest Operating System Installation Oracle Installation Prerequisites Automatic Setup Manual Setup Additional Setup Install VMware Client Tools Create Shared Disks Clone the Virtual Machine Install the Grid Infrastructure Install the Database Check the Status of the RAC Note. I no longer use VMware Server. Since this article was written I've switched to VirtualBox as my main virtualization solution for testing installations. Oracle Database 11g Release 2 RAC On Linux Using VirtualBox

Introduction
One of the biggest obstacles preventing people from setting up test RAC environments is the requirement for shared storage. In a production
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 1/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

environment, shared storage is often provided by a SAN or high-end NAS device, but both of these options are very expensive when all you want to do is get some experience installing and using RAC. A cheaper alternative is to use a FireWire disk enclosure to allow two machines to access the same disk(s), but that still costs money and requires two servers. A third option is to use VMware Server to fake the shared storage. Using VMware Server you can run multiple Virtual Machines (VMs) on a single server, allowing you to run both RAC nodes on a single machine. In addition, it allows you to set up shared virtual disks, overcoming the obstacle of expensive shared storage.

Before you launch into this installation, here are a few things to consider. The finished system includes the host operating system, two guest operating systems, two sets of Oracle Grid Infrastructure (Clusterware + ASM) and two Database instances all on a single server. As you can imagine, this requires a significant amount of disk space, CPU and memory. I completed this installation on a Quad-Core processor with 8G of memory, so don't expect to work on a low spec machine. Following on from the last point, the VMs will each need 2G of RAM, preferably 3-4G if you don't want the VM to swap like crazy. As you can see, 11gR2 RAC requires much more memory than 11gR1 RAC. Don't assume you will be able to run this on a small PC or laptop. You won't. This procedure provides a bare bones installation to get the RAC working. There is no redundancy in the Grid Infrastructure installation or the ASM installation. To add this, simply create double the amount of shared disks and select the "Normal" redundancy option when it is offered. Of course, this will take more disk space. During the virtual disk creation, I always choose not to preallocate the disk space. This makes virtual disk access slower during the installation, but saves on wasted disk space. This is not, and should not be considered, a production-ready system. It's simply to allow you to get used to installing and using RAC. The Single Client Access Name (SCAN) should really be defined in the DNS or GNS and round-robin between one of 3 addresses, which are on the same subnet as the public and virtual IPs. In this article I've defined it as a single IP address in the "/etc/hosts" file, which is wrong and will cause the cluster verification to fail, but it allows me to complete the install without the presence of a DNS. This approach will not work for 11.2.0.2 onward, where you must use the DNS. The virtual machines used are only given 2Gig of swap, which causes a prerequisite check failure, but doesn't prevent the installation working. If you want to avoid this, define 3+Gig of swap. This article uses the 64-bit versions of Oracle Enterprise Linux and Oracle 11g Release 2.

Download Software
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 2/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Download the following software. Oracle Enterprise Linux 5 VMware Server Oracle 11g Release 2 (11.2) Software (64 bit)

VMware Server Installation


Regardless of the host OS, the setup of the virtual machines should be similar. First, install the VMware Server software. On Linux you do this with the following command as the root user. #r p mU v hV M w a r e s e r v e r * . r p m P r e p a r i n g . . . # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #[ 1 0 0 % ] 1 : V M w a r e s e r v e r # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #[ 1 0 0 % ] T h ei n s t a l l a t i o no fV M w a r eS e r v e r2 . 0 . 0f o rL i n u xc o m p l e t e ds u c c e s s f u l l y . Y o uc a nd e c i d et or e m o v et h i ss o f t w a r ef r o my o u rs y s t e ma ta n yt i m eb y i n v o k i n gt h ef o l l o w i n gc o m m a n d :" r p meV M w a r e s e r v e r " . B e f o r er u n n i n gV M w a r eS e r v e rf o rt h ef i r s tt i m e ,y o un e e dt o c o n f i g u r ei tf o ry o u rr u n n i n gk e r n e lb yi n v o k i n gt h e f o l l o w i n gc o m m a n d :" / u s r / b i n / v m w a r e c o n f i g . p l " . E n j o y , t h eV M w a r et e a m # Then finish the configuration by running the vmware-config.pl script as the root user. Most of the questions can be answered with the default response by pressing the return key. An example of the output can be seen here. The web-based VMware Intrastructure Web Access Console is started by issuing the command "vmware" at the command prompt, or by pointing your browser to one of the two following URLs depending on whether you need Secure HTTP or not. http://machine-name:8222 https://machine-name:8333 If you are using Secure HTTP, your browser may fail due to the self-signed certificate. In Firefox you can solve this by clicking the "Or you can add an exception..." link on the failure page.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

3/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

On the resulting page, click the "Add Exception..." button..

On the "Add Security Exception" page, click the "Get Certificate" button, then click the "Confirm Security Exception" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

4/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

You are then presented with the web-based login screen.

Log in with the user specified during the config stage and you are presented with the VMware Intrastructure Web Access Console.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

5/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

The VMware Server is now installed and ready to use.

Virtual Machine Setup


Now we must define the two virtual RAC nodes. We can save time by defining one VM, then cloning it when it is installed. Click the "Virtual Machine > Create Virtual Machine" menu option, or click the "Create Virtual Machine" link on the bottom right of the console.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

6/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Enter the name "RAC1" and accept the standard datastore by clicking the "Next" button.

Select the "Linux operating system" option, and set the version to "Red Hat Enterprise Linux 5 (64-bit)", then click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

7/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Enter the required amount of memory and number of CPUs for the virtual machine, then click the "Next" button. You should enter a minimum of 2048MB of memory.

Click on the "Create a New Virtual Disk" link or click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

8/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Set the disk size to "20 GB" and click the "Next" button.

Click the "Add a Network Adapter" link or click the "Next" button.
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 9/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Select the "Bridged" option and click the "Next" button.

Click the "Use a Physical Drive" link, or click the "Next" button.
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 10/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Accept the DVD properties by clicking the "Next" button.

Click the "Don't Add a Floppy Drive" link.


http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 11/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click the "Add a USB Controller" link, or click the "Next" button.

Click the "Finish" button to create the virtual machine.


http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 12/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Highlight the "RAC1" VM in the "Inventory" pane, then click the "Add Hardware" link in the "Commands" section to the right.

Click the "Network Adapter" link.


http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 13/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Select the "Bridged" option and click the "Next" button.

Click the "Finish" button.


http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 14/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

The virtual machine is now configured so we can start the guest operating system installation.

Guest Operating System Installation


Place the first OEL 5 disk in the DVD drive and start the virtual machine by clicking the play button on the toolbar.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

15/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click on the "Console" tab. If you have not previously installed the VMware browser plugin you will be prompted to do so. If it is already present, simply click on the black pane to the right to open a new console window.

The resulting console window will contain the OEL boot screen.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

16/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Continue through the OEL 5 installation as you would for a normal server. A general pictorial guide to the installation can be found here. More specifically, it should be a server installation with a minimum of 2G swap (3-4G if you want to avoid warnings), firewall and SELinux disabled and the following package groups installed: GNOME Desktop Environment Editors Graphical Internet Text-based Internet Development Libraries Development Tools Server Configuration Tools Administration Tools Base System Tools X Window System To be consistent with the rest of the article, the following information should be set during the installation. hostname: rac1.localdomain IP Address eth0: 192.168.2.101 (public address)
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 17/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Default Gateway eth0: 192.168.2.1 (public address) IP Address eth1: 192.168.0.101 (private address) Default Gateway eth1: none You are free to change the IP addresses to suit your network, but remember to stay consistent with those adjustments throughout the rest of the article.

Oracle Installation Prerequisites


Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The Additional Setup is required for all installations. Automatic Setup If you plan to use the "oracle-validated" package to perform all your prerequisite setup, follow the instructions at http://public-yum.oracle.com to setup the yum repository for OL, then perform the following command. #y u mi n s t a l lo r a c l e v a l i d a t e d All necessary prerequisites will be performed automatically. It is probably worth doing a full update as well, but this is not strictly speaking necessary. #y u mu p d a t e Manual Setup If you have not used the "oracle-validated" package to perform all prerequisites, you will need to manually perform the following setup tasks. In addition to the basic OS installation, the following packages must be installed whilst logged in as the root user. This includes the 64-bit and 32-bit versions of some packages. #F r o mO r a c l eL i n u x5D V D c d/ m e d i a / c d r o m / S e r v e r r p mU v hb i n u t i l s 2 . * r p mU v hc o m p a t l i b s t d c + + 3 3 * r p mU v he l f u t i l s l i b e l f 0 . * r p mU v he l f u t i l s l i b e l f d e v e l * r p mU v hg c c 4 . * r p mU v hg c c c + + 4 . * r p mU v hg l i b c 2 . * r p mU v hg l i b c c o m m o n 2 . * r p mU v hg l i b c d e v e l 2 . * r p mU v hg l i b c h e a d e r s 2 . *
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 18/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

r p mU v hk s h 2 * r p mU v hl i b a i o 0 . * r p mU v hl i b a i o d e v e l 0 . * r p mU v hl i b g c c 4 . * r p mU v hl i b s t d c + + 4 . * r p mU v hl i b s t d c + + d e v e l 4 . * r p mU v hm a k e 3 . * r p mU v hs y s s t a t 7 . * r p mU v hu n i x O D B C 2 . * r p mU v hu n i x O D B C d e v e l 2 . * c d/ e j e c t Add or amend the following lines to the "/etc/sysctl.conf" file. f s . a i o m a x n r=1 0 4 8 5 7 6 f s . f i l e m a x=6 8 1 5 7 4 4 k e r n e l . s h m a l l=2 0 9 7 1 5 2 k e r n e l . s h m m a x=1 0 5 4 5 0 4 9 6 0 k e r n e l . s h m m n i=4 0 9 6 #s e m a p h o r e s :s e m m s l ,s e m m n s ,s e m o p m ,s e m m n i k e r n e l . s e m=2 5 03 2 0 0 01 0 01 2 8 n e t . i p v 4 . i p _ l o c a l _ p o r t _ r a n g e=9 0 0 06 5 5 0 0 n e t . c o r e . r m e m _ d e f a u l t = 2 6 2 1 4 4 n e t . c o r e . r m e m _ m a x = 4 1 9 4 3 0 4 n e t . c o r e . w m e m _ d e f a u l t = 2 6 2 1 4 4 n e t . c o r e . w m e m _ m a x = 1 0 4 8 5 8 6 Run the following command to change the current kernel parameters. / s b i n / s y s c t lp Add the following lines to the "/etc/security/limits.conf" file. o r a c l e o r a c l e o r a c l e o r a c l e s o f t h a r d s o f t h a r d n p r o c n p r o c n o f i l e n o f i l e 2 0 4 7 1 6 3 8 4 1 0 2 4 6 5 5 3 6

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

19/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Add the following lines to the "/etc/pam.d/login" file, if it does not already exist. s e s s i o n r e q u i r e d p a m _ l i m i t s . s o

Create the new groups and users. g r o u p a d dg1 0 0 0o i n s t a l l g r o u p a d dg1 2 0 0d b a u s e r a d du1 1 0 0go i n s t a l lGd b ao r a c l e p a s s w do r a c l e Create the directories in which the Oracle software will be installed. m k d i rp / u 0 1 / a p p / 1 1 . 2 . 0 / g r i d m k d i rp/ u 0 1 / a p p / o r a c l e / p r o d u c t / 1 1 . 2 . 0 / d b _ 1 c h o w nRo r a c l e : o i n s t a l l/ u 0 1 c h m o dR7 7 5/ u 0 1 / Additional Setup Perform the following steps whilst logged into the "ol5-112-rac1" virtual machine as the root user. Set the password for the "oracle" user. p a s s w do r a c l e Install the following package from the Oracle grid media after you've defined groups. c d/ y o u r / p a t h / t o / g r i d / r p m r p mU v hc v u q d i s k * If you are not using DNS, the "/etc/hosts" file must contain the following information. 1 2 7 . 0 . 0 . 1 #P u b l i c 1 9 2 . 1 6 8 . 0 . 1 0 1 1 9 2 . 1 6 8 . 0 . 1 0 2 #P r i v a t e l o c a l h o s t . l o c a l d o m a i n l o c a l h o s t o l 5 1 1 2 r a c 1 o l 5 1 1 2 r a c 2

o l 5 1 1 2 r a c 1 . l o c a l d o m a i n o l 5 1 1 2 r a c 2 . l o c a l d o m a i n

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

20/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

1 9 2 . 1 6 8 . 1 . 1 0 1 1 9 2 . 1 6 8 . 1 . 1 0 2 #V i r t u a l 1 9 2 . 1 6 8 . 0 . 1 0 3 1 9 2 . 1 6 8 . 0 . 1 0 4 #S C A N 1 9 2 . 1 6 8 . 0 . 1 0 5 1 9 2 . 1 6 8 . 0 . 1 0 6 1 9 2 . 1 6 8 . 0 . 1 0 7

o l 5 1 1 2 r a c 1 p r i v . l o c a l d o m a i n o l 5 1 1 2 r a c 2 p r i v . l o c a l d o m a i n o l 5 1 1 2 r a c 1 v i p . l o c a l d o m a i n o l 5 1 1 2 r a c 2 v i p . l o c a l d o m a i n o l 5 1 1 2 s c a n . l o c a l d o m a i n o l 5 1 1 2 s c a n . l o c a l d o m a i n o l 5 1 1 2 s c a n . l o c a l d o m a i n

o l 5 1 1 2 r a c 1 p r i v o l 5 1 1 2 r a c 2 p r i v o l 5 1 1 2 r a c 1 v i p o l 5 1 1 2 r a c 2 v i p o l 5 1 1 2 s c a n o l 5 1 1 2 s c a n o l 5 1 1 2 s c a n

Translate

Note. The SCAN address should not really be defined in the hosts file. Instead is should be defined on the DNS to round-robin between 3 addresses on the same subnet as the public IPs. For this installation, we will compromise and use the hosts file. This is not possible if you are using 11.2.0.2 onward. If you are using DNS, then only the first line needs to be present in the "/etc/hosts" file. The other entries are defined in the DNS, as described here. Having said that, I typically include all but the SCAN addresses. Change the setting of SELinux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows. S E L I N U X = p e r m i s s i v e Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature. If you have the Linux firewall enabled, you will need to disable or configure it, as shown here or here. The following is an example of disabling the firewall. #s e r v i c ei p t a b l e ss t o p #c h k c o n f i gi p t a b l e so f f 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. #s e r v i c en t p ds t o p S h u t t i n gd o w nn t p d : #c h k c o n f i gn t p do f f #m v/ e t c / n t p . c o n f/ e t c / n t p . c o n f . o r i g #r m/ v a r / r u n / n t p d . p i d

[ O K ]

If you want to use NTP, you must add the "-x" option into the following line in the "/etc/sysconfig/ntpd" file. O P T I O N S = " xun t p : n t pp/ v a r / r u n / n t p d . p i d "
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 21/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Then restart NTP. #s e r v i c en t p dr e s t a r t Create the directories in which the Oracle software will be installed. m k d i rp / u 0 1 / a p p / 1 1 . 2 . 0 / g r i d m k d i rp/ u 0 1 / a p p / o r a c l e / p r o d u c t / 1 1 . 2 . 0 / d b _ 1 c h o w nRo r a c l e : o i n s t a l l/ u 0 1 c h m o dR7 7 5/ u 0 1 / Login as the "oracle" user and add the following lines at the end of the "/home/oracle/.bash_profile" file. #O r a c l eS e t t i n g s T M P = / t m p ;e x p o r tT M P T M P D I R = $ T M P ;e x p o r tT M P D I R O R A C L E _ H O S T N A M E = o l 5 1 1 2 r a c 1 . l o c a l d o m a i n ;e x p o r tO R A C L E _ H O S T N A M E O R A C L E _ U N Q N A M E = R A C ;e x p o r tO R A C L E _ U N Q N A M E O R A C L E _ B A S E = / u 0 1 / a p p / o r a c l e ;e x p o r tO R A C L E _ B A S E G R I D _ H O M E = / u 0 1 / a p p / 1 1 . 2 . 0 / g r i d ;e x p o r tG R I D _ H O M E D B _ H O M E = $ O R A C L E _ B A S E / p r o d u c t / 1 1 . 2 . 0 / d b _ 1 ;e x p o r tD B _ H O M E O R A C L E _ H O M E = $ D B _ H O M E ;e x p o r tO R A C L E _ H O M E O R A C L E _ S I D = R A C 1 ;e x p o r tO R A C L E _ S I D O R A C L E _ T E R M = x t e r m ;e x p o r tO R A C L E _ T E R M B A S E _ P A T H = / u s r / s b i n : $ P A T H ;e x p o r tB A S E _ P A T H P A T H = $ O R A C L E _ H O M E / b i n : $ B A S E _ P A T H ;e x p o r tP A T H L D _ L I B R A R Y _ P A T H = $ O R A C L E _ H O M E / l i b : / l i b : / u s r / l i b ;e x p o r tL D _ L I B R A R Y _ P A T H C L A S S P A T H = $ O R A C L E _ H O M E / J R E : $ O R A C L E _ H O M E / j l i b : $ O R A C L E _ H O M E / r d b m s / j l i b ;e x p o r tC L A S S P A T H i f[$ U S E R=" o r a c l e "] ;t h e n i f[$ S H E L L=" / b i n / k s h "] ;t h e n u l i m i tp1 6 3 8 4 u l i m i tn6 5 5 3 6 e l s e u l i m i tu1 6 3 8 4n6 5 5 3 6 f i f i
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 22/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

a l i a sg r i d _ e n v = ' ./ h o m e / o r a c l e / g r i d _ e n v ' a l i a sd b _ e n v = ' ./ h o m e / o r a c l e / d b _ e n v ' Create a file called "/home/oracle/grid_env" with the following contents. O R A C L E _ S I D = + A S M 1 ;e x p o r tO R A C L E _ S I D O R A C L E _ H O M E = $ G R I D _ H O M E ;e x p o r tO R A C L E _ H O M E P A T H = $ O R A C L E _ H O M E / b i n : $ B A S E _ P A T H ;e x p o r tP A T H L D _ L I B R A R Y _ P A T H = $ O R A C L E _ H O M E / l i b : / l i b : / u s r / l i b ;e x p o r tL D _ L I B R A R Y _ P A T H C L A S S P A T H = $ O R A C L E _ H O M E / J R E : $ O R A C L E _ H O M E / j l i b : $ O R A C L E _ H O M E / r d b m s / j l i b ;e x p o r tC L A S S P A T H Create a file called "/home/oracle/db_env" with the following contents. O R A C L E _ S I D = R A C 1 ;e x p o r tO R A C L E _ S I D O R A C L E _ H O M E = $ D B _ H O M E ;e x p o r tO R A C L E _ H O M E P A T H = $ O R A C L E _ H O M E / b i n : $ B A S E _ P A T H ;e x p o r tP A T H L D _ L I B R A R Y _ P A T H = $ O R A C L E _ H O M E / l i b : / l i b : / u s r / l i b ;e x p o r tL D _ L I B R A R Y _ P A T H C L A S S P A T H = $ O R A C L E _ H O M E / J R E : $ O R A C L E _ H O M E / j l i b : $ O R A C L E _ H O M E / r d b m s / j l i b ;e x p o r tC L A S S P A T H Once the "/home/oracle/grid_env" has been run, you will be able to switch between environments as follows. $g r i d _ e n v $e c h o$ O R A C L E _ H O M E / u 0 1 / a p p / 1 1 . 2 . 0 / g r i d $d b _ e n v $e c h o$ O R A C L E _ H O M E / u 0 1 / a p p / o r a c l e / p r o d u c t / 1 1 . 2 . 0 / d b _ 1 $ We've made a lot of changes, so it's worth doing a reboot of the VM at this point to make sure all the changes have taken effect. #s h u t d o w nrn o w

Install VMware Client Tools


On the web console, highlight the "RAC1" VM and click the "Install VMware Tools" link and click the subsequent "Install" button.
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 23/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

In the RAC1 console, right-click on the "VMwareTools*.rpm" file and select the "Open with "Software Installer"" option.

Click the "Apply" button and accept the warning by clicking the subsequent "Install Anyway" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

24/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Next, run the "vmware-config-tools.pl" script as the root user. #v m w a r e c o n f i g t o o l s . p l Accept all the default settings and pick the screen resolution of your choice. Ignore any warnings or errors. The VMware client tools are now installed. Issue the "vmware-toolbox" command as the root user. On the subsequent dialog, check the "Time synchronization..." option and click the "Close" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

25/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Reboot the server before proceeding. After the reboot, it is possible the monitor will not be recognised. If this is the case don't panic. Follow the instructions provided on the screen and reconfigure the monitor setting, which will allow the XServer to function correctly.

Create Shared Disks


Shut down the RAC1 virtual machine using the following command. #s h u t d o w nhn o w Create a directory on the host system to hold the shared virtual disks. #m k d i rp/ u 0 1 / V M / s h a r e d On the VMware Intrastructure Web Access Console, click the "Add Hardware" link.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

26/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click the "Hard Disk" link, or click the "Next" button.

Click the "Create New Virtual Disk" link, or click the "Next" button.
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 27/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Set the size to "10 GB" and the location to "[standard] shared/asm1.vmdk".

Expand the "Disk Mode" section and check the "Independent" and "Persistent" options. Expand the "Virtual Device Node" section and set the adapter
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 28/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

to "SCSI 1" and the device to "1", then click the "Next" button.

Click the "Finish" button to add the new virtual disk.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

29/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Repeat the previous hard disk creation steps 4 more times, using the following values. File Name: [standard] shared/asm2.vmdk Virtual Device Node: SCSI 1:2 Mode: Independent and Persistent File Name: [standard] shared/asm3.vmdk Virtual Device Node: SCSI 1:3 Mode: Independent and Persistent File Name: [standard] shared/asm4.vmdk Virtual Device Node: SCSI 1:4 Mode: Independent and Persistent File Name: [standard] shared/asm5.vmdk Virtual Device Node: SCSI 1:5 Mode: Independent and Persistent At the end of this process, the virtual machine should look something like the picture below.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

30/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Edit the contents of the "/u01/VM/RAC1/RAC1.vmx" file using a text editor, making sure the following entries are present. Some of the tries will already be present, some will not. d i s k . l o c k i n g=" F A L S E " d i s k L i b . d a t a C a c h e M a x S i z e=" 0 " d i s k L i b . d a t a C a c h e M a x R e a d A h e a d S i z e=" 0 " d i s k L i b . d a t a C a c h e M i n R e a d A h e a d S i z e=" 0 " d i s k L i b . d a t a C a c h e P a g e S i z e=" 4 0 9 6 " d i s k L i b . m a x U n s y n c e d W r i t e s=" 0 " s c s i 1 . p r e s e n t=" T R U E " s c s i 1 . s h a r e d B u s=" V I R T U A L " s c s i 1 . v i r t u a l D e v=" l s i l o g i c " s c s i 1 : 1 . p r e s e n t=" T R U E " s c s i 1 : 1 . f i l e N a m e=" / u 0 1 / V M / s h a r e d / a s m 1 . v m d k " s c s i 1 : 1 . w r i t e T h r o u g h=" T R U E " s c s i 1 : 1 . m o d e=" i n d e p e n d e n t p e r s i s t e n t " s c s i 1 : 1 . d e v i c e T y p e=" p l a i n D i s k " s c s i 1 : 1 . r e d o=" " s c s i 1 : 2 . p r e s e n t=" T R U E " s c s i 1 : 2 . f i l e N a m e=" / u 0 1 / V M / s h a r e d / a s m 2 . v m d k " s c s i 1 : 2 . w r i t e T h r o u g h=" T R U E " s c s i 1 : 2 . m o d e=" i n d e p e n d e n t p e r s i s t e n t " s c s i 1 : 2 . d e v i c e T y p e=" p l a i n D i s k " s c s i 1 : 2 . r e d o=" " s c s i 1 : 3 . p r e s e n t=" T R U E " s c s i 1 : 3 . f i l e N a m e=" / u 0 1 / V M / s h a r e d / a s m 3 . v m d k " s c s i 1 : 3 . w r i t e T h r o u g h=" T R U E " s c s i 1 : 3 . m o d e=" i n d e p e n d e n t p e r s i s t e n t " s c s i 1 : 3 . d e v i c e T y p e=" p l a i n D i s k " s c s i 1 : 3 . r e d o=" " s c s i 1 : 4 . p r e s e n t=" T R U E " s c s i 1 : 4 . f i l e N a m e=" / u 0 1 / V M / s h a r e d / a s m 4 . v m d k " s c s i 1 : 4 . w r i t e T h r o u g h=" T R U E " s c s i 1 : 4 . m o d e=" i n d e p e n d e n t p e r s i s t e n t " s c s i 1 : 4 . d e v i c e T y p e=" p l a i n D i s k " s c s i 1 : 4 . r e d o=" " s c s i 1 : 5 . p r e s e n t=" T R U E "
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 31/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

s c s i 1 : 5 . f i l e N a m e=" / u 0 1 / V M / s h a r e d / a s m 5 . v m d k " s c s i 1 : 5 . w r i t e T h r o u g h=" T R U E " s c s i 1 : 5 . m o d e=" i n d e p e n d e n t p e r s i s t e n t " s c s i 1 : 5 . d e v i c e T y p e=" p l a i n D i s k " s c s i 1 : 5 . r e d o=" " Start the RAC1 virtual machine by clicking the "Play" button on the toolbar, then start the console as before. When the server has started, log in as the root user so you can partition the disks. The current disks can be seen by issuing the following commands. #c d/ d e v #l ss d * s d a s d a 1 s d a 2 s d b s d c s d d s d e s d f # Use the "fdisk" command to partition the disks sdb to sdf. The following output shows the expected fdisk output for the sdb disk. #f d i s k/ d e v / s d b D e v i c ec o n t a i n sn e i t h e rav a l i dD O Sp a r t i t i o nt a b l e ,n o rS u n ,S G Io rO S Fd i s k l a b e l B u i l d i n gan e wD O Sd i s k l a b e l .C h a n g e sw i l lr e m a i ni nm e m o r yo n l y , u n t i ly o ud e c i d et ow r i t et h e m .A f t e rt h a t ,o fc o u r s e ,t h ep r e v i o u s c o n t e n tw o n ' tb er e c o v e r a b l e .

T h en u m b e ro fc y l i n d e r sf o rt h i sd i s ki ss e tt o1 3 0 5 . T h e r ei sn o t h i n gw r o n gw i t ht h a t ,b u tt h i si sl a r g e rt h a n1 0 2 4 , a n dc o u l di nc e r t a i ns e t u p sc a u s ep r o b l e m sw i t h : 1 )s o f t w a r et h a tr u n sa tb o o tt i m e( e . g . ,o l dv e r s i o n so fL I L O ) 2 )b o o t i n ga n dp a r t i t i o n i n gs o f t w a r ef r o mo t h e rO S s ( e . g . ,D O SF D I S K ,O S / 2F D I S K ) W a r n i n g :i n v a l i df l a g0 x 0 0 0 0o fp a r t i t i o nt a b l e4w i l lb ec o r r e c t e db yw ( r i t e ) C o m m a n d( mf o rh e l p ) :n C o m m a n da c t i o n e e x t e n d e d p p r i m a r yp a r t i t i o n( 1 4 ) p P a r t i t i o nn u m b e r( 1 4 ) :1 F i r s tc y l i n d e r( 1 1 3 0 5 ,d e f a u l t1 ) : U s i n gd e f a u l tv a l u e1 L a s tc y l i n d e ro r+ s i z eo r+ s i z e Mo r+ s i z e K( 1 1 3 0 5 ,d e f a u l t1 3 0 5 ) : U s i n gd e f a u l tv a l u e1 3 0 5
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 32/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

C o m m a n d( mf o rh e l p ) :p D i s k/ d e v / s d b :1 0 . 7G B ,1 0 7 3 7 4 1 8 2 4 0b y t e s 2 5 5h e a d s ,6 3s e c t o r s / t r a c k ,1 3 0 5c y l i n d e r s U n i t s=c y l i n d e r so f1 6 0 6 5*5 1 2=8 2 2 5 2 8 0b y t e s D e v i c eB o o t / d e v / s d b 1 S t a r t 1 E n d 1 3 0 5 B l o c k s 1 0 4 8 2 3 8 1 I d S y s t e m 8 3 L i n u x

C o m m a n d( mf o rh e l p ) :w T h ep a r t i t i o nt a b l eh a sb e e na l t e r e d ! C a l l i n gi o c t l ( )t or e r e a dp a r t i t i o nt a b l e . S y n c i n gd i s k s . # In each case, the sequence of answers is "n", "p", "1", "Return", "Return", "p" and "w". Once all the disks are partitioned, the results can be seen by repeating the previous "ls" command. #c d/ d e v #l ss d * s d a s d a 1 s d a 2 s d b s d b 1 s d c s d c 1 s d d s d d 1 s d e s d e 1 s d f s d f 1 # Determine your current kernel. u n a m er m 2 . 6 . 1 8 1 6 4 . e l 5x 8 6 _ 6 4 # Download the appropriate ASMLib RPMs from OTN. In this case we installed the last two from the media, so we just need the first package. For RHEL we would need all three of the following. oracleasm-support-2.1.3-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm Install the packages using the following command. r p mU v ho r a c l e a s m * . r p m
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 33/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Configure ASMLib using the following command. #o r a c l e a s mc o n f i g u r ei C o n f i g u r i n gt h eO r a c l eA S Ml i b r a r yd r i v e r . T h i sw i l lc o n f i g u r et h eo n b o o tp r o p e r t i e so ft h eO r a c l eA S Ml i b r a r y d r i v e r . T h ef o l l o w i n gq u e s t i o n sw i l ld e t e r m i n ew h e t h e rt h ed r i v e ri s l o a d e do nb o o ta n dw h a tp e r m i s s i o n si tw i l lh a v e . T h ec u r r e n tv a l u e s w i l lb es h o w ni nb r a c k e t s( ' [ ] ' ) . H i t t i n g< E N T E R >w i t h o u tt y p i n ga n a n s w e rw i l lk e e pt h a tc u r r e n tv a l u e . C t r l Cw i l la b o r t . D e f a u l tu s e rt oo w nt h ed r i v e ri n t e r f a c e[ ] :o r a c l e D e f a u l tg r o u pt oo w nt h ed r i v e ri n t e r f a c e[ ] :d b a S t a r tO r a c l eA S Ml i b r a r yd r i v e ro nb o o t( y / n )[ n ] :y S c a nf o rO r a c l eA S Md i s k so nb o o t( y / n )[ y ] : W r i t i n gO r a c l eA S Ml i b r a r yd r i v e rc o n f i g u r a t i o n :d o n e # Load the kernel module using the following command. #/ u s r / s b i n / o r a c l e a s mi n i t L o a d i n gm o d u l e" o r a c l e a s m " :o r a c l e a s m M o u n t i n gA S M l i bd r i v e rf i l e s y s t e m :/ d e v / o r a c l e a s m # If you have any problems, run the following command to make sure you have the correct version of the driver. #/ u s r / s b i n / o r a c l e a s mu p d a t e d r i v e r Mark the five shared disks as follows. #/ u s r / s b i n / o r a c l e a s mc r e a t e d i s kD I S K 1/ d e v / s d b 1 W r i t i n gd i s kh e a d e r :d o n e I n s t a n t i a t i n gd i s k :d o n e #/ u s r / s b i n / o r a c l e a s mc r e a t e d i s kD I S K 2/ d e v / s d c 1 W r i t i n gd i s kh e a d e r :d o n e I n s t a n t i a t i n gd i s k :d o n e #/ u s r / s b i n / o r a c l e a s mc r e a t e d i s kD I S K 3/ d e v / s d d 1 W r i t i n gd i s kh e a d e r :d o n e
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 34/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

I n s t a n t i a t i n gd i s k :d o n e #/ u s r / s b i n / o r a c l e a s mc r e a t e d i s kD I S K 4/ d e v / s d e 1 W r i t i n gd i s kh e a d e r :d o n e I n s t a n t i a t i n gd i s k :d o n e #/ u s r / s b i n / o r a c l e a s mc r e a t e d i s kD I S K 5/ d e v / s d f 1 W r i t i n gd i s kh e a d e r :d o n e I n s t a n t i a t i n gd i s k :d o n e # It is unnecessary, but we can run the "scandisks" command to refresh the ASM disk configuration. #/ u s r / s b i n / o r a c l e a s ms c a n d i s k s R e l o a d i n gd i s kp a r t i t i o n s :d o n e C l e a n i n ga n ys t a l eA S Md i s k s . . . S c a n n i n gs y s t e mf o rA S Md i s k s . . . # We can see the disk are now visible to ASM using the "listdisks" command. #/ u s r / s b i n / o r a c l e a s ml i s t d i s k s D I S K 1 D I S K 2 D I S K 3 D I S K 4 D I S K 5 # The shared disks are now configured for the grid infrastructure.

Clone the Virtual Machine


The current version of VMware Server does not include an option to clone a virtual machine, but the following steps illustrate how this can be achieved manually. Shut down the RAC1 virtual machine using the following command. #s h u t d o w nhn o w Copy the RAC1 virtual machine using the following command.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

35/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

#c pR/ u 0 1 / V M / R A C 1/ u 0 1 / V M / R A C 2 Edit the contents of the "/u01/VM/RAC2/RAC1.vmx" file, making the following change. d i s p l a y N a m e=" R A C 2 " Ignore discrepancies with the file names in the "/u01/VM/RAC2" directory. This does not affect the action of the virtual machine. In the VMware Infrastructure Web Access Console, select the "Virtual Machine > Add Virtual Machien to Inventory" menu options and browse for the "/u01/VM/RAC2/RAC1.vmx" file. Once opened, the RAC2 virtual machine is visible on the console.

Start the RAC2 virtual machine by clicking the "Play" button on the toolbar. Select the "I _copied it" option click the "OK" button when prompted.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

36/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Ignore any errors during the server startup. We are expecting the networking components to fail at this point. Log in to the RAC2 virtual machine as the root user and start the "Network Configuration" tool (System > Administration > Network).

Remove the devices with the "%.bak" nicknames. To do this, highlight a device, deactivate, then delete it. This will leave just the regular "eth0" and "eth1" devices. Highlight the "eth0" interface and click the "Edit" button on the toolbar and alter the IP address to "192.168.2.102" in the resulting screen.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

37/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click on the "Hardware Device" tab and click the "Probe" button. Then accept the changes by clicking the "OK" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

38/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Repeat the process for the "eth1" interface, this time setting the IP Address to "192.168.0.102", and making sure the default gateway is not set for the "eth1" interface. Click on the "DNS" tab and change the host name to "rac2.localdomain", then click on the "Devices" tab.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

39/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Once you are finished, save the changes (File > Save) and activate the network interfaces by highlighting them and clicking the "Activate" button. Once activated, the screen should look like the following image.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

40/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Edit the "/home/oracle/.bash_profile" file on the RAC2 node to correct the ORACLE_SID and ORACLE_HOSTNAME values. O R A C L E _ S I D = R A C 2 ;e x p o r tO R A C L E _ S I D O R A C L E _ H O S T N A M E = r a c 2 . l o c a l d o m a i n ;e x p o r tO R A C L E _ H O S T N A M E Also, amend the ORACLE_SID setting in the "/home/oracle/db_env" and "/home/oracle/grid_env" files. Start the RAC1 virtual machine and restart the RAC2 virtual machine. When both nodes have started, check they can both ping all the public and private IP addresses using the following commands. p i n gc3r a c 1 p i n gc3r a c 1 p r i v p i n gc3r a c 2 p i n gc3r a c 2 p r i v At this point the virtual IP addresses defined in the "/etc/hosts" file will not work, so don't bother testing them. Prior to 11gR2 we would probably use the "runcluvfy.sh" utility in the clusterware root directory to check the prerequisites have been met. If you are intending to configure SSH connectivity using the installer this check should be omitted as it will always fail. If you want to setup SSH connectivity
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 41/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

manually, then once it is done you can run the "runcluvfy.sh" with the following command. / m o u n t p o i n t / c l u s t e r w a r e / r u n c l u v f y . s hs t a g ep r ec r s i n s tnr a c 1 , r a c 2v e r b o s e If you get any failures be sure to correct them before proceeding. It's a good idea to take a snapshot of the virtual machines, so you can repeat the following stages if you run into any problems. To do this, shutdown both virtual machines and issue the following commands. #c d/ u 0 1 / V M #t a rc v f1 1 g R 2 R A C P r e G r i d . t a rR A C 1R A C 2s h a r e d #g z i p1 1 g R 2 R A C P r e G r i d . t a r The virtual machine setup is now complete.

Install the Grid Infrastructure


Start the RAC1 and RAC2 virtual machines, login to RAC1 as the oracle user and start the Oracle installer. . / r u n I n s t a l l e r Select the "Install and Configure Grid Infrastructure for a Cluster" option, then click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

42/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Select the "Typical Installation" option, then click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

43/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

On the "Specify Cluster Configuration" screen, click the "Add" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

44/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Enter the details of the second node in the cluster, then click the "OK" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

45/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click the "SSH Connectivity..." button and enter the password for the "oracle" user. Click the "Setup" button to to configure SSH connectivity, and the "Test" button to test it once it is complete.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

46/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click the "Identify network interfaces..." button and check the public and private networks are specified correctly. Once you are happy with them, click the "OK" button and the "Next" button on the previous screen.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

47/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Enter "/u01/app/11.2.0/grid" as the software location and "Automatic Storage Manager" as the cluster registry storage type. Enter the ASM password and click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

48/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Set the redundancy to "External", select all 5 disks and click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

49/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Accept the default inventory directory by clicking the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

50/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Wait while the prerequisite checks complete. If you have any issues, either fix them or check the "Ignore All" checkbox and click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

51/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

If you are happy with the summary information, click the "Finish" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

52/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Wait while the setup takes place.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

53/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

When prompted, run the configuration scripts on each node.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

54/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

The output from the "orainstRoot.sh" file should look something like that listed below. #c d/ u 0 1 / a p p / o r a I n v e n t o r y #. / o r a i n s t R o o t . s h C h a n g i n gp e r m i s s i o n so f/ u 0 1 / a p p / o r a I n v e n t o r y . A d d i n gr e a d , w r i t ep e r m i s s i o n sf o rg r o u p . R e m o v i n gr e a d , w r i t e , e x e c u t ep e r m i s s i o n sf o rw o r l d . C h a n g i n gg r o u p n a m eo f/ u 0 1 / a p p / o r a I n v e n t o r yt oo i n s t a l l . T h ee x e c u t i o no ft h es c r i p ti sc o m p l e t e . # The output of the root.sh will vary a little depending on the node it is run on. Example output can be seen here (Node1, Node2). Once the scripts have completed, return to the "Execute Configuration Scripts" screen on RAC1 and click the "OK" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

55/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Wait for the configuration assistants to complete.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

56/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

We expect the verification phase to fail with an error relating to the SCAN, assuming you are not using DNS. I N F O :C h e c k i n gS i n g l eC l i e n tA c c e s sN a m e( S C A N ) . . . I N F O :C h e c k i n gn a m er e s o l u t i o ns e t u pf o r" r a c s c a n . l o c a l d o m a i n " . . . I N F O :E R R O R : I N F O :P R V F 4 6 6 4:F o u n di n c o n s i s t e n tn a m er e s o l u t i o ne n t r i e sf o rS C A Nn a m e" r a c s c a n . l o c a l d o m a i n " I N F O :E R R O R : I N F O :P R V F 4 6 5 7:N a m er e s o l u t i o ns e t u pc h e c kf o r" r a c s c a n . l o c a l d o m a i n "( I Pa d d r e s s :1 9 2 . 1 6 8 . 2 . 2 0 1 )f a i l e d I N F O :E R R O R : I N F O :P R V F 4 6 6 4:F o u n di n c o n s i s t e n tn a m er e s o l u t i o ne n t r i e sf o rS C A Nn a m e" r a c s c a n . l o c a l d o m a i n " I N F O :V e r i f i c a t i o no fS C A NV I Pa n dL i s t e n e rs e t u pf a i l e d Provided this is the only error, it is safe to ignore this and continue by clicking the "Next" button. Click the "Close" button to exit the installer.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

57/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

It's a good idea to take a snapshot of the virtual machines, so you can repeat the following stages if you run into any problems. To do this, shutdown both virtual machines and issue the following commands. #c d/ u 0 1 / V M #t a rc v f1 1 g R 2 R A C P o s t G r i d . t a rR A C 1R A C 2s h a r e d #g z i p1 1 g R 2 R A C P o s t G r i d . t a r The grid infrastructure installation is now complete.

Install the Database


Start the RAC1 and RAC2 virtual machines, login to RAC1 as the oracle user and start the Oracle installer. . / r u n I n s t a l l e r Uncheck the security updates checkbox and click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

58/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Accept the "Create and configure a database" option by clicking the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

59/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Accept the "Server Class" option by clicking the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

60/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Make sure both nodes are selected, then click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

61/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Accept the "Typical install" option by clicking the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

62/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Enter "/u01/app/oracle/product/11.2.0/db_1" for the software location. The storage type should be set to "Automatic Storage Manager". Enter the appropriate passwords and database name, in this case "RAC.localdomain".

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

63/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Wait for the prerequisite check to complete. If there are any problems either fix them, or check the "Ignore All" checkbox and click the "Next" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

64/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

If you are happy with the summary information, click the "Finish" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

65/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Wait while the installation takes place.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

66/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Once the software installation is complete the Database Configuration Assistant (DBCA) will start automatically.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

67/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Once the Database Configuration Assistant (DBCA) has finished, click the "OK" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

68/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

When prompted, run the configuration scripts on each node. When the scripts have been run on each node, click the "OK" button.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

69/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

Click the "Close" button to exit the installer.

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

70/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

The RAC database creation is now complete.

Check the Status of the RAC


There are several ways to check the status of the RAC. The s r v c t lutility shows the current configuration and status of the RAC database. $s r v c t lc o n f i gd a t a b a s edR A C D a t a b a s eu n i q u en a m e :R A C D a t a b a s en a m e :R A C O r a c l eh o m e :/ u 0 1 / a p p / o r a c l e / p r o d u c t / 1 1 . 2 . 0 / d b _ 1 O r a c l eu s e r :o r a c l e S p f i l e :+ D A T A / R A C / s p f i l e R A C . o r a D o m a i n :l o c a l d o m a i n S t a r to p t i o n s :o p e n S t o po p t i o n s :i m m e d i a t e D a t a b a s er o l e :P R I M A R Y M a n a g e m e n tp o l i c y :A U T O M A T I C S e r v e rp o o l s :R A C D a t a b a s ei n s t a n c e s :R A C 1 , R A C 2 D i s kG r o u p s :D A T A
http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 71/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

S e r v i c e s : D a t a b a s ei sa d m i n i s t r a t o rm a n a g e d $ $s r v c t ls t a t u sd a t a b a s edR A C I n s t a n c eR A C 1i sr u n n i n go nn o d er a c 1 I n s t a n c eR A C 2i sr u n n i n go nn o d er a c 2 $ The V $ A C T I V E _ I N S T A N C E Sview can also display the current status of the instances. $s q l p l u s/a ss y s d b a S Q L * P l u s :R e l e a s e1 1 . 2 . 0 . 1 . 0P r o d u c t i o no nS a tS e p2 61 9 : 0 4 : 1 92 0 0 9 C o p y r i g h t( c )1 9 8 2 ,2 0 0 9 ,O r a c l e . A l lr i g h t sr e s e r v e d .

C o n n e c t e dt o : O r a c l eD a t a b a s e1 1 gE n t e r p r i s eE d i t i o nR e l e a s e1 1 . 2 . 0 . 1 . 0-6 4 b i tP r o d u c t i o n W i t ht h eP a r t i t i o n i n g ,R e a lA p p l i c a t i o nC l u s t e r s ,A u t o m a t i cS t o r a g eM a n a g e m e n t ,O L A P , D a t aM i n i n ga n dR e a lA p p l i c a t i o nT e s t i n go p t i o n s S Q L >S E L E C Ti n s t _ n a m eF R O Mv $ a c t i v e _ i n s t a n c e s ; I N S T _ N A M E r a c 1 . l o c a l d o m a i n : R A C 1 r a c 2 . l o c a l d o m a i n : R A C 2 S Q L > If you have configured Enterprise Manager, it can be used to view the configuration and current status of the database using a URL like "https://rac1.localdomain:1158/em".

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

72/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

For more information see: Grid Infrastructure Installation Guide for Linux Real Application Clusters Installation Guide for Linux and UNIX Hope this helps. Regards Tim... Back to the Top.

76 comments, read/add them...


http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php 73/74

4/10/2014

ORACLE-BASE - Oracle Database 11g Release 2 RAC On Linux Using VMware Server 2

10

Tweet

38

Home | Articles | Scripts | Forums | Blog | Certification | Misc | Search | About


Copyright & Disclaimer HTML CSS

http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-ol5-using-vmware-server-2.php

74/74

Das könnte Ihnen auch gefallen