Professional Documents
Culture Documents
RAC Introduction R
RAC Introduction R
RAC Introduction R
By
Riyaj Shamsudeen
Basic RAC
One database, multiple instances. Shared everything architecture.
All of the following must be in cluster file system or ASM
storage.
Database files
Undo tablespace
Temp tablespace
Instance Startup
srvctl start instance –d PERF –i PERF1,PERF2
Syntax is
srvctl start instance -d db_unique_name -i inst_name_list \
[-o start_options] [-c connect_str | -q]
You can see all instances in the cluster using config option.
Instances
$ srvctl config database -d PERF
wsqfinc1a PERF1 /opt/app/dtperf/perfdb/10.2
wsqfinc2a PERF2 /opt/app/dtperf/perfdb/10.2
wsqfinc3a PERF3 /opt/app/dtperf/perfdb/10.2
wsqfinc3e PERF4 /opt/app/dtperf/perfdb/10.2
Syntax is
srvctl config database [-d db_unique_name [-a] [-t]]
Stopping listeners
srvctl stop listener –n wsqfinc1a
srvctl stop listener –n wsqfinc1a –l PERF
crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....F1.inst application 0/5 0/0 ONLINE ONLINE wsqfinc1a
ora....F2.inst application 0/5 0/0 ONLINE ONLINE wsqfinc2a
ora....F3.inst application 0/5 0/0 ONLINE ONLINE wsqfinc3a
ora....F4.inst application 0/5 0/0 ONLINE ONLINE wsqfinc3e
ora.PERF.db application 0/0 0/1 ONLINE ONLINE wsqfinc1a
ora....RF.lsnr application 1/5 0/0 ONLINE ONLINE wsqfinc1a
ora....c1a.gsd application 4/5 0/0 ONLINE ONLINE wsqfinc1a
...
NAME=ora.wsqfinc2a.vip
TYPE=application
RESTART_ATTEMPTS=0
RESTART_COUNT=0
FAILURE_THRESHOLD=0
FAILURE_COUNT=0
TARGET=ONLINE
STATE=ONLINE on wsqfinc2a
If you are not sure syntax, just type crsctl and enter. Complete
syntax displayed.
Other logs are in the respective directory. For example, crs log file
in PERF is in
/opt/app/dtperf/oracrs/product/crs/log/wsqfinc1a/crsd/crsd.log
To check if an interconnectRiyaj
is Shamsudeen
ATT reachable
June 2010 or not, use ping. First one
22
is source, in this case ce2, target is node 4 IP address.
/usr/sbin/ping -s -U -i ce2 172.29.1.41 1 10