Professional Documents
Culture Documents
A) This document explains, in detail, the steps required to install the Oracle Grid
Infrastructure 11gR2 (11.2.0.1.0), enable the OHAS services, create an ASM instance
and diskgroups through the OUI (Oracle Universal Installer).
B) Note: Before start with the installation, please check the required hardware & OS
requirements in the next manual:
http://www.oracle.com/pls/db112/portal.portal_db?selected=11&frame=
Installation steps:
3) Select the IP address (for this example we will use: 192.168.187.128) provided by the
host from the eth0 interface:
4) Using the IP address from the eth0 interface (for this example: 192.168.187.128)
connect thru a putty or ssh session as follow (Login: root / Password: oracle):
5) Verify the RAM, swap & tmp in the system, the minimum required RAM is 1.5 GB for
Oracle Grid Infrastructure for a cluster, or 2.5 GB for Grid Infrastructure for a cluster and
Oracle Server RAC. The minimum required swap space is 1.5 GB. Oracle recommends
that you set swap space to 1.5 times the amount of RAM for systems with 2 GB of RAM
or less. For systems with 2 GB to 16 GB RAM, use swap space equal to RAM. For
systems with more than 16 GB RAM, use 16 GB of RAM for swap space. Ensure that
you have at least 1 GB of space in /tmp. If this space is not available, then increase the
size, or delete unnecessary files in /tmp.
6) Ensure you have at least 4.5 GB of space for the grid infrastructure for a (Grid home):
7) Create the oracle OS user and oinstall & dba groups and create base directories
http://www.oracle.com/technology/software/tech/linux/asmlib
8.1) For this example we are using the next kernel release:
http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html
a) oracleasm-support-2.1.3-1.el5.i386.rpm
b) oracleasmlib-2.0.4-1.el5.i386.rpm
c) oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5.i686.rpm
http://www.oracle.com/technology/tech/linux/asmlib/install.html
9) List the disks available for ASM/ASMLIB, for this example we will use 3 SCSI disks of
10 GB each:
11) If the partitions do not exists then create one partition per disk:
14) Download the Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0)
for Linux x86 from
http://www.oracle.com/technology/software/products/database/index.html
15) Download the Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86 from
http://www.oracle.com/technology/software/products/database/index.html
16.1) Create a stage directory, for this example I am creating it at /u01 filesystem:
# mkdir /u01/stage
16.2) Then upload the three *.zip files to your Linux box and place the files at your
staging directory:
16.4) You will see 2 new directories (grid & database) on the /u01/stage directory:
17) Switch to the oracle OS user, setup & set the environment variables in the
initialization file (for this example we are using bash shell (.bash_profile)):
ORACLE_HOME=/u01/app/11.2.0/grid
ORACLE_SID=+ASM
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_HOME
export ORACLE_SID
export PATH
echo $ORACLE_HOME
export $ORACLE_SID
export $PATH
18) Install the Oracle Grid Infrastructure 11gR2 from the graphical session as oracle
OS user (for this example we will use VNCserver):
18.2) Connect to the vncserver using the IP address associated with the host:
$ /u01/stage/grid/runInstaller
18.4) Select: Install and Configure Grid Infrastructure for a Standalone Server.
18.6) Create the desired diskgroups through the Create ASM Disk Group window, (for
this Example we are creating the DATA diskgroup, as Normal redundancy diskgroup,
using the ORCL:ASMDISK1 & ORCL:ASMDISK2 ASMLIB disks):
18.7) Set the desired password for the ASM & ASMSNMP users through the Specify
ASM Password window:
18.8) If you password does not conform the Oracle recommended standards then you
will receive the next warning, so you can just ignore it & press [Yes] or provide a
stronger password.
18.9) Assign the OS groups for the ASM database Administrator, ASM Instance
Administrator Operator & ASM instance Administrator through the Privileged
Operating System Groups window, (for this example we will use dba OS group for the
3 ASM groups, but you are always welcome to specify different OS groups to enforce
more security and separate tasks & roles):
18.10) Specify the Oracle Home & Oracle Base directories through the Specify
Installation Location window:
18.11) Accept the Oracle Inventory Location, by pressing the [Next] button through the
Create Inventory window:
18.12) Some OS requirements (swap & kernel parameters) did not pass the OUI
verification, please review each requirement, through the Perform Prerequisites
Checks window (below):
18.13) Please press the [Fix & Check Again] button (above) to correct the prerequisites,
then the Execute Fixup Script window will be displayed:
18.14) Then run the runfixup.sh script as root user to implement the fixes:
18.15) Press the [OK] button after execute the runfixup.sh script through the Execute
Fixup Script window:
18.16) The required kernel parameters were adjusted but the swap area still needs to be
increased:
18.17) You can ask your SA to resize the swap area as suggested by the OUI (see
above), for this example we will add a 1GB swap file (on the / directory) as described in
the next document:
http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-
adding.html
Note: Enable it at boot time, edit /etc/fstab and include the new swap device (/swapfile):
18.18) After the swap area was increased please press the [Check Again] button,
through the Perform Prerequisites Checks window (below):
18.19) The Summary window will appear, so please review it and press the [Finish]
button (below) to start with the Grid Infrastructure Installation & ASM instance creation:
18.22) Then return to the Execute Configuration Scripts window and press the [OK]
button:
18.24) Confirm the 11gR2 Grid Infrastructure Installation completed successfully, then
press the [Close] button:
19) Verify the OHAS & CSS services are up and running:
21) Run the ASMCA through a graphical session and create the RECO diskgroup on the
ORCL:ASMDISK3 (/dev/oracleasm/disks/ASMDISK3) ASMLIB disk:
21.2) Specify the Disk Group Name as RECO (as External redundancy diskgroup),
select the ORCL:ASMDISK3 disk (below), press the [Show Advanced Options] button to
display the AU & Compatibility attributes (these are modifiable but for this example we
are using the default values):
21.3) And finally press the [OK] button to create the RECO diskgroup:
21.4) Review the diskgroup creation (below) and press the [Exit] button: