Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 Install VMWare Server on Windows Machine Download and install VMWare Server from VMWare Site (click here) (Download windows version as we are installing on windows desktop/laptop). You have to register for VMware Server on site mentioned above to recieve licence key used in installation of VMWare Server 1.2 Create Virtual Machine --Start VM Ware server console from Start Menu on your windows operating system --Create a New Virtual Machine by Ctrl + N or File -> New -> Virtual Machine (From Console Tool Bar)
Since we are installing Red Hat Enterprise Linux 3 so I have selected Version Red Hat Enterprise Linux 3
Select
location
where
you
wish
to
keep
thisRACMachine
Configuration
and
Linux
Disks
Create this Linux Machine of size 15 GB, we will add another 5GB each for voting disk, ocrand ASM for data files.
Download red hat enterprise server linux version 3 from http://rhn.redhat.com/ (You can install any other linux version or operating system depending on availability. For this step by step Oracle RAC installation, I used Red Hat ES 3) If you have downloaded Red Hat ES burn them as iso images. Insert Disk1 of Red Hat Linux ES3 in your desktop/laptop and start RAC1 virtual Machine created above
During Disk Setup selectAutomatic Disk Partitionand when you get this screen edit by clicking edit button and change swap space to 1500 MB
Customize
Package
list
and
Select No Firewall During hostname enter machine name as rac1.focusthread.com this you can change later as well
1.4 Create User oracle:oracle Create operating system user oracle (By default it will create group oracle and assign this to user oracle). You can use GUI as shown below or command useradd
Coming Next
Adding VirtualNetwork Card , Virtual Disks, installRPMs, Cloning RAC1 to RAC2 Machine, Configure User Equivalency ........
In this Part II, We will install required linux operating package for clusterware & database, additional hard disk (voting disk, ocr and ASM), network card for interconnect and configure newly added hard disk and network card. Install rpms -----------------------Install following rpms (These rpms are in Red Hat ES CDs or download them from rhn.redhat.com ) and install them using root account (compat-glibc-7.x-2.2.4.32.6.i386.rpm, gnome-libs-1.4.1.2.90-34.2.i386.rpm, sysstat-4.0.7-4.EL3.3.i386.rpm ) rpm ivh compat-glibc-7.x-2.2.4.32.6.i386.rpm rpm ivh gnome-libs-1.4.1.2.90-34.2.i386.rpm rpm ivh sysstat-4.0.7-4.EL3.3.i386.rpm Create Shared Disk on Virtual Machine for Cluster Registry, Voting Disk and ASM -------------------------------------------------------------Shutdown linux machine RAC1 (installed in part I) as shutdown now (from root user) --Create folder shared in location c:\atul\VMWARE (or any other location of your choice) --From VM Ware Console Press Ctrl + D to see Virtual Machine Settings Or from screen
Click on Add
Click on Next
Select 5.0 GB forvoting diskand 5.0 GB for ocr (add second disk of 5 GB forocr using same method) and 8 GB for asm (add third disk of 8 GB for ASMusing same method)
Enter location and disk file name in foldersharedcreated above. Note* SelectvotingDiskfor disk one created ,ocr for second disk created andasm for third disk created .This name
doesn't matter and this is for our understanding only.
Click Finish
Repeat above step of adding disk for ocr and asm. Finally you should see Hard Disk 2,3,4 Hard Disk 2 : for votingDisk (5 GB) Hard Disk 3 : for ocr (5 GB) Hard Disk 4 : for ASM (8GB) This completes addition of hard disk (How to configure and share these hard disks coming next ..) Adding Network Card for Interconnect ----------------------------
Next step is to create network card, there is already an existing network card which is used as public connection for connecting to this machine and database isnatance on this machine and new card will be used oracle clusterware as private inerconnect between two nodes of RAC i.e. RAC1 and RAC2. This private interconnect is used for clusterware talking to all remote nodes in cluster. From VMWare Console press Ctrl + D
SelectBridgedand clickFinish
Now Start your linux Virtual Machine On start of linux Virtual Machine you linux machine will detect newly added network card which you can configure now (at boot time only) or you can configure later as well.
Enter following details IP Address -----------------192.168.0.101 Netmask ------------------- 255.255.255.0 Default Gateway --------- 192.168.0.254 Primary Nameserver ---- 192.168.0.1
Login asRoot User when prompted to login Above we configured newly added network card eth1 (used for interconnect).
With below method we will card (for public connection) Syetem Setting -> Network
Add entry like ---------------------Address 192.168.1.101 Subnet Mask 255.255.255.0 Default Gateway Address 192.168.0.254
Now you should see both network card eth0 and eth1 asActive
Format and Configure Virtual disks (voting disk, ocr and asm ) ---------------------------------------------------In this step We will format and configure Virtual Disks created above. From user root fdisk l (This is to see list of disks, You will see entry like /dev/sdb, /dev/sdc, /dev/sdd doesnt contain valid partition table) fdisk /dev/sdb (Means we are dealing with /dev/sdb) n (Create new disk) p (Of type primary partition) 1 (First Cylinder) Enter (carriage return) Enter (carriage return) w (Save table to disk and exit) (For more information check man fdisk or below screenshot) Repeat above step for /dev/sdc and /dev/sdd
So nowfdisk l you should details of /dev/sdb, dev/sdc, dev/sdd --Add These disks as raw devices in file /etc/sysconfig/rawdevices as /dev/raw/raw1 /dev/sdb1 /dev/raw/raw2 /dev/sdc1 /dev/raw/raw3 /dev/sdd1 --Restart rawdevices service as service rawdevices restart
Create directory /apps/oracle/oradata (For storing voting disk, ocr and ASM) as mkdir p /apps/oracle/oradata (From Root Account) -->Create symbolic link pointing to these raw devices so that we know which one is for what (Optional) ln s /dev/raw/raw1 /apps/oracle/oradata/ocr ln s /dev/raw/raw2 /apps/oracle/oradata/votingdisk ln s /dev/raw/raw3 /apps/oracle/oradata/asm --Change ownership of these directories to oracle:oracle chown oracle:oracle /dev/raw/raw1 chown oracle:oracle /dev/raw/raw2 chown oracle:oracle /dev/raw/raw3 Shutdown this machine as this is now ready to clone and to create RAC2 machine.
Coming Next -Cloning RAC1 to RAC2 -Changing RAC2 network and hostname details -Configuring user equivalency -Installing clusterware 10.2.0.1 -Installing Oracle rac database 10.2.0.1 -Tips and Tricks of troubleshooting Oracle RAC Database and clusterware..... This is fourth post on step by step building Oracle RAC Database on your desktop / laptop using VMWare (Virtual Machine)