Professional Documents
Culture Documents
Step by Step Install Oracle Grid 11.2.0.3 On Solaris 11.1: Osama Mustafa
Step by Step Install Oracle Grid 11.2.0.3 On Solaris 11.1: Osama Mustafa
Introduction
Oracle Cluster ware is portable cluster software that allows clustering of independent servers so that they cooperate as a single system. Oracle
Cluster ware was first released with Oracle Database 10g Release 1 as the required cluster technology for Oracle Real Application Clusters
(RAC). Oracle Cluster ware is an independent cluster infrastructure, which is fully integrated with Oracle RAC, capable of protecting any kind of
application in a failover cluster.
Oracle Grid Infrastructure introduces a new server pool concept allowing the partitioning of the grid into groups of servers. Role-separated
Management can be used by organizations, in which cluster, storage, and database management functions are strictly separated. Cluster-aware
commands and an Enterprise Manager based cluster and resource management simplify grid management regardless of size. Further
enhancements in Oracle ASM, like the new ASM cluster file system or the new dynamic
Volume manager, complete Oracles new Grid Infrastructure solution.
Osama Mustafa Oracle ACE, a database specialist, Certified Oracle Professional (10g, 11g), Certified Ethical hacker (Penetration testing),
and Sun System Administrator, author of book Oracle Penetration Testing. Publishes many articles, including Oracle database articles in his blog.
Twitter: @OsamaOracle.
G+: Osama Mustafa.
SlidShare: Osama Mustafa.
LinkedIn: http://www.linkedin.com/in/osamamustafa.
Blog: http://osamamustafa.blogpsot.com.
The Below Diagram Describe what is my setup, Note theres no IP , Hostname will be mentioned in this document and if you notice any It will
not be the real one, This Part of the document only Describe the Grid and Database installation for Fusion middlware part it will be Published
Separately. Also if you follow this document included with other document you can build full Environment Configured and ready to use with
Single-Sign-On.
Note: All Software was downloaded from oracle OTN Here and e-delivery here.
Lets Start:
Step #1:
You need to know how the ect/hosts will look like after adding IPs:
#########NODES#########
180.111.20.21 Test-db1
180.111.20.22 Test-db2
########################
#########NODE-One-IP###########
180.111.20.28 Test-db1-vip
10.0.0.1 Test-db1-priv
################################
#########NODE-Two-ip############
180.111.20.29 Test-db2-vip
10.0.0.2 Test-db2-priv
################################
######SCAN-IP##################
180.111.20.30 Test-db-scan
###############################
Step #2:
Check OS Version Using the below command:
/usr/platform/uname I/sbin/prtdiag
Step #3 (Optional):
Because I was working remotely not directly from Data Center, I configure Vncserver to enable access to server GUI and Run the Installer from
there.
[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true
d. Instead of step b you can do the below , I just want to mention both :
f. Just to make sure my work was Right I restart the Server and check vncsever again.
Step #4 (Optional):
1- I was thinking should I copy oracle software 4 times and its almost 35 GB so 35*4 you are talking about huge miss of time so
what I did here copy the files Once on one server and Configure NFS to share it between all Nodes, more easy and Save your
time.
a. First you have to enable NFS on All Server using the below command
svcadm enable nfs/server
svcadm restart nfs/server
b. If you copied files on server one then this command should be done on server one, if you copied the files on server 2
this command should be done on server 2. Depend where you copied software.
As any Linux/Unix There is Prerequisite for Operating system follow the below
Oracle Solaris 11 provide you with Command Called ZFS (amazing command to manage File system), I Create Oracle Home Using
this command, also create mount point /u01
Create Groups
mkdir -p /u01/app/11.2.0/grid
mkdir -p /u01/app/grid
chown grid:oinstall /u01/app/11.2.0/grid
chown grid:oinstall /u01/app/grid
#!important!# chown -R grid:oinstall /u01
Step #6:
export ORACLE_BASE=/u01/app/oracle/
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export GRID_HOME=/u01/app/11.2.0/grid/
export ORACLE_SID=TEST1
export
PATH=$PATH:/usr/sbin:/usr/X11/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sfw/bin:/usr/sfw/sbin: /usr/ccs/bin: /usr/local/bin:/usr/local/sbin:
$ORACLE_HOME /bin:$GRID_HOME/bin:.
cd /export/home/oracle
scp .profile oracle@Server-ip:/export/home/oracle/
Step #7:
1. The broadcast must work across any configured VLANs as used by the public or private interfaces.
2. Across the broadcast domain as defined for the private interconnect
3. On the IP address subnet ranges 224.0.0.0/24 and 230.0.1.0/24
Regarding to oracle to you need to check udp time using the below command
To avoid reboot you can set it on memory and reboot time using the below
On Memory
Step #8:
In this step you need to make sure of disks on both nodes, in my case I am using EMC storage.
Note: In Unix Each Disk have slide from 0-6 like the below :
Step #9:
Step #10:
By Default Oracle Solaris SPARC prevent root access, for example we created oracle and grid user but we cannot access to root using su
command to enable root access for oracle and grid do below
oracle::::defaultpriv=basic,net_privaddr;roles=root
grid::::defaultpriv=basic,net_privaddr;roles=root
Step #11:
Now we need to configure memory Parameter for Oracle and Grid User and make permanent
Step #12:
During installation Oracle will check swap memory so you need to increase swap memory depend on your setup for sure I will use ZFS
command.
Step #13:
One more step Configure SSH Between Nodes You can do this Step During installation or Using the the Below command, Oracle Provide you
with new way, you can now configure SSH using sshsetup its already exists within media
# ./sshUserSetup.sh -hosts " node1 node2 node3 node4" -user oracle -advanced noPromptPassphrase
# ./sshUserSetup.sh -hosts " node1 node2 node3 node4" -user grid -advanced noPromptPassphrase
Start Install Grid Infrastructure, in my case I choose to install Software only then Configure ASM in this way if error appeared I will know where
to start troubleshooting. Follow the screens ( this steps should be Done As Grid User )
After success installation now I need to Configure ASM ( This Step should be Done as Grid User) , From One Node Only.
export ORACLE_HOME=/u01/app/11.2.0/grid/
cd $ORACLE_HOME/bin
Run ./asmca
REDUNDANCY:
Step #16:
Finally You Are done with Grid Infrastructure and now you should configure Database on RAC (this step should be done as Oracle User),
Usually I am installing Software only then Called dbca to configure Instance Install Software.
Done!!
Reference: