4 Install Database Software

Author – A.Kishore http:/www.appsdba.

info

Build Your Own Oracle RAC 11g Release 2 Cluster on Red Hat 4 and iSCSI
Here is my setup which I have used for Installing Oracle RAC 11gR2

Laptop – windows XP To access linux1 and linux2

Linux1 There are 2 operating systems running on linux1, one is the host and one is the guest for openfiler 4 GB 250 GB

Linux2 4 GB 250 GB

openfiler1 using vmware with 1 GB RAM 250 GB

High Level Steps > > > > Install Install Install Install openfiler on linux1 using VMWARE Grid Infrastructure on linux1 and linux2 Oracle 11gR2 software on linux1 and linux2 Cluster database

Author – A.Kishore http:/www.appsdba.info Install 11g R2 database Install 11g R2 database software

Author – A.Kishore http:/www.appsdba.info

info .Kishore http:/www.Author – A.appsdba.

Author – A.Kishore http:/www.appsdba.info .

info .Author – A.Kishore http:/www.appsdba.

info .Kishore http:/www.appsdba.Author – A.

info .Kishore http:/www.Author – A.appsdba.

appsdba.info .Kishore http:/www.Author – A.

.sh Running Oracle 11g root. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin . The file "coraenv" already exists in /usr/local/bin..info cd /d03/oracle/app/oracle/product/11..0/dbhome_1/ [root@linux2 dbhome_1]# sh root.sh script.....2.Kishore http:/www.. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin . The file "oraenv" already exists in /usr/local/bin.0/dbhome_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Entries will be added to the /etc/oratab file as needed by .appsdba.Author – A.2. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /d03/oracle/app/oracle/product/11. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin .

appsdba. . Finished product-specific root actions.sh script.info Database Configuration Assistant when a database is created Finished running generic part of root. Now product-specific root actions will be performed.Author – A.Kishore http:/www.

info Create the Oracle Cluster Database .Author – A.appsdba.Kishore http:/www.

Kishore http:/www.info .Author – A.appsdba.

appsdba.Kishore http:/www.Author – A.info .

Kishore http:/www.appsdba.Author – A.info .

Author – A.info .Kishore http:/www.appsdba.

info .appsdba.Kishore http:/www.Author – A.

info .Kishore http:/www.Author – A.appsdba.

appsdba.Kishore http:/www.info .Author – A.

Kishore http:/www.Author – A.info .appsdba.

appsdba.info .Author – A.Kishore http:/www.

appsdba.Kishore http:/www.Author – A.info .

info .Author – A.Kishore http:/www.appsdba.

appsdba.Author – A.info .Kishore http:/www.

Author – A.info .appsdba.Kishore http:/www.

info su .Author – A.oracle -c "crsctl status resource -w \"TYPE co 'ora'\" -t" .appsdba.Kishore http:/www.

Author – A.Kishore http:/www.appsdba.info crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online srvctl status database -d racdb Instance racdb1 is running on node linux1 Instance racdb2 is running on node linux2 srvctl status instance -d racdb -i racdb1 Instance racdb1 is running on node linux1 .

255.0/dbhome_1 Oracle user: oracle Spfile: +DATA/racdb/spfileracdb.:linux2 VIP exists.:linux1 VIP exists.255.2.ora Domain: oracle.appsdba.1.info srvctl status instance -d racdb -i racdb1 Instance racdb1 is running on node linux1 [oracle@linux1 ~]$ srvctl status nodeapps VIP linux1-vip is enabled VIP linux1-vip is running on node: linux1 VIP linux2-vip is enabled VIP linux2-vip is running on node: linux2 Network is enabled Network is running on node: linux1 Network is running on node: linux2 GSD is disabled GSD is not running on node: linux1 GSD is not running on node: linux2 ONS is enabled ONS daemon is running on node: linux1 ONS daemon is running on node: linux2 eONS is enabled eONS daemon is running on node: linux1 eONS daemon is running on node: linux2 srvctl config nodeapps VIP exists. ONS daemon exists.255. multicast IP address 234. listening port 2016 srvctl config database racdb srvctl config database -d racdb -a Database unique name: racdb Database name: racdb Oracle home: /d03/oracle/app/oracle/product/11.0/eth0 GSD exists.200/255.Author – A.: /linux2-vip/192. Local port 6100.0/eth0 VIP exists.154. Multicast port 18123.108.com Start options: open Stop options: immediate Database role: PRIMARY .Kishore http:/www.201/255.168.: /linux1-vip/192.168.237. remote port 6200 eONS daemon exists.255.1.

1. Network: 1/192.255.0/eth0 SCAN VIP name: scan1.255.0/grid on node(s) linux2.linux2 srvctl config listener -a Name: LISTENER Network: 1.168.Kishore http:/www.1. rvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): linux1.2. IP: /racnode-cluster-scan/192.Author – A.appsdba.0/grid ASM listener: LISTENER ASM is enabled.linux2 srvctl config asm -a ASM home: /d01/oracle/app/11.racdb2 Disk Groups: DATA Services: Database is enabled Database is administrator managed srvctl status asm ASM is running on linux1.2.187 srvctl status vip -n linux1 VIP linux1-vip is enabled VIP linux1-vip is running on node: linux1 srvctl status vip -n linux2 .0/255. Owner: oracle Home: <CRS home> /d01/oracle/app/11.168.linux1 End points: TCP:1521 srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is running on node linux1 srvctl config scan SCAN name: racnode-cluster-scan.info Management policy: AUTOMATIC Server pools: racdb Database instances: racdb1.

.-----------------------linux1 Observer CTSS is in Observer state.1.0/eth0 GSD exists..255. Check of Clusterware install passed Checking if CTSS Resource is running on all nodes.1. ONS daemon exists.Author – A.200/255.. remote port 6200 Name: LISTENER Network: 1.Kishore http:/www.0/grid on node(s) linux2.linux1 End points: TCP:1521 cluvfy comp clocksync -verbose Verifying Clock Synchronization across the cluster nodes Checking if Clusterware is installed on all nodes.201/255.2. Result: Query of CTSS for time offset passed Check CTSS state started.-----------------------linux1 passed Result: CTSS resource check passed Querying CTSS for time offset on all nodes.168. Owner: oracle Home: <CRS home> /d01/oracle/app/11. Switching over to clock synchronization checks using NTP .: /linux2-vip/192..info VIP linux2-vip is enabled VIP linux2-vip is running on node: linux2 srvctl config nodeapps -a -g -s -l -l option has been deprecated and will be ignored.: /linux1-vip/192..255..appsdba..:linux2 VIP exists. Check: CTSS state Node Name State -----------------------------------. Check: CTSS Resource running on all nodes Node Name Status -----------------------------------..0/eth0 VIP exists.168.255.255. VIP exists. Local port 6100.:linux1 VIP exists.

.7" is common to all nodes on which the NTP daemon is running NTP Time Server ".info Starting Clock synchronization checks using Network Time Protocol(NTP).appsdba. in file "/etc/sysconfig/ntpd".conf" is available on all nodes NTP Configuration file check passed Checking daemon liveness...Author – A. The NTP configuration file "/etc/ntp.140. for slewing option "-x" Check: NTP daemon's boot time configuration Node Name Slewing Option Set? -----------------------------------.81.36" is common to all nodes on which the NTP daemon is running NTP Time Server "209.-----------------------linux1 yes Result: NTP daemon's boot time configuration check for slewing option passed NTP common Time Server Check started. NTP Configuration file check started.Kishore http:/www.9...21. NTP Time Server "202..." is common to all nodes on which the NTP daemon is running NTP Time Server "218.-----------------------linux1 yes Result: NTP daemon slewing option check passed Checking NTP daemon's boot time configuration. Check: Liveness for "ntpd" Node Name Running? -----------------------------------.-----------------------linux1 yes Result: Liveness check passed for "ntpd" Checking NTP daemon command line for slewing option "-x" Check: NTP daemon command line Node Name Slewing Option Set? -----------------------------------.71.INIT.199" is common to all nodes on which the NTP daemon is running Check of common NTP Time Server passed ..45.

9.199" has time offsets that are within permissible limits for nodes "[linux1]".7" has time offsets that are within permissible limits for nodes "[linux1]".-----------------------linux1 0.45.71.81.21.-----------------------linux1 12. Time Server: 218..-----------------------.Kishore http:/www. Time Offset Limit: 1000.9.199 Time Offset Limit: 1000. Check: Clock time offset from NTP Time Server Time Server: 202. Clock time offset check passed Result: Clock synchronization check using Network Time Protocol(NTP) passed Oracle Cluster Time Synchronization Services check passed Verification of Clock Synchronization across the cluster nodes was successful.Author – A.0 msecs Node Name Time Offset Status -----------.81." has time offsets that are within permissible limits for nodes "[linux1]".-----------------------linux1 -7. Checking on nodes "[linux1]".0 msecs Node Name Time Offset Status -----------.711 passed Time Server "209. Time Server: 209.45.054 passed Time Server "202.-----------------------.36 Time Offset Limit: 1000.0 passed Time Server ".0 msecs Node Name Time Offset Status -----------.0 msecs Node Name Time Offset Status -----------.-----------------------linux1 45. Time Server: .info Clock time offset check from NTP Time Server started.7 Time Offset Limit: 1000.-----------------------.71.INIT.appsdba...140.21.-----------------------. ..140.36" has time offsets that are within permissible limits for nodes "[linux1]".507 passed Time Server "218.INIT.

725453765 NAME -------------------------------------------------------------------------------- .725453681 +DATA/racdb/datafile/example.725452927 +DATA/racdb/datafile/system.264.appsdba.268.259.262.Kishore http:/www.725453895 +DATA/racdb/datafile/sysaux.Author – A.261.263.725452931 +DATA/racdb/datafile/undotbs2.725454523 +DATA/racdb/datafile/users.725452931 +DATA/racdb/onlinelog/group_1.256. 2 3 4 5 6 7 NAME -------------------------------------------------------------------------------+DATA/racdb/controlfile/current.258.725453717 +DATA/racdb/onlinelog/group_1.725453741 +DATA/racdb/onlinelog/group_2.725453693 +DATA/racdb/controlfile/current.260.info SQL> SQL> select name from v$datafile union select member from v$logfile union select name from v$controlfile union select name from v$tempfile.725452923 +DATA/racdb/datafile/undotbs1.257.267.

725454941 +DATA/racdb/onlinelog/group_4.725453789 +DATA/racdb/onlinelog/group_3. 2 PATH -------------------------------------------------------------------------------ORCL:VOL1 ORCL:VOL2 ORCL:VOL3 .270.Kishore http:/www.725453857 SQL> SQL> SELECT path FROM v$asm_disk.appsdba.265.725454915 +DATA/racdb/onlinelog/group_3.Author – A.info +DATA/racdb/onlinelog/group_2.269.725455003 +DATA/racdb/tempfile/temp.725454967 +DATA/racdb/onlinelog/group_4.266.272.271.

you can start/stop all instances and associated services using the following: [oracle@linux1 ~]$ srvctl stop database -d racdb [oracle@linux1 ~]$ srvctl start database -d racdb Stopping the Oracle Clusterware Stack on the Local Server /d01/oracle/app/11.appsdba.ons' on 'linux1' CRS-2677: Stop of 'ora.lsnr' on 'linux2' CRS-2676: Start of 'ora.info Start/Stop All Instances with SRVCTL Finally.network' on 'linux1' CRS-2677: Stop of 'ora.ons' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.dg' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.lsnr' on 'linux1' CRS-2673: Attempting to stop 'ora.0/grid/bin/crsctl stop cluster CRS-2673: Attempting to stop 'ora.linux1.LISTENER_SCAN1.scan1.lsnr' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.net1.scan1.crsd' on 'linux1' CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'linux1' CRS-2673: Attempting to stop 'ora.LISTENER.DATA.LISTENER_SCAN1.lsnr' on 'linux1' CRS-2677: Stop of 'ora.linux1.LISTENER_SCAN1.scan1.LISTENER_SCAN1.linux1.eons' on 'linux1' succeeded CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'linux1' has completed CRS-2677: Stop of 'ora.Kishore http:/www.vip' on 'linux2' succeeded CRS-2676: Start of 'ora.Author – A.network' on 'linux1' succeeded CRS-2677: Stop of 'ora.vip' on 'linux1' succeeded CRS-2672: Attempting to start 'ora.dg' on 'linux1' CRS-2673: Attempting to stop 'ora.DATA.vip' on 'linux1' CRS-2677: Stop of 'ora.lsnr' on 'linux2' succeeded CRS-2677: Stop of 'ora.vip' on 'linux2' CRS-2676: Start of 'ora.vip' on 'linux2' CRS-2677: Stop of 'ora.vip' on 'linux2' succeeded CRS-2672: Attempting to start 'ora.lsnr' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.net1.scan1.2.vip' on 'linux1' CRS-2677: Stop of 'ora.asm' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.eons' on 'linux1' CRS-2673: Attempting to stop 'ora.LISTENER.asm' on 'linux1' CRS-2677: Stop of 'ora.linux1.vip' on 'linux1' succeeded CRS-2672: Attempting to start 'ora.crsd' on 'linux1' succeeded .

2.2.0/grid/bin/crsctl start cluster /d01/oracle/app/11.Kishore http:/www.diskmon' on 'linux1' CRS-2677: Stop of 'ora.2.evmd' on 'linux1' succeeded CRS-2677: Stop of 'ora.asm' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.0/grid/bin/crsctl start cluster –all Manual startup on both nodes cd /etc/oracle/scls_scr/linux1/root/ Modify files crsstart and ohasdstr change enable to disable .cssd' on 'linux1' succeeded CRS-2673: Attempting to stop 'ora.diskmon' on 'linux1' succeeded /d01/oracle/app/11.info CRS-2673: Attempting to stop 'ora.ctssd' on 'linux1' succeeded CRS-2677: Stop of 'ora.appsdba.asm' on 'linux1' CRS-2677: Stop of 'ora.Author – A.evmd' on 'linux1' CRS-2673: Attempting to stop 'ora.ctssd' on 'linux1' CRS-2673: Attempting to stop 'ora.cssd' on 'linux1' CRS-2677: Stop of 'ora.cssdmonitor' on 'linux1' succeeded CRS-2677: Stop of 'ora.cssdmonitor' on 'linux1' CRS-2673: Attempting to stop 'ora.0/grid/bin/crsctl stop cluster –all Starting the Oracle Clusterware Stack on the Local Server /d01/oracle/app/11.

Sign up to vote on this title
UsefulNot useful