You are on page 1of 65

Linux Installation

Step: 1) Goto New and create a virtual Machine with the following details -> Next.

Step: 2) Now add RAM size for the Virtual Machine (Min: 1.5GB or 1536MB) -> Next.

Linux Installation

Step: 3) Select Create a Virtual hard drive now -> Create.

Step: 4) Select VDI (Virtual Box DiskImage) -> Next.

Linux Installation

Step: 5) Select Dynamically allocated -> Next

Step: 6) Give the location of the Virtual Drive to be located and (20.00 GB size) -> Create

Linux Installation Step: 7) Goto Storage Step: 8) Goto Controller: IDE (Empty). Click on Browse on right and select the Linux Image file. .

.Linux Installation Step: 9) Goto Network in Adapter 1 select Internal Network give Name: pubnet (Public Network) Step: 10) In Adapter 2 enable Network Adapter and select Internal Network and give Name: privnet (Private Network).

Check AutoMount -> OK . Step: 12) Goto Shared Folder and Browse the folder where all the softwares are available .Linux Installation Step: 11) Goto Adapter 3 Enable Network Adapter and select Bridge Network and select Name: present network using for getting Internet to HOST System -> OK.

.Linux Installation Step: 13) Click on OK. Step: 14) Start the Virtual Machine and press ENTER on 1st option.

Linux Installation Step: 15) The booting files are loading -> Please Wait Step: 16) Goto to SKIP. (Mandatory) .

Linux Installation Step: 17) Click on Next Step: 18) Default language selection English -> NEXT .

S English -> Next Step: 20) Select Basic Storage Devices -> Next .Linux Installation Step: 19) Default Keyboard selection U.

Linux Installation Step: 21) Click on Yes. discard any data -> Next Step: 22) Write the fully-fledged hostname -> Next .

.Linux Installation Step: 23) Select timezone (Asia/Kolkata). Step: 24) Password for Root user (oracle) -> Next.

.Linux Installation Step: 25) Select Use All Space and check on Review and modify partitioning layout -> Next. Step: 26) Give the SWAP SIZE double the size of RAM size given in the beginning -> Next.

.Linux Installation Step: 27) Click on Format. Step: 28) Click on Write changes to disk.

Linux Installation Step: 29) Click on Next. Step: 30) Select Database Server and select Customize Now -> Next .

Step: 32) Goto Applications and select 1st three options -> Next .Linux Installation Step: 31) Goto Desktops and select all options.

Linux Installation Step: 33) The Installation process started -> Please wait………. . Step: 34) The Installation process continued -> Please Wait…….

Linux Installation Step: 35) Click on Close -> Power off the machine -> OK. Step: 36) Goto Settings .

Linux Installation Step: 37) Goto Storage and click on Controller:SATA -> Add Hard Drive -> Create new disk Step: 38) Select VDI (VirtualBox Disk Image) -> Next. .

.00 GB size) -> Create Step: 40) Start the Virtual Machine and the booting will be like this…….Linux Installation Step: 39) Give the location of the Virtual Drive to be located with different name and (24.

Linux Installation Step: 41) After the booting is completed on the Welcome screen click Forward. I agree to the License Agreement -> Forward . Step: 42) Select Yes.

Linux Installation Step: 43) Select No. I’ll connect later Step: 44) Click Forward . I prefer to register at a later time -> Forward -> No thanks.

Linux Installation Step: 45) Click on Forward by leaving the USER Creation blank. Step: 46) The time will be automatically and click Forward .

Linux Installation Step: 47) Uncheck Enable kdump? Click Finish Step: 48) Check on Don not show me this again -> Close .

Linux Installation Step: 49) Goto System -> Preference -> Network Connections Step: 50) Select System eth0 -> Edit and check Connect automatically. .

168.255.1.Linux Installation Step: 51) Goto IPv4 Settings tab and select Manual then click on Add and enter the appropriate IP Address with subnet mask which ever HOST machine is getting via LAN/WiFi (192.0) Step: 52) Goto IPv6 Settings and select Ignore -> Apply .20/255.255.

255.1/255. Step: 54) Goto IPv4 Settings tab and select Manual then click on Add and enter the appropriate IP Address with subnet mask (192.168.0) .255.Linux Installation Step: 53) Now goto System eth1 and click on edit and check Connect automatically.20.

.Linux Installation Step: 55) Goto IPv6 Settings and select Ignore -> Apply Step: 56) Now goto System eth2 and click on edit and check Connect automatically.

Step: 58) Goto IPv6 Settings and select Ignore -> Apply .Linux Installation Step: 57) Goto IPv4 Settings tab and select Automatic (DHCP).

. Step: 60) Right click on desktop and select Open Terminal.Linux Installation Step: 59) Click on Close.

.com) Step: 62) Goto Devices and Select Insert Guest Additions CD Image….Guest Additional Box Drivers Installation Step: 61) Try to ping in order to check the internet is working (ping yahoo.

For that we will do some updates and installations using yum command .Guest Additional Box Drivers Installation Step: 63) Click on RUN Step: 64) Here we can see that Building the main Guest Additions module FAILED.

Guest Additional Box Drivers Installation Step: 65) Try to update the present packages (yum update). Step: 66) The list of packages will be displayed and it will ask for permission to continue Y/N. . Type Y to continue updating.

Type Y . it will ask permission to download Y/N. Type Y in order to install the updated packages…… Step: 68) After full updating process completed try to install kernel package (yum install kernel-uek-devel).Guest Additional Box Drivers Installation Step: 67) After completing the updated packages it will ask permission for installation/ transaction Y/N.

Guest Additional Box Drivers Installation Step: 69) After installing the kernel package try to reboot….. Step: 70) Now try to install Guest Additions CD Image again. This time the installation will be success… .

Mounting a Hard Disk and ASM Disks Step: 71) Goto System and select Firewall… Step: 72) Click on Disable and Apply and close the window… .

and add entry in fstab file.Mounting a Hard Disk and ASM Disks Step: 73) Goto /dev directory (#cd /dev) and list all the drives added to this node (# ls sd*) you will find sdb is blank. 1 for only 1 partition. p for Primary Partition. Here we can see that sdb1 (partition) is created. leave the default values just press ENTER. now give p printing the tables and w for writing those tables on the disk…… Step: 74) Now just list the disks by giving (# ls /dev/sd*). it will display all the commands from that give n for New Partition. Now formatting that partition just give (# mke2fs –j /dev/sdb1). So Partition sdb drive (# fdisk sdb). (# vi /etc/fstab) . Here hitting the before command just try to give m for help.

5th column (default values) Step: 76) Create a directory as given in fstab file (# mkdir /u01). 4th column (mode). 1st column (the partitioned drive). and try to give (df –h) to see all the mounted drives. the drive will automatically mounted.Mounting a Hard Disk and ASM Disks Step: 75) Now add the entry as follows. . and issue the command (mount –a). 2nd column (mount point). 3rd column (file type of the drive).

Mounting a Hard Disk and ASM Disks Step: 77) Adding the VOTING Disks. Goto. to Settings -> Storage -> Controller:SATA -> Add HardDisk -> Create new Disk Step: 78) Select VDI (VirtualBox Disk Image) -> Next .

and create as same three disks with 1GB of size… .Mounting a Hard Disk and ASM Disks Step: 79) Select Fixed Size -> Next Step: 80) Give the appropriate location and give the size as 1GB.

Mounting a Hard Disk and ASM Disks Step: 81) The disks must look like this….. Goto File -> Virtual Media Manager . Step: 82) To convert the three VOTING DISKS to Shareable.

Mounting a Hard Disk and ASM Disks Step: 83) The Virtual Media Manager and the three VOTING DISKS. Step: 84) Select 1st Voting Disk -> Modify .

. Step: 86) Try to do other 2 VOTING DISKS. . And it should look like this on the main page….Mounting a Hard Disk and ASM Disks Step: 85) Select Shareable -> OK.

Mounting a Hard Disk and ASM Disks Step: 87) In Node 2 goto Settings -> Storage -> Choose existing disk Step: 88) In Node 2 also it should like this……. .

. Similarly for other two disks (sdd.. sde)… Step: 90) After making partitions for three disks we should see like the below at last….Mounting a Hard Disk and ASM Disks Step: 89) Now list the newly added disks (# ls /dev/sd*). and try to partition those three disks with fdisk command (fdisk /dev/sdc -> n -> p -> 1-> Enter key -> Enter key -> p -> w.

Step: 91) Try to grant permissions to complete preinstall packages successfully.Environment for RAC Step: 91) Install preinstall packages using yum (yum install oracle-rdbms-server-11gR2-preinstall). .

(# mkdir –p /u01/app/11. And comment the 2nd line.0/grid) | (# mkdir –p /u01/app/oracle/ (chown –R oracle:oinstall /u01) | (# chmod –R 0755 /u01) . Step: 94) Create directories for GRID_HOME & ORACLE_HOME and change permissions and ownership to the parent dorectory.Environment for RAC Step: 93) Give the ip-address and hostnames in hosts file (# vi /etc/hosts) in both nodes. (# oracleasm configure -i) | (oracle -> oinstall -> y -> y) . so that from next time they will initialize after booting.Environment for RAC Step: 95) Try to download and install OracleASM Libs which you can download from http://www. and configure to oracle user and oinstall group.html Step: 96) In Node 1 initialize oracleasm by giving (# oracleasm init).

then just try to scan and list the disks which have been created in Node 1. (# oracleasm scandisks) | (# oracleasm listdisks) .Environment for RAC Step: 97) After oracleasm configuration is completed now try to create the (three VOTING DISKS) to ASM DISKS (/dev/sdc1 | /dev/sdd1 | dev/sde1) Step: 98) In Node 2 try the same thing Install OracleAsm Libs and configure oracleasm to oracle user and oinstall group.

Environment for RAC

Step: 99) Give a password to Oracle user in both the nodes. (# passwd oracle) | (default password is

Step: 100) Try to connect to self and other nodes with the help of ssh.

Environment for RAC

Step: 101) Try to generate keygen of ssh using the following command (# ssh-keygen –t rsa -> Enter
key -> Enter key -> Enter key), go to .ssh directory in oracle home and change the of to
authorized_keys (Node 1), same check connectivity in Node 2 and generate keygen and change the
name of to authorized_keys2 (Node 2), and copy the authorized_keys file from Node 1
to Node 2 using the command (scp /.ssh/authorized_keys @rac2:/home/oracle/.ssh), vice-versa
from Node 2 to Node 1 (scp /.ssh/authorized_keys2 @rac1:/home/oracle/.ssh). This is setting up a
Passwordless Connectivity between two nodes.

Step: 102) The below is the Passwordless Connectivity between two nodes.

Installation of RAC
Step: 103) Copy the Software from the SharedFolder.

Step: 104) Change the ownership to oracle user and oinstall group (# chown oracle:oinstall
p133390677_112020_Linux_x86-64_*) and permissions to 0755 (# chmod 0755
p133390677_112020_Linux_x86-64_*) of the copied software.

($ unzip p133390677_112020_Linux_x8664_1of7. Step: 106) Goto to the folder which has the name as grid. ($ cd /grid/) . Similarly all 7 zip files.Installation of RAC Step: 105) unzip the software using oracle

Installation of RAC Step: 107) Just try to run runInstaller with oracle user. The following message must appear. ($ . Step: 108) Select Skip software updates -> Next Step: 109) Now Select Install and Configure Oracle Grid Infrastructure as a Cluster -> Next ./runInstaller) .

Installation of RAC Step: 110) Select Typical Installation -> Next Step: 111) Click on Add .

Installation of RAC Step: 112) Add Other node Public and Virtual Hostnames -> OK Step: 113) Click on Ssh Connectivity .

Installation of RAC Step: 114) Give the password of the oracle user -> Test -> Setup Step: 115) The following pop-up should come for successful passwordless connectivity -> OK .

Installation of RAC Step: 116) Give the SCAN name as we have given the hosts file ($ cat /etc/hosts) -> Next Step: 117) The pop-up should come…… .

Installation of RAC Step: 118) Check the locations in Node 1 & Node 2 should be identical. And change Cluster Registry Storage Type (from File System to Oracle Automatic Storage Management) and give the SYSASM password -> Next Step: 119) Give the DiskGroup Name and if the creation of VOTING DISKS are done with correct oracleasmlibs then those three Disks should appear automatically. otherwise we should give the manual path by clicking Change Directory Path (/dev/oracleasm/disks/*) .

Installation of RAC Step: 120) The oraInventory path is default -> Next Step: 121) Prerequisite checking is going Please Wait….. .

Installation of RAC Step: 122) The two Errors can be ignored. because in test environment we will not configure NTP. MDNS -> Next Step: 123) Check on Ignore All -> Yes -> Next .

Installation of RAC Step: 124) The Installation Process is going in Node 1 Step: 125) Now the Installation Process is going in Remote Node 2. .

sh) | (/u01/app/ . Step: 127) The display should appear like the following.0/grid/ in both Nodes with root user.Installation of RAC Step: 126) Just try in run the oraInstRoot.2. (# /u01/app/oraInventory/ in Node 1 & Node 2. ( and root.

Succeeded) .sh the following message should appear (Configure Oracle Grid Infrastructure for a Cluster….Installation of RAC Step: 128) The display should appear like the following. ( Step: 129) At last in root..

sh) click on OK in installer.Installation of RAC Step: 130) After successfully configuration in both nodes (root.. post configuration should be done successfully…. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Happy Learning>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> . Step: 131) At last after all the pre and post configuration in succeeded then in Node 1 or Node 2 just check the status of the RAC (crsctl stat res -t).