You are on page 1of 48

11gR2 Grid Infrastructure for Clusters

Please note that this cheat sheet is not meant to substitute the official Oracle 11gR2 documentation. If you need more information about 11gR2 you should consult the Oracle 11gR2 documentation.

Table of Contents
1)Setup system related tasks............................................................................................................ 2 Create GI group and user etc.......................................................................................................2 Setup swap and system limits etc................................................................................................2 Setup /etc/hosts for Single Client Access Name (SCAN)........................................................... 2 Create Grid Infrastructure directories etc....................................................................................3 Setup SSH................................................................................................................................... 3 Create ASM candidate disks etc..................................................................................................5 2)Prepare for a Grid Infrastructure for Clusters installation............................................................ 7 Install ORCLudlm (SPARC only)...............................................................................................7 Install RAC framework resources............................................................................................... 7 Setup VNC.................................................................................................................................. 7 3)Install Grid Infrastructure for Clusters via a VNC client............................................................. 8 Install and configure Grid Infrastructure for Clusters................................................................. 8 Display the Grid Infrastructure resources................................................................................. 17 Create another ASM disk group................................................................................................ 18 4)Install and create an 11gR1 database via a VNC client ............................................................. 19 Install the 11gR1 database software..........................................................................................19 Create the 11gR1 database using dbca...................................................................................... 21 Create the 11gR1 database listener using netca........................................................................ 22 Copy some 11gR1 database files to the another node............................................................... 24 Verify the 11gR1 database installation......................................................................................26 Check the Grid Infrastructure resources................................................................................... 28 5)Install and create an 11gR2 database via a VNC client ............................................................. 29 Install the 11gR2 database software..........................................................................................29 Create the 11gR2 database using dbca...................................................................................... 30 Copy some 11gR2 database files to the another node............................................................... 31 Verify the 11gR2 database installation......................................................................................33 Check the Grid Infrastructure resources................................................................................... 34 6)Using SCAN for the 11gR2 single instance database................................................................ 35 7)Place everything under Oracle Solaris Cluster ......................................................................... 36 Register the resource types........................................................................................................36 Register and enable the clustered ASM instance resource........................................................37 Register and enable the clustered ASM disk group resource.................................................... 38 Register and enable the 11gR1 database and listener resources .............................................. 38 Switch the 11gR1 Resource Group........................................................................................... 40 Register and enable the 11gR2 database resource ....................................................................41 Switch the 11gR2 Resource Group...................................................................................... 44 Final picture ............................................................................................................................. 47

1) Setup system related tas s


Create GI group and user etc.
bash!".##$ %i &etc&nss'itch.conf (remo%e nis from pass'd) and group)) bash!".##$ groupadd !g "## oinstall bash!".##$ groupadd !g "#1 dba bash!".##$ useradd !g "## !G "#1 !u "## !d &e*port&home&oragrid !s &usr&bin&bash oragrid bash!".##$ m dir !p &e*port&home&oragrid bash!".##$ cho'n oragrid)oinstall &e*port&home&oragrid bash!".##$ pass'd oragrid +e' Pass'ord) Re!enter ne' Pass'ord) pass'd) pass'ord successfully changed for oragrid bash!".##$

Setup s'ap and system limits etc.


bash!".##$ m file ,g &s'apfile bash!".##$ s'ap !a &s'apfile -dd to &etc&%fstab bash!".##$ cat &etc&%fstab . grep s'apfile &s'apfile ! ! s'ap ! no bash!".##$ Copy the follo'ing entries into &etc&pro/ect bash!".##$ cat &etc&pro/ect system)#))))process.ma*!sem!nsems0(pri%ileged12#2,1deny)3pro/ect.ma*!shm! memory0(pri%ileged12144#2"2555521deny) user.root)1)))) nopro/ect)2)))) default)"))))process.ma*!file!descriptor0(pri%1655"61deny)3pro/ect.ma*!shm! memory0(pri%122424672461deny)3pro/ect.ma*!user!process0(basic116",21deny) group.staff)1#)))) bash!".##$

Setup &etc&hosts for Single Client -ccess +ame (SC-+)


8ere1 frea !scan!lh 'ill be used as the SC-+ name and frea !1 and frea !2 are 9IPs for each cluster node that SC-+ 'ill use. :ou 'ill need to determine 'hich IP addresses are free to use for your cluster. bash!".##$ cat &etc&hosts $ $ Internet host table

$ ))1 localhost 127.#.#.1 localhost 1#.11.1,,.56 pfrea 1 loghost 1#.11.1,,.57 pfrea 2 $ Cluster +ode 1#.11.1,,.6# %;frea 1a frea !scan!lh 1#.11.1,,.5, frea !1 1#.11.1,,.54 frea !2 bash!".##$

Create Grid Infrastructure directories etc.


bash!".##$ m dir !p &u#1&app&oragrid bash!".##$ m dir !p &u#1&app&oraIn%entory bash!".##$ m dir !p &u#1&app&11.2.#&grid bash!".##$ cho'n !R oragrid)oinstall &u#1 bash!".##$ chmod !R 775 &u#1

Setup SS8.
On pfrea 1) bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1# !bash!".##> m dir .ssh !bash!".##> chmod 7## .ssh !bash!".##> cd .ssh On pfrea 2) bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1# !bash!".##> m dir .ssh !bash!".##> chmod 7## .ssh !bash!".##> cd .ssh On pfrea 1) +ote) 'e 'ill also +O? specify a passphrase. !bash!".##> ssh! eygen !t rsa Generating public&pri%ate rsa ey pair. @nter file in 'hich to sa%e the ey (&e*port&home&oragrid&.ssh&idArsa)) @nter passphrase (empty for no passphrase)) @nter same passphrase again) :our identification has been sa%ed in &e*port&home&oragrid&.ssh&idArsa. :our public ey has been sa%ed in &e*port&home&oragrid&.ssh&idArsa.pub. ?he ey fingerprint is) e6)6")c4)71)fe)d1),f)71)77)7#)47)25)2a)ee)a4)"" oragridBpfrea 1 !bash!".##> !bash!".##> p'd &e*port&home&oragrid&.ssh

Generic

=anuary 2##5

Generic

=anuary 2##5

!bash!".##> cat idArsa.pub CC authori;edA eys !bash!".##> chmod 6## authori;edA eys !bash!".##> scp authori;edA eys pfrea 2)&e*port&home&oragrid&.ssh ?he authenticity of host Dpfrea 2 (1#.11.1,,.57)D canDt be established. RS- ey fingerprint is 2d)d"),2)72)22)fe)#c)2,)a7)76)fb)7d)65)c2)da)a4. -re you sure you 'ant to continue connecting (yes&no)E yes Farning) Permanently added Dpfrea 211#.11.1,,.57D (RS-) to the list of no'n hosts. Pass'ord) authori;edA eys 1##G . HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHH. 22" ##)## !bash!".##> On pfrea 2) +ote) 'e 'ill also +O? specify a passphrase. !bash!".##> ssh! eygen !t rsa Generating public&pri%ate rsa ey pair. @nter file in 'hich to sa%e the ey (&e*port&home&oragrid&.ssh&idArsa)) @nter passphrase (empty for no passphrase)) @nter same passphrase again) :our identification has been sa%ed in &e*port&home&oragrid&.ssh&idArsa. :our public ey has been sa%ed in &e*port&home&oragrid&.ssh&idArsa.pub. ?he ey fingerprint is) be),f)e6)12)ff)ff)#6)b7)c7)62)1b)22)"b)d")5a)e, oragridBpfrea 2 !bash!".##> !bash!".##> p'd &e*port&home&oragrid&.ssh !bash!".##> cat idArsa.pub CC authori;edA eys !bash!".##> chmod 6## authori;edA eys !bash!".##> scp authori;edA eys pfrea 1)&e*port&home&oragrid&.ssh ?he authenticity of host Dpfrea 1 (1#.11.1,,.56)D canDt be established. RS- ey fingerprint is b,)26)db)d#),,)ed)5c)"")b5)b#)d#)f1)d6)be)a#)",. -re you sure you 'ant to continue connecting (yes&no)E yes Farning) Permanently added Dpfrea 111#.11.1,,.56D (RS-) to the list of no'n hosts. Pass'ord) authori;edA eys 1##G . HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHH. 226 ##)## !bash!".##> ?est ssh has been setup correctly. On pfrea 1) !bash!".##> ssh pfrea 1 date ?he authenticity of host Dpfrea 1 (1#.11.1,,.56)D canDt be established. RS- ey fingerprint is b,)26)db)d#),,)ed)5c)"")b5)b#)d#)f1)d6)be)a#)",.

-re you sure you 'ant to continue connecting (yes&no)E yes Farning) Permanently added Dpfrea 111#.11.1,,.56D (RS-) to the list of hosts. Iri <ay 12 #7)"#)55 PJ? 2#1# !bash!".##> !bash!".##> ssh pfrea 1 date Iri <ay 12 #7)"#)57 PJ? 2#1# !bash!".##> ssh pfrea 2 date Iri <ay 12 #7)"1)#2 PJ? 2#1# !bash!".##> On pfrea 2)

no'n

!bash!".##> ssh pfrea 2 date ?he authenticity of host Dpfrea 2 (1#.11.1,,.56)D canDt be established. RS- ey fingerprint is dc)6e)af)"6)f,)c7)72)b1)c6)b1)1c)46)e")da)11)51. -re you sure you 'ant to continue connecting (yes&no)E yes Farning) Permanently added Dpfrea 211#.11.1,,.56D (RS-) to the list of no'n hosts. Iri <ay 12 #7)"")#2 PJ? 2#1# !bash!".##> !bash!".##> ssh pfrea 2 date Iri <ay 12 #7)"")#2 PJ? 2#1# !bash!".##> ssh pfrea 1 date Iri <ay 12 #7)"")#, PJ? 2#1# !bash!".##>

Create -S< candidate dis s etc.


bash!".##$ clde% list !% JIJ Je%ice Iull Je%ice Path !!!!!!!!!! !!!!!!!!!!!!!!!! d1 pfrea 1)&de%&rds d2 pfrea 1)&de%&rds d2 pfrea 2)&de%&rds d" pfrea 1)&de%&rds d" pfrea 2)&de%&rds d2 pfrea 1)&de%&rds d2 pfrea 2)&de%&rds d5 pfrea 1)&de%&rds d5 pfrea 2)&de%&rds d6 pfrea 1)&de%&rds d6 pfrea 2)&de%&rds d7 pfrea 1)&de%&rds d7 pfrea 2)&de%&rds d, pfrea 1)&de%&rds d, pfrea 2)&de%&rds d4 pfrea 1)&de%&rds d4 pfrea 2)&de%&rds d1# pfrea 2)&de%&rds bash!".##$ bash!".##$ for i in 2 " 2 5 6 7 , 4

&c"t5#####@#1,"@112#d# &c"t6##C#II##########42,II1@662"@6#Id# &c"t6##C#II##########42,II1@662"@6#Id# &c"t6##C#II##########42,II1@662"@6#@d# &c"t6##C#II##########42,II1@662"@6#@d# &c"t6##C#II##########42,II1@662"@6#Jd# &c"t6##C#II##########42,II1@662"@6#Jd# &c"t6##C#II##########42,II1@662"@6#Cd# &c"t6##C#II##########42,II1@662"@6#Cd# &c"t6##C#II##########42,II1@662"@6#Kd# &c"t6##C#II##########42,II1@662"@6#Kd# &c"t6##C#II##########42,II1@662"@6#-d# &c"t6##C#II##########42,II1@662"@6#-d# &c"t6##C#II##########42,II1@662"@6#4d# &c"t6##C#II##########42,II1@662"@6#4d# &c"t6##C#II##########42,II1@662"@6#,d# &c"t6##C#II##########42,II1@662"@6#,d# &c"t5#####@#16-@6K7#d#

C do C dd if0&de%&;ero of0&de%&did&rds &d>LiMs# bs01#25 count02## C cho'n oragrid)oinstall &de%&did&rds &d>LiMs# C chmod 66# &de%&did&rds &d>LiMs# C ls !l8N &de%&did&rds &d>LiMs# C done 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 62 <ay 17 #")2" &de%&did&rds &d2s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 46 <ay 17 #")2" &de%&did&rds &d"s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 12, <ay 17 #")2" &de%&did&rds &d2s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 16# <ay 17 #")2" &de%&did&rds &d5s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 142 <ay 17 #")2" &de%&did&rds &d6s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 222 <ay 17 #")2" &de%&did&rds &d7s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 256 <ay 17 #")2" &de%&did&rds &d,s# 2##O# records in 2##O# records out cr'!r'!!!! 1 oragrid oinstall 2"41 2,, <ay 17 #")2" &de%&did&rds &d4s# bash!".##$ On pfrea 2. bash!".##$ for i in 2 " 2 5 6 7 , 4 C do C cho'n oragrid)oinstall &de%&did&rds C chmod 66# &de%&did&rds &d>LiMs# C ls !l8N &de%&did&rds &d>LiMs# C done cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 cr'!r'!!!! 1 oragrid oinstall 2"41 bash!".##$

&d>LiMs#

62 <ay 17 #")22 &de%&did&rds &d2s# 46 <ay 17 #")22 &de%&did&rds &d"s# 12, <ay 17 #")22 &de%&did&rds &d2s# 16# <ay 17 #")22 &de%&did&rds &d5s# 142 <ay 17 #")22 &de%&did&rds &d6s# 222 <ay 17 #")22 &de%&did&rds &d7s# 256 <ay 17 #")22 &de%&did&rds &d,s# 2,, <ay 17 #")22 &de%&did&rds &d4s#

2) Prepare for a Grid Infrastructure for Clusters installation


Install ORCNudlm (SP-RC only) bash!".##$ p'd &net&d%5&s'lib&oracle&released&db&11gR2&11.2.#.1&sparc!sunos&62bit! installable&grid&udlm bash!".##$ ls !l total 1,16 !r'!r!!r!! 1 root root ,44"75 +o% 6 2##4 ORCNudlm.tar.P !r'!r!!r!! 1 root root 724" +o% 6 2##4 R@-J<@.udlm !r'!r!!r!! 1 root root 77# +o% 6 2##4 releaseAnotes.""21# bash!".##$ cp ORCNudlm.tar.P &%ar&tmp bash!".##$ cd &%ar&tmp bash!".##$ uncompress ORCNudlm.tar.P bash!".##$ tar !*f ORCNudlm.tar bash!".##$ p gadd !d . ORCNudlm

Install R-C frame'or

resources

bash!".##$ clrt list SQ+F.Nogical8ostname)" SQ+F.Shared-ddress)2 bash!".##$ bash!".##$ clrt register SQ+F.racAframe'or bash!".##$ clrt register SQ+F.racAudlm bash!".##$ clrg create !S rac!fm' !rg bash!".##$ clrs create !g rac!fm' !rg !t SQ+F.racAframe'or bash!".##$ clrs create !g rac!fm' !rg !t SQ+F.racAudlm !p resourceAdependencies0rac!fm' !rs rac!udlm!rs bash!".##$ clrg online !e< rac!fm' !rg bash!".##$ clrs status 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! rac!fm' !rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 State !!!!! Online Online Online Online

rac!fm' !rs

Status <essage !!!!!!!!!!!!!! Online Online Online Online

rac!udlm!rs

bash!".##$

Setup 9+C
bash!".##$ cd3 %i .profile P-?80>LP-?8M)&usr&cluster&bin)&usr&R11&bin)&usr&open'in&bin3 e*port P-?8 <-+P-?80&usr&man)&usr&cluster&man3 e*port <-+P-?8 bash!".##$ . .profile

bash!".##$ %ncser%er )1# :ou 'ill reSuire a pass'ord to access your des tops. Pass'ord) 9erify) *auth) creating ne' authority file &&.Rauthority +e' Dpfrea 1)1# ()D des top is pfrea 1)1# Creating default startup script &&.%nc&*startup Starting applications specified in &&.%nc&*startup Nog file is &&.%nc&pfrea 1)1#.log bash!".##$

") Install Grid Infrastructure for Clusters %ia a 9+C client


Install and configure Grid Infrastructure for Clusters
bash!".##$ *host O bash!".##$ su ! oragrid !bash!".##> e*port JISPN-:0)1#.# !bash!".##> cd &net&d%5&s'lib&oracle&released&db&11gR2&11.2.#.1&sparcH&62H&grid !bash!".##> .&runInstaller Select Installation Option Select Install and Configure Grid Infrastructure for a Cluster Ser%er Clic +e*t Select Installation ?ype Select -d%anced Installation Clic +e*t Select Product Nanguages ?ype Clic +e*t Grid Plug and Play Information Cluster +ame T frea !cluster SC-+ +ame T frea !scan!lh SC-+ Port ! 1521 Clic +e*t Cluster +ode Information @dit 9irtual IP +ame pfrea 1!%ip to frea !1 pfrea 2!%ip to frea !2 Clic +e*t Specify +et'or Interface Qsage @nsure main IP<P +IC is public @nsure clpri%net# is pri%ate Clic +e*t Storage Option Information Clic -S<

Clic +e*t Create -S< Jis Group Jis group +ame T your choice (CRS) Select Redundancy T @*ternal Select Candidate Jis s Clic Change Jisco%ery Path @nter &de%&did&rds &dH ! OU <ay ta e a fe' minutes to disco%er all the candidate dis s Select t'o dis s Clic +e*t Specify -S< Pass'ord Qse same pass'ord T manager (clic yes to ignore 'arning) Clic +e*t Specify Operating System Groups -S< OSJK-1 OSOP@R and OS-S< are oinstall Clic +e*t Clic :es (OSJK-1 OSOP@R and OS-S< are in the same OS Group) Specify Installation Nocation Oracle Kase ! &u#1&app&oragrid Soft'are Nocation ! &u#1&app&11.2.#&grid Clic +e*t Create In%entory In%entory Jirectory ! &u#1&app&oraIn%entory Clic +e*t Perform PrereSuisite Chec s Ignore ma* open file descriptors Ignore Compiler patch 122,61!15 Ignore users 'ith same QIJ Resol%e other issues Clic Ignore all Clic +e*t Summary Clic Iinish @*ecute Configuration Scripts Clic OU once done +ote1 please see belo'1 i.e. after the root scripts output for a continuation of the installation. pfrea 1 scripts bash!".##$ p'd &u#1&app&oraIn%entory bash!".##$ bash!".##$ .&orainstRoot.sh Changing permissions of &u#1&app&oraIn%entory. -dding read1'rite permissions for group. Remo%ing read1'rite1e*ecute permissions for 'orld. Changing groupname of &u#1&app&oraIn%entory to oinstall. ?he e*ecution of the script is complete.

bash!".##$ p'd &u#1&app&oraIn%entory bash!".##$ Repeat abo%e for pfrea 2. ?hen on pfrea 11 bash!".##$ .&root.sh Running Oracle 11g root.sh script... ?he follo'ing en%ironment %ariables are set as) OR-CN@AOF+@R0 oragrid OR-CN@A8O<@0 &u#1&app&11.2.#&grid @nter the full pathname of the local bin directory) V&usr&local&binW) Creating &usr&local&bin directory... Copying dbhome to &usr&local&bin ... Copying oraen% to &usr&local&bin ... Copying coraen% to &usr&local&bin ...

Creating &%ar&opt&oracle&oratab file... @ntries 'ill be added to the &%ar&opt&oracle&oratab file as needed by Jatabase Configuration -ssistant 'hen a database is created Iinished running generic part of root.sh script. +o' product!specific root actions 'ill be performed. 2#1#!#5!17 #5)#4)57) Parsing the host name 2#1#!#5!17 #5)#4)57) Chec ing for super user pri%ileges 2#1#!#5!17 #5)#4)57) Qser has super user pri%ileges Qsing configuration parameter file) &u#1&app&11.2.#&grid&crs&install&crsconfigAparams Creating trace directory NOC-N -JJ <OJ@ Creating OCR eys for user DrootD1 pri%grp DrootD.. Operation successful. root 'allet root 'allet cert root cert e*port peer 'allet profile reader 'allet pa 'allet peer 'allet eys pa 'allet eys peer cert reSuest pa cert reSuest peer cert pa cert peer root cert ?P profile reader root cert ?P pa root cert ?P peer pa cert ?P pa peer cert ?P

10

profile reader pa cert ?P profile reader peer cert ?P peer user cert pa user cert -dding daemon to inittab CRS!212") Oracle 8igh -%ailability Ser%ices has been started. ohasd is starting CRS!2672) -ttempting to start Dora.gipcdD on Dpfrea 1D CRS!2672) -ttempting to start Dora.mdnsdD on Dpfrea 1D CRS!2676) Start of Dora.gipcdD on Dpfrea 1D succeeded CRS!2676) Start of Dora.mdnsdD on Dpfrea 1D succeeded CRS!2672) -ttempting to start Dora.gpnpdD on Dpfrea 1D CRS!2676) Start of Dora.gpnpdD on Dpfrea 1D succeeded CRS!2672) -ttempting to start Dora.cssdmonitorD on Dpfrea 1D CRS!2676) Start of Dora.cssdmonitorD on Dpfrea 1D succeeded CRS!2672) -ttempting to start Dora.cssdD on Dpfrea 1D CRS!2672) -ttempting to start Dora.dis monD on Dpfrea 1D CRS!2676) Start of Dora.dis monD on Dpfrea 1D succeeded CRS!2676) Start of Dora.cssdD on Dpfrea 1D succeeded CRS!2672) -ttempting to start Dora.ctssdD on Dpfrea 1D CRS!2676) Start of Dora.ctssdD on Dpfrea 1D succeeded -S< created and started successfully. Jis Group CRS created successfully. clscfg) !install mode specified Successfully accumulated necessary OCR eys. Creating OCR eys for user DrootD1 pri%grp DrootD.. Operation successful. CRS!2672) -ttempting to start Dora.crsdD on Dpfrea 1D CRS!2676) Start of Dora.crsdD on Dpfrea 1D succeeded CRS!2256) Qpdating the profile Successful addition of %oting dis 6f#f674d5b,#2f#2bf72""abb41""ccf. Successfully replaced %oting dis group 'ith OCRS. CRS!2256) Qpdating the profile CRS!2266) 9oting file(s) successfully replaced $$ S?-?@ Iile Qni%ersal Id Iile +ame Jis group !! !!!!! !!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! 1. O+NI+@ 6f#f674d5b,#2f#2bf72""abb41""ccf (&de%&did&rds &d2s#) VCRSW Nocated 1 %oting dis (s). CRS!267") -ttempting to stop Dora.crsdD on Dpfrea 1D CRS!2677) Stop of Dora.crsdD on Dpfrea 1D succeeded CRS!267") -ttempting to stop Dora.asmD on Dpfrea 1D CRS!2677) Stop of Dora.asmD on Dpfrea 1D succeeded CRS!267") -ttempting to stop Dora.ctssdD on Dpfrea 1D CRS!2677) Stop of Dora.ctssdD on Dpfrea 1D succeeded CRS!267") -ttempting to stop Dora.cssdmonitorD on Dpfrea 1D CRS!2677) Stop of Dora.cssdmonitorD on Dpfrea 1D succeeded CRS!267") -ttempting to stop Dora.cssdD on Dpfrea 1D CRS!2677) Stop of Dora.cssdD on Dpfrea 1D succeeded

11

CRS!267") CRS!2677) CRS!2674) CRS!26,1) CRS!267") CRS!2677) CRS!267") CRS!2677) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2672) CRS!2676) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676) CRS!2672) CRS!2676)

-ttempting to stop Dora.gpnpdD on Dpfrea 1D Stop of Dora.gpnpdD on Dpfrea 1D succeeded -ttempting to clean Dora.gpnpdD on Dpfrea 1D Clean of Dora.gpnpdD on Dpfrea 1D succeeded -ttempting to stop Dora.gipcdD on Dpfrea 1D Stop of Dora.gipcdD on Dpfrea 1D succeeded -ttempting to stop Dora.mdnsdD on Dpfrea 1D Stop of Dora.mdnsdD on Dpfrea 1D succeeded -ttempting to start Dora.mdnsdD on Dpfrea 1D Start of Dora.mdnsdD on Dpfrea 1D succeeded -ttempting to start Dora.gipcdD on Dpfrea 1D Start of Dora.gipcdD on Dpfrea 1D succeeded -ttempting to start Dora.gpnpdD on Dpfrea 1D Start of Dora.gpnpdD on Dpfrea 1D succeeded -ttempting to start Dora.cssdmonitorD on Dpfrea 1D Start of Dora.cssdmonitorD on Dpfrea 1D succeeded -ttempting to start Dora.cssdD on Dpfrea 1D -ttempting to start Dora.dis monD on Dpfrea 1D Start of Dora.dis monD on Dpfrea 1D succeeded Start of Dora.cssdD on Dpfrea 1D succeeded -ttempting to start Dora.ctssdD on Dpfrea 1D Start of Dora.ctssdD on Dpfrea 1D succeeded -ttempting to start Dora.asmD on Dpfrea 1D Start of Dora.asmD on Dpfrea 1D succeeded -ttempting to start Dora.crsdD on Dpfrea 1D Start of Dora.crsdD on Dpfrea 1D succeeded -ttempting to start Dora.e%mdD on Dpfrea 1D Start of Dora.e%mdD on Dpfrea 1D succeeded -ttempting to start Dora.asmD on Dpfrea 1D Start of Dora.asmD on Dpfrea 1D succeeded -ttempting to start Dora.CRS.dgD on Dpfrea 1D Start of Dora.CRS.dgD on Dpfrea 1D succeeded

pfrea 1 2#1#&#5&17 #5)1,)22 &u#1&app&11.2.#&grid&cdata&pfrea 1&bac upA2#1##517A#51,22.olr Configure Oracle Grid Infrastructure for a Cluster ... succeeded Qpdating in%entory properties for cluster'are Starting Oracle Qni%ersal Installer... Chec ing s'ap space) must be greater than 5## <K. -ctual 14161 <K ?he in%entory pointer is located at &%ar&opt&oracle&oraInst.loc ?he in%entory is located at &u#1&app&oraIn%entory DQpdate+odeNistD 'as successful. Kash!".##$ Iinally1 on pfrea 2. bash!".##$ .&root.sh Running Oracle 11g root.sh script... ?he follo'ing en%ironment %ariables are set as) Passed

12

OR-CN@AOF+@R0 oragrid OR-CN@A8O<@0 &u#1&app&11.2.#&grid @nter the full pathname of the local bin directory) V&usr&local&binW) Creating &usr&local&bin directory... Copying dbhome to &usr&local&bin ... Copying oraen% to &usr&local&bin ... Copying coraen% to &usr&local&bin ...

Creating &%ar&opt&oracle&oratab file... @ntries 'ill be added to the &%ar&opt&oracle&oratab file as needed by Jatabase Configuration -ssistant 'hen a database is created Iinished running generic part of root.sh script. +o' product!specific root actions 'ill be performed. 2#1#!#5!17 #5)"2)2,) Parsing the host name 2#1#!#5!17 #5)"2)2,) Chec ing for super user pri%ileges 2#1#!#5!17 #5)"2)2,) Qser has super user pri%ileges Qsing configuration parameter file) &u#1&app&11.2.#&grid&crs&install&crsconfigAparams Creating trace directory NOC-N -JJ <OJ@ Creating OCR eys for user DrootD1 pri%grp DrootD.. Operation successful. -dding daemon to inittab CRS!212") Oracle 8igh -%ailability Ser%ices has been started. ohasd is starting CRS!22#2) ?he CSS daemon 'as started in e*clusi%e mode but found an acti%e CSS daemon on node pfrea 11 number 11 and is terminating -n acti%e cluster 'as found during e*clusi%e startup1 restarting to /oin the cluster CRS!2672) -ttempting to start Dora.mdnsdD on Dpfrea 2D CRS!2676) Start of Dora.mdnsdD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.gipcdD on Dpfrea 2D CRS!2676) Start of Dora.gipcdD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.gpnpdD on Dpfrea 2D CRS!2676) Start of Dora.gpnpdD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.cssdmonitorD on Dpfrea 2D CRS!2676) Start of Dora.cssdmonitorD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.cssdD on Dpfrea 2D CRS!2672) -ttempting to start Dora.dis monD on Dpfrea 2D CRS!2676) Start of Dora.dis monD on Dpfrea 2D succeeded CRS!2676) Start of Dora.cssdD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.ctssdD on Dpfrea 2D CRS!2676) Start of Dora.ctssdD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.asmD on Dpfrea 2D CRS!2676) Start of Dora.asmD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.crsdD on Dpfrea 2D CRS!2676) Start of Dora.crsdD on Dpfrea 2D succeeded CRS!2672) -ttempting to start Dora.e%mdD on Dpfrea 2D CRS!2676) Start of Dora.e%mdD on Dpfrea 2D succeeded

13

pfrea 2 2#1#&#5&17 #5)",)"6 &u#1&app&11.2.#&grid&cdata&pfrea 2&bac upA2#1##517A#5","6.olr Configure Oracle Grid Infrastructure for a Cluster ... succeeded Qpdating in%entory properties for cluster'are Starting Oracle Qni%ersal Installer... Chec ing s'ap space) must be greater than 5## <K. -ctual 1412, <K ?he in%entory pointer is located at &%ar&opt&oracle&oraInst.loc ?he in%entory is located at &u#1&app&oraIn%entory DQpdate+odeNistD 'as successful. bash!".##$ -fter running the root scripts on all node Clic ?he follo'ing tas s then failed) Configure Oracle Grid Infrastructure for a Cluster. Oracle Cluster 9erification Qtility. OU. Passed

Noo ing at the installation log1 the follo'ing errors are seen) bash!".##$ p'd &u#1&app&oraIn%entory&logs bash!".##$ bash!".##$ tail !2##f install-ctions2#1#!#5!17A#2!12!27-<.log I+IO) Chec ing name resolution setup for Xfrea !scan!lhX... I+IO) @RROR) I+IO) PR9I!2662 ) Iound inconsistent name resolution entries for SC-+ name Xfrea !scan!lhX I+IO) @RROR) I+IO) PR9I!2657 ) +ame resolution setup chec for Xfrea !scan!lhX (IP address) 1#.11.1,,.6#) failed I+IO) @RROR) I+IO) PR9I!266" ) Iound configuration issue 'ith the DhostsD entry in the &etc&nss'itch.conf file Searching metalin for the abo%e1 resulting in <etalin note ,,7271.11 the solution is to %erify that Yping frea !scan!lhZ 'or s and if it does then ignore the abo%e error. bash!".##$ ping frea !scan!lh frea !scan!lh is ali%e bash!".##$ I+IO) +?P Configuration file chec started... I+IO) @RROR) I+IO) PR9I!52#2 ) Farning) Could not find +?P configuration file X&etc&inet&ntp.confX on node Xpfrea 2X I+IO) @RROR)

14

I+IO) PR9I!52#2 ) Farning) Could not find +?P configuration file X&etc&inet&ntp.confX on node Xpfrea 1X I+IO) PR9I!52#5 ) ?he +?P configuration file X&etc&inet&ntp.confX does not e*ist on all nodes I+IO) pfrea 21pfrea 1 I+IO) PR9I!5212 ) Chec of +?P Config file failed on all nodes. Cannot proceed further for the +?P tests I+IO) Cloc synchroni;ation chec using +et'or ?ime Protocol(+?P) failed I+IO) PR9I!4652 ) Cluster ?ime Synchroni;ation Ser%ices chec failed Noo ing at &etc&inet 'e can see ntp.conf.cluster bash!".##$ ls !l ntpH !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root bash!".##$ p'd &etc&inet bash!".##$ ls !l ntpH !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root !r'!r!!r!! 1 root bash!".##$

sys sys root sys sys sys

241 271# 2"74 2,#4 "6"2 2#61

=an 21 2##5 ntp.client Jec 5 2##6 ntp.cluster <ay 17 #2)2, ntp.conf.cluster =an 21 2##5 ntp.ser%er =ul 2 2##4 ntp2.client =ul 2 2##4 ntp2.ser%er

sys sys root sys sys sys

241 271# 2"74 2,#4 "6"2 2#61

=an 21 2##5 ntp.client Jec 5 2##6 ntp.cluster <ay 17 #2)2, ntp.conf.cluster =an 21 2##5 ntp.ser%er =ul 2 2##4 ntp2.client =ul 2 2##4 ntp2.ser%er

?o o%ercome this error I created a symlin . bash!".##$ cd &etc&inet bash!".##$ ls !l ntpH !r'!r!!r!! 1 root sys 241 =an !r'!r!!r!! 1 root sys 271# Jec !r'!r!!r!! 1 root root 2"74 <ay !r'!r!!r!! 1 root sys 2,#4 =an !r'!r!!r!! 1 root sys "6"2 =ul !r'!r!!r!! 1 root sys 2#61 =ul bash!".##$ ln !s ntp.conf.cluster ntp.conf bash!".##$ ls !l ntpH !r'!r!!r!! 1 root sys 241 =an !r'!r!!r!! 1 root sys 271# Jec lr'*r'*r'* 1 root root 16 <ay ntp.conf.cluster !r'!r!!r!! 1 root root 2"74 <ay !r'!r!!r!! 1 root sys 2,#4 =an !r'!r!!r!! 1 root sys "6"2 =ul !r'!r!!r!! 1 root sys 2#61 =ul bash!".##$

21 2##5 ntp.client 5 2##6 ntp.cluster 17 #2)2, ntp.conf.cluster 21 2##5 ntp.ser%er 2 2##4 ntp2.client 2 2##4 ntp2.ser%er

21 2##5 ntp.client 5 2##6 ntp.cluster 17 #6)#4 ntp.conf !C 17 #2)2, ntp.conf.cluster 21 2##5 ntp.ser%er 2 2##4 ntp2.client 2 2##4 ntp2.ser%er

15

-fter the abo%e clic

retry1 after 'hich the follo'ing failed)

I+IO) Chec ing name resolution setup for Xfrea !scan!lhX... I+IO) @RROR) I+IO) PR9I!2662 ) Iound inconsistent name resolution entries for SC-+ name Xfrea !scan!lhX I+IO) @RROR) I+IO) PR9I!2657 ) +ame resolution setup chec for Xfrea !scan!lhX (IP address) 1#.11.1,,.6#) failed I+IO) @RROR) I+IO) PR9I!266" ) Iound configuration issue 'ith the DhostsD entry in the &etc&nss'itch.conf file I+IO) 9erification of SC-+ 9IP and Nistener setup failed Fhich1 so long as you can ping frea !scan!lh is OU to ignore. I+IO) +?P daemon sle'ing option chec failed on some nodes I+IO) Chec failed on nodes) I+IO) pfrea 21pfrea 1 I+IO) PR9I!52"6 ) ?he +?P daemon running on one or more nodes lac s the sle'ing option Xsle'al'ays yesX I+IO) Cloc synchroni;ation chec using +et'or ?ime Protocol(+?P) failed I+IO) PR9I!4652 ) Cluster ?ime Synchroni;ation Ser%ices chec failed I+IO) Post!chec for cluster ser%ices setup 'as unsuccessful on all the nodes. Ior this error and after loo ing at metalin for

?he +?P daemon running on one or more nodes lac s the sle'ing option Resulting in <etalin note 1#5664".1

I added the follo'ing to &etc&inet&ntp.conf and restarted +?P) sle'al'ays yes disable pll bash!".##$ ps !ef . grep ntp root 1#21 1 # #2)51)12 E #)#1 &usr&lib&inet&*ntpd !c &etc&inet&ntp.conf.cluster bash!".##$ ill !4 1#21 bash!".##$ &usr&lib&inet&*ntpd !c &etc&inet&ntp.conf.cluster bash!".##$ ps !ef . grep ntp root 14212 1 # #6)27)"2 E #)## &usr&lib&inet&*ntpd !c &etc&inet&ntp.conf.cluster bash!".##$ ?hen Clic Retry.

-fter'ards the +?P daemon %erification passed as did the rest of the Cluster

16

9erification Qtility. I+IO) +?P Configuration file chec started... I+IO) +?P Configuration file chec passed I+IO) Chec ing daemon li%eness... I+IO) Ni%eness chec passed for X*ntpdX I+IO) +?P daemon sle'ing option chec passed I+IO) +?P daemonDs boot time configuration chec for sle'ing option passed I+IO) +?P common ?ime Ser%er Chec started... I+IO) Chec of common +?P ?ime Ser%er passed I+IO) Cloc time offset chec from +?P ?ime Ser%er started... I+IO) Cloc time offset chec passed I+IO) Cloc synchroni;ation chec using +et'or ?ime Protocol(+?P) passed I+IO) Oracle Cluster ?ime Synchroni;ation Ser%ices chec passed I+IO) Post!chec for cluster ser%ices setup 'as unsuccessful on all the nodes. ?hen Clic +e*t&Close.

Jisplay the Grid Infrastructure resources


bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1# Generic =anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> cat .profile OR-CN@A8O<@0&u#1&app&11.2.#&grid P-?80>LP-?8M)>LOR-CN@A8O<@M&bin <-+P-?80&usr&man)&usr&cluster&man3 e*port <-+P-?8 !bash!".##> !bash!".##> crsctl stat res !t !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! +-<@ ?-RG@? S?-?@ S@R9@R S?-?@AJ@?-INS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Nocal Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.CRS.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.NIS?@+@R.lsnr O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.asm O+NI+@ O+NI+@ pfrea 1 Started O+NI+@ O+NI+@ pfrea 2 Started ora.eons O+NI+@ O+NI+@ pfrea 1

17

O+NI+@ ora.gsd

O+NI+@

pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2

OIINI+@ OIINI+@ OIINI+@ OIINI+@ ora.net1.net'or O+NI+@ O+NI+@ ora.ons O+NI+@ O+NI+@

O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Cluster Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.NIS?@+@RASC-+1.lsnr 1 O+NI+@ O+NI+@ pfrea 1 ora.oc2/ 1 OIINI+@ OIINI+@ ora.pfrea 1.%ip 1 O+NI+@ O+NI+@ pfrea 1 ora.pfrea 2.%ip 1 O+NI+@ O+NI+@ pfrea 2 ora.scan1.%ip 1 O+NI+@ O+NI+@ pfrea 1 !bash!".##>

Create another -S< dis

group

bash!".##$ *host O bash!".##$ su ! oragrid !bash!".##> e*port JISPN-:0)1#.# !bash!".##> &u#1&app&11.2.#&grid&bin&asmca -S< Configuration -ssistant) Configure -S<) -S< Instances Select Jis Groups tab Clic Create Jis Group +ame T J-? Redundancy T @*ternal Select remaining dis s Clic OU +ote thaat J-?- is <OQ+?@J (2 of 2) Clic @*it&:es +ote that a Grid Infrastructure -S< Jis Group resource has been created. !bash!".##> crsctl stat res !t !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! +-<@ ?-RG@? S?-?@ S@R9@R S?-?@AJ@?-INS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!

18

Nocal Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.CRS.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.J-?-.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.NIS?@+@R.lsnr O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.asm O+NI+@ O+NI+@ pfrea 1 Started O+NI+@ O+NI+@ pfrea 2 Started ora.eons O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.gsd OIINI+@ OIINI+@ pfrea 1 OIINI+@ OIINI+@ pfrea 2 ora.net1.net'or O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.ons O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Cluster Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.NIS?@+@RASC-+1.lsnr 1 O+NI+@ O+NI+@ pfrea 1 ora.oc2/ 1 OIINI+@ OIINI+@ ora.pfrea 1.%ip 1 O+NI+@ O+NI+@ pfrea 1 ora.pfrea 2.%ip 1 O+NI+@ O+NI+@ pfrea 2 ora.scan1.%ip 1 O+NI+@ O+NI+@ pfrea 1 !bash!".##>

2) Install and create an 11gR1 database %ia a 9+C client


Install the 11gR1 database soft'are
Kefore installing an 11gR1 database 'e need to pin the cluster nodes. Please refer to <etalin note 424#7".1

19

bash!".##$ cd &u#1&app&11.2.#&grid&bin bash!".##$ .&olsnodes !t !n pfrea 1 1 Qnpinned pfrea 2 2 Qnpinned bash!".##$ bash!".##$ .&crsctl pin css !n pfrea 1 pfrea 2 CRS!2662) +ode pfrea 1 successfully pinned. CRS!2662) +ode pfrea 2 successfully pinned. bash!".##$ bash!".##$ .&olsnodes !t !n pfrea 1 1 Pinned pfrea 2 2 Pinned bash!".##$ bash!".##$ m dir !p &e*port&home&ora11g bash!".##$ useradd !g oinstall !G dba !u "#2 !d &e*port&home&ora11g !s &usr&bin&bash ora11g bash!".##$ cho'n ora11g)oinstall &e*port&home&ora11g bash!".##$ bash!".##$ m dir &u#1&app&ora11g bash!".##$ cho'n ora11g)oinstall &u#1&app&ora11g bash!".##$ chmod 775 &u#1&app&ora11g bash!".##$ bash!".##$ pass'd ora11g +e' Pass'ord) Re!enter ne' Pass'ord) pass'd) pass'ord successfully changed for ora11g bash!".##$ su ! ora11g Sun <icrosystems Inc. SunOS 5.1# Generic =anuary 2##5 SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> cat C .profile [[!@OI C OR-CN@AK-S@0&u#1&app&ora11g C @OI !bash!".##> Irom a 9+C client on pfrea 1. bash!".##$ *host O bash!".##$ su T ora11g !bash!".##> e*port JISPN-:0)1#.# !bash!".##> cd &net&d%5&s'lib&oracle&released&db&11gR1&11.1.#.6&sparcH&62H&database !bash!".##> .&runInstaller Felcome Clic +e*t Select Installation ?ype Select Custom

20

Clic +e*t Specify installation Nocation Oracle Kase ! &u#1&app&ora11g Soft'are Nocation +ame) OraJb11gAhome1 Path) &u#1&app&ora11g&product&11.1.#&dbA1 Clic +e*t Specify 8ard'are Cluster Installation <ode Select Nocal Installation Clic +e*t Product!Specific Pre!reSuisite Chec s Clic +e*t -%ailable Product Components Clic +e*t Pri%ileged Operating System groups OSJK- T dba OSOP@R T oinstall OS-S< ! oinstall Clic +e*t Create Jatabase Select Install database Soft'are only Clic +e*t Summary Clic Install @*ecute Configuration scripts @*ecute root.sh and Clic OU&Close Repeat the abo%e to install the database soft'are on pfrea 21 ho'e%er ensure that the Path is the same 'ithin YSpecify installation NocationZ1 as this install is on local file system.

Create the 11gR1 database using dbca


Create 11gR1 database %ia dbca on pfrea 1 %ia a 9+C client. bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port JISPN-:0)1#.# !bash!".##> cd &u#1&app&ora11g&product&11.1.#&dbA1&bin !bash!".##> .&dbca Felcome to Clic Step Step Step Step Step dbca +e*t 1&15 T 2&15 T "&15 T 2&15 T 5&15 T

Create a Jatabase T Clic +e*t General Purpose T Clic +e*t JK1 T Clic +e*t Clic +e*t Qse same pass'ord (manager) T Clic

+e*t

21

Step 6&15 T Select -S< Clic +e*t Specify -S<S+<P pass'ord to -S< (manager) T Clic OU Step 7&16 T Select J-?- ! Clic +e*t Step ,&16 T Clic +e*t Step 4&16 T Clic +e*t Step 1#&16 T Clic +e*t Step 11&16 T memory your choice (1#22) T Clic +e*t Step 12&15 T Clic +e*t Step 1"&15 T Clic +e*t Step 12&15 T Clic +e*t Step 15&15 T Create Jatabase ! Clic Iinish&OU Summary T Clic @*it

Create the 11gR1 database listener using netca


Create 11gR1 database listener %ia netca on pfrea 1 %ia a 9+C client. bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port JISPN-:0)1#.# !bash!".##> cd &u#1&app&ora11g&product&11.1.#&dbA1&bin !bash!".##> .&netca Select the type of Oracle +et Ser%ices configuration Select Single node configuration Clic +e*t Felcome Select Nistener configuration Clic +e*t NistenerAname @nter NIS?@+@RAJK1 Clic +e*t Nistener proptocol Clic +e*t Nistener port number Qse another port number 1522 Clic +e*t <ore listeners Select no Clic +e*t&+e*t&Iinish bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> !bash!".##> cd &u#1&app&ora11g&product&11.1.#&dbA1&net'or &admin

22

Change listener.ora and tnsnames.ora to use a logical host. !bash!".##> cat listener.ora $ listener.ora +et'or Configuration Iile) &u#1&app&ora11g&product&11.1.#&dbA1&net'or &admin&listener.ora $ Generated by Oracle configuration tools. NIS?@+@RAJK1 0 (J@SCRIP?IO+ANIS? 0 (J@SCRIP?IO+ 0 (-JJR@SS 0 (PRO?OCON 0 ?CP)(8OS? 0 %;frea 2a)(POR? 0 1522)) (-JJR@SS 0 (PRO?OCON 0 IPC)(U@: 0 @R?PROC1522)) ) ) !bash!".##> !bash!".##> cat tnsnames.ora NIS?@+@RAJK1 0 (-JJR@SS 0 (PRO?OCON 0 ?CP)(8OS? 0 %;frea 2a)(POR? 0 1522)) !bash!".##> !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.1.#&dbA1 !bash!".##> e*port OR-CN@ASIJ0JK1 !bash!".##> >OR-CN@A8O<@&bin&sSlplus X&as sysdbaX S\NHPlus) Release 11.1.#.6.# ! Production on Fed <ay 14 #")2")2# 2#1# Copyright (c) 14,21 2##71 Oracle. -ll rights reser%ed.

Connected to) Oracle Jatabase 11g @nterprise @dition Release 11.1.#.6.# ! 62bit Production Fith the Partitioning1 ON-P1 Jata <ining and Real -pplication ?esting options S\NC S\NC sho' parameters localAlistener +-<@ ?:P@ 9-NQ@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! localAlistener string S\NC S\NC alter system set localAlistener0DNIS?@+@RAJK1D scope0both3 System altered. S\NC S\NC sho' parameters localAlistener +-<@ ?:P@ 9-NQ@

23

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! localAlistener string NIS?@+@RAJK1 S\NC S\NC e*it Jisconnected from Oracle Jatabase 11g @nterprise @dition Release 11.1.#.6.# ! 62bit Production Fith the Partitioning1 ON-P1 Jata <ining and Real -pplication ?esting options !bash!".##>

Copy some 11gR1 database files to the another node


-fter dbca and netca are finished 'e need to copy some files from pfrea 1 to pfrea 2. +ote that the ..&..&.. represents the ora11g home directories1 i.e. &e*port&home&ora11g. On pfrea 2. bash!".##$ uname !n pfrea 2 bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> cd &u#1&app&ora11g&diag&rdbms !bash!".##> ls !l total # !bash!".##> &usr&sf'&bin&'get !r !n8 !!cut!dirs0, ftp)&&ora11g)ora11gBpfrea 1)&..&..&..&u#1&app&ora11g&diag&rdbms&db1 [...C !bash!".##> ls !l total 2 dr'*r!*r!* " ora11g oinstall 512 <ay 1, #,)11 db1 !bash!".##> cd ..&.. !bash!".##> !bash!".##> p'd &u#1&app&ora11g !bash!".##> ls !l total 2 dr'*r'*r!* 11 ora11g oinstall 512 <ay 1, #6)24 diag dr'*r!*r!* " ora11g oinstall 512 <ay 1, #6)"5 product !bash!".##> !bash!".##> &usr&sf'&bin&'get !r !n8 !!cut!dirs06 ftp)&&ora11g)ora11gBpfrea 1)&..&..&..&u#1&app&ora11g&admin [...C !bash!".##> ls !l total 6 dr'*r!*r!* " ora11g oinstall 512 <ay 1, #,)12 admin dr'*r'*r!* 11 ora11g oinstall 512 <ay 1, #6)24 diag dr'*r!*r!* " ora11g oinstall 512 <ay 1, #6)"5 product !bash!".##>

24

!bash!".##> cd &u#1&app&ora11g&product&11.1.#&dbA1&dbs !bash!".##> !bash!".##> ls !l total 22 !r'!r!!r!! 1 ora11g oinstall ,",5 Sep 11 144, init.ora !r'!r!!r!! 1 ora11g oinstall 1242# <ay " 2##1 initd'.ora !bash!".##> !bash!".##> ftp pfrea 1 Connected to pfrea 1. 22# pfrea 1 I?P ser%er ready. +ame (pfrea 1)root)) ora11g ""1 Pass'ord reSuired for ora11g. Pass'ord) 2"# Qser ora11g logged in. Remote system type is Q+IR. Qsing binary mode to transfer files. ftpC cd &u#1&app&ora11g&product&11.1.#&dbA1&dbs 25# CFJ command successful. ftpC lcd &u#1&app&ora11g&product&11.1.#&dbA1&dbs Nocal directory no' &u#1&app&ora11g&product&11.1.#&dbA1&dbs ftpC prompt Interacti%e mode off. ftpC mget HJK1 2## POR? command successful. 15# Opening KI+-R: mode data connection for l JK1 (22 bytes). 226 ?ransfer complete. local) l JK1 remote) l JK1 22 bytes recei%ed in #.#12 seconds (1.6, Ubytes&s) 2## POR? command successful. 15# Opening KI+-R: mode data connection for orap'JK1 (15"6 bytes). 226 ?ransfer complete. local) orap'JK1 remote) orap'JK1 15"6 bytes recei%ed in #.#1" seconds (111.,, Ubytes&s) ftpC ftpC cd &u#1&app&ora11g&product&11.1.#&dbA1&net'or &admin 25# CFJ command successful. ftpC lcd &u#1&app&ora11g&product&11.1.#&dbA1&net'or &admin Nocal directory no' &u#1&app&ora11g&product&11.1.#&dbA1&net'or &admin ftpC mget HoraH 2## POR? command successful. 15# Opening KI+-R: mode data connection for listener.ora (""7 bytes). 226 ?ransfer complete. local) listener.ora remote) listener.ora ""7 bytes recei%ed in #.#12 seconds (26.54 Ubytes&s) 2## POR? command successful. 15# Opening KI+-R: mode data connection for tnsnames.ora (77 bytes). 226 ?ransfer complete. local) tnsnames.ora remote) tnsnames.ora 77 bytes recei%ed in #.#11 seconds (6.,# Ubytes&s) ftpC bye 221!:ou ha%e transferred 1472 bytes in 2 files.

25

221!?otal traffic for this session 'as "22, bytes in 6 transfers. 221!?han you for using the I?P ser%ice on pfrea 1. 221 Goodbye. !bash!".##>

9erify the 11gR1 database installation


bash!".##$ su ! ora11g Sun <icrosystems Inc. SunOS 5.1# Generic =anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.1.#&dbA1 !bash!".##> e*port OR-CN@ASIJ0JK1 !bash!".##> >OR-CN@A8O<@&bin&sSlplus X&as sysdbaX S\NHPlus) Release 11.1.#.6.# ! Production on ?ue <ay 1, #,)16)21 2#1# Copyright (c) 14,21 2##71 Oracle. -ll rights reser%ed.

Connected to) Oracle Jatabase 11g @nterprise @dition Release 11.1.#.6.# ! 62bit Production Fith the Partitioning1 ON-P1 Jata <ining and Real -pplication ?esting options S\NC sho' sga ?otal System Global -rea ,#14"4256 bytes Ii*ed Si;e 2#4242# bytes 9ariable Si;e 26##51#,# bytes Jatabase Kuffers 5"6,7#412 bytes Redo Kuffers 2422522 bytes S\NC S\NC create user homer identified by simpson3 Qser created. S\NC alter user homer default tablespace system Suota 1m on system3 Qser altered. S\NC grant select on %A>sysstat to homer3 Grant succeeded. S\NC grant select on %A>archi%eAdest to homer3 Grant succeeded. S\NC grant create session to homer3 Grant succeeded.

26

S\NC grant create table to homer3 Grant succeeded. S\NC grant select on %A>database to homer3 Grant succeeded. S\NC shutdo'n immediate Jatabase closed. Jatabase dismounted. OR-CN@ instance shut do'n. S\NC S\NC e*it Jisconnected from Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options !bash!".##> -nd on pfrea 2. bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.1.#&dbA1 !bash!".##> e*port OR-CN@ASIJ0JK1 !bash!".##> >OR-CN@A8O<@&bin&sSlplus X&as sysdbaX S\NHPlus) Release 11.1.#.6.# ! Production on Fed <ay 14 #1)5")1" 2#1# Copyright (c) 14,21 2##71 Oracle. Connected to an idle instance. S\NC startup OR-CN@ instance started. ?otal System Global -rea ,#14"4256 Ii*ed Si;e 2#4242# bytes 9ariable Si;e 26,2"46,, Jatabase Kuffers 52,2,2"#2 bytes Redo Kuffers 2422522 Jatabase mounted. Jatabase opened. S\NC S\NC select username from allAusers bytes bytes bytes -ll rights reser%ed.

'here username0D8O<@RD3

27

QS@R+-<@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 8O<@R S\NC S\NC shutdo'n immediate Jatabase closed. Jatabase dismounted. OR-CN@ instance shut do'n. S\NC e*it Jisconnected from Oracle Jatabase 11g @nterprise @dition Release 11.1.#.6.# ! 62bit Production Fith the Partitioning1 ON-P1 Jata <ining and Real -pplication ?esting options !bash!".##>

Chec

the Grid Infrastructure resources

+ote that Grid Infrastructure does not no' about JK1 as 11gR1 is not 11gR2 Grid Infrastructure a'are. -s such there is no Grid Infrastructure resource ora.db1.db. bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> !bash!".##> &u#1&app&11.2.#&grid&bin&crsctl stat res !t !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! +-<@ ?-RG@? S?-?@ S@R9@R S?-?@AJ@?-INS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Nocal Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.CRS.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.J-?-.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.NIS?@+@R.lsnr O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.asm O+NI+@ O+NI+@ pfrea 1 Started O+NI+@ O+NI+@ pfrea 2 Started ora.eons O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2

28

ora.gsd OIINI+@ OIINI+@ OIINI+@ OIINI+@ ora.net1.net'or O+NI+@ O+NI+@ ora.ons O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Cluster Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.NIS?@+@RASC-+1.lsnr 1 O+NI+@ O+NI+@ pfrea 1 ora.oc2/ 1 OIINI+@ OIINI+@ ora.pfrea 1.%ip 1 O+NI+@ O+NI+@ pfrea 1 ora.pfrea 2.%ip 1 O+NI+@ O+NI+@ pfrea 2 ora.scan1.%ip 1 O+NI+@ O+NI+@ pfrea 1 !bash!".##> O+NI+@ O+NI+@ pfrea 1 pfrea 2 pfrea 1 pfrea 2

5) Install and create an 11gR2 database %ia a 9+C client


Install the 11gR2 database soft'are
+ote that here I 'ill install the database soft'are on each node and after'ards create the database. Irom a 9+C client on pfrea 1. bash!".##$ *host O bash!".##$ su T ora11g !bash!".##> e*port JISPN-:0)1#.# !bash!".##> cd &net&d%5&s'lib&oracle&released&db&11gR2&11.2.#.1&sparcH&62H&database !bash!".##> .&runInstaller Configure Security Qpdates Jeselect I 'ish to recei%e security updates... Clic +e*t&:es Select Install database soft'are Clic +e*t +ode Selection Select single instance database installation Clic +e*t

29

Select Product Nanguages Clic +e*t Select Jatabase @dition Select @nterprise @dition Clic +e*t Specify installation Nocation Oracle Kase ! &u#1&app&ora11g Soft'are Nocation ! &u#1&app&ora11g&product&11.2.#&dbhomeA1 Clic +e*t Pri%ileged Operating System groups OSJK- T dba OSOP@R T oinstall Clic +e*t Perform PrereSuisite Chec s Ignore Compiler patch 122,61!15 Ignore users 'ith same QIJ Select Ignore -ll Clic +e*t Summary Clic Iinish @*ecute Configuration scripts @*ecute root.sh and Clic OU&Close Repeat the abo%e to install the database soft'are on pfrea 2. Create 11gR2 database %ia dbca on pfrea 1 %ia a 9+C client. -s per <etalin note 4,"715.11 if creating 11.2.#.1 (fi*ed 'ith 11.2.#.2) amend the follo'ing on each node. &etc&init.d&ohasd start() L >@C8O !n >XStarting >PROG) X ulimit !n 655"6 ulimit !l 5#######

Create the 11gR2 database using dbca


bash!".##$ su ! ora11g Sun <icrosystems Inc. SunOS 5.1# Generic =anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port JISPN-:0)1#.# !bash!".##> cd &u#1&app&ora11g&product&11.2.#&dbhomeA1&bin !bash!".##> .&dbca Felcome to dbca Clic +e*t

30

Step 1&12 T Create a Jatabase T Clic +e*t Step 2&12 T General Purpose T Clic +e*t Step "&12 T JK2 T Clic +e*t Step 2&12 T Clic +e*t Step 5&12 T Qse same pass'ord (manager) T Clic +e*t&yes Step 6&12 T Storage ?ype (-S<) Jatabase -rea (OJ-?-) Specify -S<S+<P pass'ord to -S< (manager) T Clic OU Step 7&11 T Clic +e*t Step ,&11 T Clic +e*t Step 4&11 T memory your choice (1#22) T Clic +e*t Step 1#&11 T Clic +e*t Step 11&11 T Create Jatabase ! Clic Iinish&OU Summary T Clic @*it

Copy some 11gR2 database files to the another node


-fter dbca is finished 'e need to copy some files from pfrea 1 to pfrea 2. +ote that the ..&..&.. represents the ora11g home directories1 i.e. &e*port&home&ora11g. On pfrea 2. bash!".##$ uname !n pfrea 2 bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> cd &u#1&app&ora11g&diag&rdbms !bash!".##> ls !l total 2 dr'*r!*r!* " ora11g oinstall 512 <ay 1, #,)11 db1 !bash!".##> !bash!".##> &usr&sf'&bin&'get !r !n8 !!cut!dirs0, ftp)&&ora11g)ora11gBpfrea 1)&..&..&..&u#1&app&ora11g&diag&rdbms&db2 [...C !bash!".##> ls !l total 2 dr'*r!*r!* " ora11g oinstall 512 <ay 1, #,)11 db1 dr'*r!*r!* " ora11g oinstall 512 <ay 1, 11)21 db2 !bash!".##> cd ..&..&admin !bash!".##> ls !l total 2 dr'*r!*r!* 5 ora11g oinstall 512 <ay 1, #,)12 JK1 !bash!".##> !bash!".##> &usr&sf'&bin&'get !r !n8 !!cut!dirs07 ftp)&&ora11g)ora11gBpfrea 1)&..&..&..&u#1&app&ora11g&admin&JK2 [...C !bash!".##> p'd &u#1&app&ora11g&admin

31

!bash!".##> ls !l total 2 dr'*r!*r!* 5 ora11g oinstall 512 <ay 1, #,)12 JK1 dr'*r!*r!* 5 ora11g oinstall 512 <ay 1, 11)2" JK2 !bash!".##> !bash!".##> cd &u#1&app&ora11g&product&11.2.#&dbhomeA1&dbs !bash!".##> !bash!".##> ftp pfrea 1 Connected to pfrea 1. 22# pfrea 1 I?P ser%er ready. +ame (pfrea 1)root)) ora11g ""1 Pass'ord reSuired for ora11g. Pass'ord) 2"# Qser ora11g logged in. Remote system type is Q+IR. Qsing binary mode to transfer files. ftpC cd &u#1&app&ora11g&product&11.2.#&dbhomeA1&dbs 25# CFJ command successful. ftpC prompt Interacti%e mode off. ftpC mget HJK2H 2## POR? command successful. 15# Opening KI+-R: mode data connection for hcAJK2.dat (1522 bytes). 226 ?ransfer complete. local) hcAJK2.dat remote) hcAJK2.dat 1522 bytes recei%ed in #.#2 seconds (76.25 Ubytes&s) 2## POR? command successful. 15# Opening KI+-R: mode data connection for initJK2.ora ("" bytes). 226 ?ransfer complete. local) initJK2.ora remote) initJK2.ora "" bytes recei%ed in #.#11 seconds (".#5 Ubytes&s) 2## POR? command successful. 15# Opening KI+-R: mode data connection for l JK2 (22 bytes). 226 ?ransfer complete. local) l JK2 remote) l JK2 22 bytes recei%ed in #.#1" seconds (1.," Ubytes&s) 2## POR? command successful. 15# Opening KI+-R: mode data connection for orap'JK2 (15"6 bytes). 226 ?ransfer complete. local) orap'JK2 remote) orap'JK2 15"6 bytes recei%ed in #.#12 seconds (125.#2 Ubytes&s) ftpC bye 221!:ou ha%e transferred "1"7 bytes in 2 files. 221!?otal traffic for this session 'as 2"#7 bytes in 5 transfers. 221!?han you for using the I?P ser%ice on pfrea 1. 221 Goodbye. !bash!".##>

32

9erify the 11gR2 database installation


+ote that for an 11gR2 database 'e do not need to create a user that 'ould normally be used by the 8-!Oracle (SQ+F.oracleAser%er) probe1 as probing is mainly pro%ided by a Grid Infrastructure database resource1 'hich has been automatically created 'hen the database 'as created using dbca. -lso note that at this point 'e cannot %erify that the database JK2 can start on the other node as the database is configured1 %ia dbca1 to only run on one node. ?hat node is the node 'here the database 'as created. Fhen 8-!Oracle (SQ+F.oracleAser%er) is deployed later on1 the ser%er pool associated 'ith the database is modified (by SQ+F.oracleAser%er) so that the database can run on another node. ?his is transparent to the administrator and is managed by SQ+F.oracleAser%er. bash!".##$ su ! ora11g Sun <icrosystems Inc.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.2.#&dbhomeA1 !bash!".##> e*port OR-CN@ASIJ0JK2 !bash!".##> >OR-CN@A8O<@&bin&sSlplus X&as sysdbaX S\NHPlus) Release 11.2.#.1.# Production on Fed <ay 14 #2)12)22 2#1# Copyright (c) 14,21 2##41 Oracle. -ll rights reser%ed.

Connected to) Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options S\NC sho' sga ?otal System Global -rea 1#642526#, bytes Ii*ed Si;e 21524"6 bytes 9ariable Si;e 7172""7"6 bytes Jatabase Kuffers "2"4"242, bytes Redo Kuffers 54"1##, bytes S\NC e*it Jisconnected from Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options !bash!".##>

33

Chec

the Grid Infrastructure resources

+ote that for an 11gR2 database Grid Infrastructure does no' about the database. -s such there is Grid Infrastructure resource ora.db2.db. !bash!".##> e*it logout bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> sr%ctl status db !d db2 Instance JK2 is running on node pfrea 1 !bash!".##> !bash!".##> crsctl stat res !t !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! +-<@ ?-RG@? S?-?@ S@R9@R S?-?@AJ@?-INS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Nocal Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.CRS.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.J-?-.dg O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.NIS?@+@R.lsnr O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.asm O+NI+@ O+NI+@ pfrea 1 Started O+NI+@ O+NI+@ pfrea 2 Started ora.eons O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.gsd OIINI+@ OIINI+@ pfrea 1 OIINI+@ OIINI+@ pfrea 2 ora.net1.net'or O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 ora.ons O+NI+@ O+NI+@ pfrea 1 O+NI+@ O+NI+@ pfrea 2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Cluster Resources !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

34

!!! ora.NIS?@+@RASC-+1.lsnr 1 O+NI+@ O+NI+@ ora.db2.db 1 O+NI+@ O+NI+@ ora.oc2/ 1 OIINI+@ OIINI+@ ora.pfrea 1.%ip 1 O+NI+@ O+NI+@ ora.pfrea 2.%ip 1 O+NI+@ O+NI+@ ora.scan1.%ip 1 O+NI+@ O+NI+@ !bash!".##>

pfrea 2 pfrea 1 Open

pfrea 1 pfrea 2 pfrea 2

6) Qsing SC-+ for the 11gR2 single instance database


In order for the single instance database to use SC-+ 'e need to amend the remoteAlistener parameter. !bash!".##> sr%ctl config scan SC-+ name) frea !scan!lh1 +et'or ) 1&1#.11.1,,.#&255.255.255.#&bge# SC-+ 9IP name) scan11 IP) &%;frea 1a&1#.11.1,,.6# !bash!".##> !bash!".##> sr%ctl config scanAlistener SC-+ Nistener NIS?@+@RASC-+1 e*ists. Port) ?CP)1521 !bash!".##> S\NC sho' parameters listener +-<@ ?:P@ 9-NQ@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! listenerAnet'or s string localAlistener string (J@SCRIP?IO+0(-JJR@SSANIS?0(-J JR@SS0(PRO?OCON0?CP)(8OS?0frea !1)(POR?01521)))) remoteAlistener string S\NC S\NC alter system set remoteAlistener 0 Dfrea !scan!lh)1521D scope0both3 System altered. S\NC sho' parameters listener +-<@ ?:P@ 9-NQ@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! listenerAnet'or s string localAlistener string (J@SCRIP?IO+0(-JJR@SSANIS?0(-J JR@SS0(PRO?OCON0?CP)(8OS?0frea

35

remoteAlistener S\NC

string

!1)(POR?01521)))) frea !scan!lh)1521

On the client1 as 'e are using &etc&hosts for the SC-+ address1 you 'ill need an entry 'ithin &etc&hosts 1#.11.1,,.6# frea !scan!lh

also the client >OR-CN@A8O<@&net'or &admin&tnsnames.ora JK2 0 (J@SCRIP?IO+ 0 (-JJR@SS 0 (PRO?OCON 0 ?CP)(8OS? 0 frea !scan!lh)(POR? 0 1521)) (CO++@C?AJ-?- 0 (S@R9@R 0 J@JIC-?@J) (S@R9IC@A+-<@ 0 JK2) ) )

7) Place e%erything under Oracle Solaris Cluster


Register the resource types
bash!".##$ clrt list bash!".##$ clrt list SQ+F.Nogical8ostname)" SQ+F.Shared-ddress)2 SQ+F.racAframe'or )5 SQ+F.racAudlm)" bash!".##$ bash!".##$ clrt register SQ+F.crsAframe'or bash!".##$ clrt register SQ+F.scalableAasmAinstanceApro*y bash!".##$ clrt register SQ+F.scalableAasmAdis groupApro*y bash!".##$ clrt register SQ+F.oracleAser%er bash!".##$ clrt register SQ+F.oracleAlistener bash!".##$ clrt list SQ+F.Nogical8ostname)" SQ+F.Shared-ddress)2 SQ+F.racAframe'or )5 SQ+F.racAudlm)" SQ+F.crsAframe'or )" SQ+F.scalableAasmAinstanceApro*y SQ+F.scalableAasmAdis groupApro*y SQ+F.oracleAser%er)6 SQ+F.oracleAlistener)5 bash!".##$

36

bash!".##$ clrg status 000 Cluster Resource Groups 000 Group +ame !!!!!!!!!! rac!fm' !rg +ode +ame !!!!!!!!! pfrea 1 pfrea 2 Suspended !!!!!!!!! +o +o Status !!!!!! Online Online !p

bash!".##$ clrs create !g rac!fm' !rg !t SQ+F.crsAframe'or resourceAdependencies0rac!fm' !rs crs!fm' !rs bash!".##$ clrs status 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! rac!fm' !rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 State !!!!! Online Online Online Online Online Online

Status <essage !!!!!!!!!!!!!! Online Online Online Online Online Online

rac!udlm!rs

crs!fm' !rs

bash!".##$

Register and enable the clustered ASM instance resource


bash!".##$ clrg create !S asm!inst!rg bash!".##$ clrg set !p rgAaffinities0OOrac!fm' !rg asm!inst!rg bash!".##$ clrs create !g asm!inst!rg !t SQ+F.scalableAasmAinstanceApro*y !p oracleAhome0&u#1&app&11.2.#&grid !p DoracleAsidLpfrea 1MD0O-S<1 !p DoracleAsidLpfrea 2MD0O-S<2 !p crsAhome0&u#1&app&11.2.#&grid !p resourceAdependenciesAofflineArestart0crs!fm' !rs !d asm!inst!rs bash!".##$ clrg online !e< asm!inst!rg bash!".##$ clrs status 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! rac!fm' !rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 State !!!!! Online Online Online Online Online Online Status <essage !!!!!!!!!!!!!! Online Online Online Online Online Online

rac!udlm!rs

crs!fm' !rs

37

asm!inst!rs @+-KN@J @+-KN@J bash!".##$

pfrea 1 pfrea 2

Online Online

Online ! O-S<1 is QP and Online ! O-S<2 is QP and

Register and enable the clustered -S< dis


bash!".##$ clrg create bash!".##$ clrg set !p bash!".##$ clrs create asmAdis groups0J-?- !p asm!dg!rs bash!".##$ clrg online bash!".##$ clrs status

group resource

!S asm!dg!rg rgAaffinities0OOasm!inst!rg asm!dg!rg !g asm!dg!rg !t SQ+F.scalableAasmAdis groupApro*y !p resourceAdependenciesAofflineArestart0asm!inst!rs !d !e< asm!dg!rg

000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! rac!fm' !rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 @+-KN@J asm!dg!rs pfrea 1 pfrea 2 Online Online Online ! <ounted) J-?Online ! <ounted) J-?State !!!!! Online Online Online Online Online Online Online Online Status <essage !!!!!!!!!!!!!! Online Online Online Online Online Online Online ! O-S<1 is QP and Online ! O-S<2 is QP and

rac!udlm!rs

crs!fm' !rs

asm!inst!rs @+-KN@J

bash!".##$

Register and enable the 11gR1 database and listener resources


bash!".##$ clrg create ora!11gr1!rg bash!".##$ clrg set !p rgAaffinities0OOasm!dg!rg ora!11gr1!rg bash!".##$ clrslh create !g ora!11gr1!rg !h %;frea 2a ora!db1!lh bash!".##$ clrs create !g ora!11gr1!rg !t SQ+F.oracleAser%er !p oracleAhome0& u#1&app&ora11g&product&11.1.#&dbA1 !p oracleAsid0JK1 !p alertAlogAfile0&u#1&app&ora11g&diag&rdbms&db1&JK1&trace&alertAJK1.log !p connectAstring0homer&simpson !p resourceAdependenciesAofflineArestart0asm!dg! rs !d ora!db1!rs

38

bash!".##$ bash!".##$ clrg online !e< ora!11gr1!rg bash!".##$ clrs status !g ora!11gr1!rg 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! ora!db1!rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 bash!".##$ bash!".##$ su ! ora11g Sun <icrosystems Inc. State !!!!! Online Offline Online Offline Status <essage !!!!!!!!!!!!!! Online Offline Online ! Nogical8ostname Offline

ora!db1!lh online.

SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.1.#&dbA1 !bash!".##> &u#1&app&ora11g&product&11.1.#&dbA1&bin&lsnrctl status NIS?@+@RAJK1 NS+RC?N for Solaris) 9ersion 11.1.#.6.# ! Production on 14!<-:!2#1# #")51)57 Copyright (c) 14411 2##71 Oracle. -ll rights reser%ed.

Connecting to (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0?CP)(8OS?0%;frea 2a) (POR?01522))) S?-?QS of the NIS?@+@R !!!!!!!!!!!!!!!!!!!!!!!! -lias NIS?@+@RAJK1 9ersion ?+SNS+R for Solaris) 9ersion 11.1.#.6.# ! Production Start Jate 14!<-:!2#1# #")"7)#2 Qptime # days # hr. 12 min. 55 sec ?race Ne%el off Security O+) Nocal OS -uthentication S+<P OII Nistener Parameter Iile &u#1&app&ora11g&product&11.1.#&dbA1&net'or &admin&listener.ora Nistener Nog Iile &u#1&app&ora11g&diag&tnslsnr&pfrea 1&listenerAdb1&alert&log.*ml Nistening @ndpoints Summary... (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0tcp)(8OS?0pfrea 1)(POR?01522))) (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0ipc)(U@:0@R?PROC1522))) Ser%ices Summary...

39

Ser%ice XJK1X has 1 instance(s). Instance XJK1X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK1RJKX has 1 instance(s). Instance XJK1X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK1ARP?X has 1 instance(s). Instance XJK1X1 status R@-J:1 has 1 handler(s) for this ser%ice... ?he command completed successfully !bash!".##> e*it logout bash!".##$ bash!".##$ clrs create !g ora!11gr1!rg !t SQ+F.oracleAlistener !p listenerAname0NIS?@+@RAJK1 !p oracleAhome0&u#1&app&ora11g&product&11.1.#&dbA1 !p resourceAdependencies0ora!db1!lh !d ora!db1!lsr bash!".##$ clrs enable ora!db1!lsr bash!".##$ clrs status !g ora!11gr1!rg 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! ora!db1!rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 ora!db1!lsr pfrea 1 pfrea 2 State !!!!! Online Offline Online Offline Online Offline Status <essage !!!!!!!!!!!!!! Online Offline Online ! Nogical8ostname Offline Online Offline

ora!db1!lh online.

bash!".##$

S'itch the 11gR1 Resource Group


bash!".##$ clrg status 000 Cluster Resource Groups 000 Group +ame !!!!!!!!!! rac!fm' !rg +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 Suspended !!!!!!!!! +o +o +o +o +o +o +o +o Status !!!!!! Online Online Online Online Online Online Online Offline

asm!inst!rg

asm!dg!rg

ora!11gr1!rg

40

bash!".##$ clrg s'itch !n pfrea 2 ora!11gr1!rg bash!".##$ clrg status 000 Cluster Resource Groups 000 Group +ame !!!!!!!!!! rac!fm' !rg +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 Suspended !!!!!!!!! +o +o +o +o +o +o +o +o Status !!!!!! Online Online Online Online Online Online Offline Online

asm!inst!rg

asm!dg!rg

ora!11gr1!rg

bash!".##$ clrs status !g ora!11gr1!rg 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! ora!db1!rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 online. ora!db1!lsr pfrea 1 pfrea 2 Offline Online Offline Online State !!!!! Offline Online Offline Online Status <essage !!!!!!!!!!!!!! Offline Online Offline ! Nogical8ostname Online ! Nogical8ostname

ora!db1!lh offline.

bash!".##$

Register and enable the 11gR2 database resource


+ote that for a single insatnce 11gR2 database 'e do not need to specify the -N@R?ANOGAIIN@ and CO++@C?AS?RI+G e*tension properties. 8o'e%er1 it is still o ay to specify those e*tension properties1 they 'ould /ust be ignored for a single instance 11gR2 database. bash!".##$ clrg create ora!11gr2!rg bash!".##$ clrg set !p rgAaffinities0OOasm!dg!rg ora!11gr2!rg bash!".##$ clrs create !g ora!11gr2!rg !t SQ+F.oracleAser%er !p oracleAhome0& u#1&app&ora11g&product&11.2.#&dbhomeA1 !p oracleAsid0JK2 !p dbAuniSueAname0JK2 !p resourceAdependenciesAofflineArestart0asm!dg!rs !d ora! db2!rs bash!".##$

41

bash!".##$ clrg online !e< ora!11gr2!rg bash!".##$ clrs status !g ora!11gr2!rg 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! ora!db2!rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 State !!!!! Online Offline Status <essage !!!!!!!!!!!!!! Online Offline

bash!".##$ -lso note that the preferred listener for a single instance 11gR2 database is to use the Grid Infrastructure for Clusters SC-+ Nistener. Kriefly1 the SIJK registers itself to a local Oracle listener. +ote that local Oracle listeners are each running on all cluster nodes1 ho'e%er the SIJK only registers itself to one local listener at any one time. -s the SIJK is s'itched or failed o%er bet'een nodes it 'ill unregister itself from the local listener on the node 'here it 'as running and register itself 'ith the local listener on the node 'here it is no' running. SC-+ pro%ides the ability to present the client 'ith a single name of 'here the SIJK is running1 regardless of 'here the SIJK is located 'ithin the cluster. -s such 'hen the client tries to connect to the SIJK the SC-+ GI resource determines 'hich local Oracle listener is listening for the SIJK ser%ice and returns that address to the client. ?he client then continues to connect 'ith the SIJ using the address pro%ided by SC-+. If the administrator does not 'ant to deploy or le%erage SC-+1 then the e*isting SQ+F.oracleAlistener R? can be deployed and does not reSuire de%elopment changes. +e%ertheless1 the 11gR2 SIJK needs to ha%e itDs localAlistener system parameter changed to reflect the local listener that is then managed by the SQ+F.oracleAlistener R?. -ppropriate tnsnames.ora and listener.ora files need to be defined to reflect the localAlistener definition as described 'ithin the SC&OSC 8-!Oracle documentation. Ky default1 'hen creating the 11gR2 database 'ith dbca1 the follo'ing localAlistener entry is defined. +ote that earlier 'e also modified the remoteAlistener to use SC-+. bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.2.#&dbhomeA1 !bash!".##> e*port OR-CN@ASIJ0JK2 !bash!".##> >OR-CN@A8O<@&bin&sSlplus X&as sysdbaX S\NHPlus) Release 11.2.#.1.# Production on Fed <ay 14 #,)22)1# 2#1# Copyright (c) 14,21 2##41 Oracle. -ll rights reser%ed.

42

Connected to) Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options S\NC sho' parameters listener +-<@ ?:P@ 9-NQ@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! listenerAnet'or s string localAlistener string (J@SCRIP?IO+0(-JJR@SSANIS?0(-J JR@SS0(PRO?OCON0?CP)(8OS?0frea !1)(POR?01521)))) remoteAlistener string frea !scan!lh)1521 S\NC e*it Jisconnected from Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options !bash!".##> e*it logout bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1# Generic =anuary 2##5 SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> lsnrctl status NS+RC?N for Solaris) 9ersion 11.2.#.1.# ! Production on 14!<-:!2#1# #,)22)5" Copyright (c) 14411 2##41 Oracle. -ll rights reser%ed.

Connecting to (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0IPC)(U@:0NIS?@+@R))) S?-?QS of the NIS?@+@R !!!!!!!!!!!!!!!!!!!!!!!! -lias NIS?@+@R 9ersion ?+SNS+R for Solaris) 9ersion 11.2.#.1.# ! Production Start Jate 14!<-:!2#1# #,)#2)"7 Qptime # days # hr. 2# min. 16 sec ?race Ne%el off Security O+) Nocal OS -uthentication S+<P OII Nistener Parameter Iile &u#1&app&11.2.#&grid&net'or &admin&listener.ora Nistener Nog Iile &u#1&app&oragrid&diag&tnslsnr&pfrea 1&listener&alert&log.*ml Nistening @ndpoints Summary... (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0ipc)(U@:0NIS?@+@R))) (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0tcp)(8OS?01#.11.1,,.56)(POR?01521)))

43

(J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0tcp)(8OS?01#.11.1,,.5,)(POR?01521))) Ser%ices Summary... Ser%ice XO-S<X has 1 instance(s). Instance XO-S<1X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK2X has 1 instance(s). Instance XJK2X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK2RJKX has 1 instance(s). Instance XJK2X1 status R@-J:1 has 1 handler(s) for this ser%ice... ?he command completed successfully !bash!".##> !bash!".##> >OR-CN@A8O<@&bin&lsnrctl status NIS?@+@RASC-+1 NS+RC?N for Solaris) 9ersion 11.2.#.1.# ! Production on #"!=Q+!2#1# #7)26)#1 Copyright (c) 14411 2##41 Oracle. -ll rights reser%ed.

Connecting to (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0IPC)(U@:0NIS?@+@RASC-+1))) S?-?QS of the NIS?@+@R !!!!!!!!!!!!!!!!!!!!!!!! -lias NIS?@+@RASC-+1 9ersion ?+SNS+R for Solaris) 9ersion 11.2.#.1.# ! Production Start Jate #"!=Q+!2#1# #6)11)1" Qptime # days 1 hr. "2 min. 27 sec ?race Ne%el off Security O+) Nocal OS -uthentication S+<P OII Nistener Parameter Iile &u#1&app&11.2.#&grid&net'or &admin&listener.ora Nistener Nog Iile &u#1&app&11.2.#&grid&log&diag&tnslsnr&po%er2&listenerAscan1&alert&log.*ml Nistening @ndpoints Summary... (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0ipc)(U@:0NIS?@+@RASC-+1))) (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0tcp)(8OS?01#.11.15#.124)(POR?01521))) Ser%ices Summary... Ser%ice XJK2X has 1 instance(s). Instance XJK2X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK2RJKX has 1 instance(s). Instance XJK2X1 status R@-J:1 has 1 handler(s) for this ser%ice... ?he command completed successfully !bash!".##>

S'itch the 11gR2 Resource Group


-lso note that after a s'itch o%er the localAlistener is updated by Grid Infrastructure to ensure that the database connects to the local listener on the ne' target node1 e.g. bash!".##$ clrs status !g ora!11gr2!rg 000 Cluster Resources 000

44

Resource +ame !!!!!!!!!!!!! ora!db2!rs

+ode +ame !!!!!!!!! pfrea 1 pfrea 2

State !!!!! Online Offline

Status <essage !!!!!!!!!!!!!! Online Offline

bash!".##$ clrg s'itch !n pfrea 2 ora!11gr2!rg bash!".##$ clrs status !g ora!11gr2!rg 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! ora!db2!rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 State !!!!! Offline Online Status <essage !!!!!!!!!!!!!! Offline Online

bash!".##$ bash!".##$ uname !n pfrea 2 bash!".##$ bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> e*port OR-CN@A8O<@0&u#1&app&ora11g&product&11.2.#&dbhomeA1 !bash!".##> e*port OR-CN@ASIJ0JK2 !bash!".##> >OR-CN@A8O<@&bin&sSlplus X&as sysdbaX S\NHPlus) Release 11.2.#.1.# Production on Fed <ay 14 #4)"#)#4 2#1# Copyright (c) 14,21 2##41 Oracle. -ll rights reser%ed.

Connected to) Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options S\NC sho' parameters listener +-<@ ?:P@ 9-NQ@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! listenerAnet'or s string localAlistener string (J@SCRIP?IO+0(-JJR@SSANIS?0(-J JR@SS0(PRO?OCON0?CP)(8OS?0frea !2)(POR?01521)))) remoteAlistener string frea !scan!lh)1521 S\NC e*it Jisconnected from Oracle Jatabase 11g @nterprise @dition Release 11.2.#.1.# ! 62bit Production

45

Fith the Partitioning1 -utomatic Storage <anagement1 ON-P1 Jata <ining and Real -pplication ?esting options !bash!".##> bash!".##$ uname !n pfrea 2 bash!".##$ su ! oragrid Sun <icrosystems Inc. SunOS 5.1#

Generic

=anuary 2##5

SC Nab Install) CO<PN@?@ ! install logs are in &%ar&sadm&system&logs !bash!".##> lsnrctl status NS+RC?N for Solaris) 9ersion 11.2.#.1.# ! Production on 14!<-:!2#1# #4)"2)", Copyright (c) 14411 2##41 Oracle. -ll rights reser%ed.

Connecting to (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0IPC)(U@:0NIS?@+@R))) S?-?QS of the NIS?@+@R !!!!!!!!!!!!!!!!!!!!!!!! -lias NIS?@+@R 9ersion ?+SNS+R for Solaris) 9ersion 11.2.#.1.# ! Production Start Jate 14!<-:!2#1# #4)#5)25 Qptime # days # hr. 26 min. 5" sec ?race Ne%el off Security O+) Nocal OS -uthentication S+<P OII Nistener Parameter Iile &u#1&app&11.2.#&grid&net'or &admin&listener.ora Nistener Nog Iile &u#1&app&oragrid&diag&tnslsnr&pfrea 2&listener&alert&log.*ml Nistening @ndpoints Summary... (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0ipc)(U@:0NIS?@+@R))) (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0tcp)(8OS?01#.11.1,,.57)(POR?01521))) (J@SCRIP?IO+0(-JJR@SS0(PRO?OCON0tcp)(8OS?01#.11.1,,.54)(POR?01521))) Ser%ices Summary... Ser%ice XO-S<X has 1 instance(s). Instance XO-S<2X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK2X has 1 instance(s). Instance XJK2X1 status R@-J:1 has 1 handler(s) for this ser%ice... Ser%ice XJK2RJKX has 1 instance(s). Instance XJK2X1 status R@-J:1 has 1 handler(s) for this ser%ice... ?he command completed successfully !bash!".##> !bash!".##> crsctl stat res ora.db2.db !t !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! +-<@ ?-RG@? S?-?@ S@R9@R S?-?@AJ@?-INS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Cluster Resources

46

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! ora.db2.db 1 O+NI+@ O+NI+@ pfrea 2 Open !bash!".##>

Iinal picture
bash!".##$ clrg status 000 Cluster Resource Groups 000 Group +ame !!!!!!!!!! rac!fm' !rg +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 Suspended !!!!!!!!! +o +o +o +o +o +o +o +o +o +o Status !!!!!! Online Online Online Online Online Online Online Offline Offline Online

asm!inst!rg

asm!dg!rg

ora!11gr1!rg

ora!11gr2!rg

bash!".##$ clrs list !g ora!11gr1!rg ora!db1!lh ora!db1!lsr ora!db1!rs bash!".##$ clrs list !g ora!11gr2!rg ora!db2!rs bash!".##$ clrs status 000 Cluster Resources 000 Resource +ame !!!!!!!!!!!!! rac!fm' !rs +ode +ame !!!!!!!!! pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 State !!!!! Online Online Online Online Online Online Online Status <essage !!!!!!!!!!!!!! Online Online Online Online Online Online Online ! O-S<1 is QP and

rac!udlm!rs

crs!fm' !rs

asm!inst!rs

47

@+-KN@J pfrea 2 @+-KN@J asm!dg!rs pfrea 1 pfrea 2 pfrea 1 pfrea 2 offline. ora!db1!lsr pfrea 1 pfrea 2 pfrea 1 pfrea 2 pfrea 1 pfrea 2 Online Offline Online Offline Offline Online Online Offline Online Offline Offline Online Online Online Online Offline Online ! <ounted) J-?Online ! <ounted) J-?Online ! Nogical8ostname Offline ! Nogical8ostname Online Online ! O-S<2 is QP and

ora!db1!lh online.

ora!db1!rs

ora!db2!rs

bash!".##$

48

You might also like