Tuesday, April 3, 2012

RAC Commands

RAC Specific  init.ora parameters

The following are important initialization parameters that must have the same values
across all the instances of an RAC database:

• CLUSTER_DATABASE
• CONTROL_FILES
• DB_BLOCK_SIZE
• COMPATIBLE
• DB_NAME
• ACTIVE_INSTANCE_COUNT
• UNDO_MANAGEMENT
• RESULT_CACHE_MAX_SIZE
• DB_UNIQUE_NAME
• CLUSTER_DATABASE_INSTANCES
• INSTANCE_TYPE
• REMOTE_LOGIN_PASSWORDFILE
• DB_RECOVERY_FILE_DEST
• DB_RECOVERY_FILE_DEST_SIZE

The following are important initialization parameters that must have a unique value
across all instances of an RAC database:

• INSTANCE_NAME
• INSTANCE_NUMBER
• UNDO_TABLESPACE
• THREAD

Srvctl commands

-- Add

 srvctl add database -d MIS -o /app/oracle/product/10.2.0/RACDB

 srvctl add instance -d MIS -i MIS1 -n rac1

 Config

 srvctl config
 srvclt config -v
 srvctl config database -d MIS
 srvctl config database -d MIS -a
 srvctl config nodeapps -a -g -s -i -n rac1
 srvctl config listener -n rac1
 srvctl config service -d MIS
 srvctl config service MIS -s MIS_RAC -a

--Start/Stop

srvctl stop database -d MIS -o immediate
srvctl stop instance -i MIS1 -d MIS -o immediate
srvctl stop asm +ASM1 -n oracls1
srvctl stop asm +ASM2 -n oracls2
srvctl stop listener
srvctl stop nodeapps -n oracls1
srvctl stop nodeapps -n oracls2
./crsctl stop crs

--Status

srvctl status database -d MIS
srvctl status instance -i MIS1 -d MIS
srvctl statsu nodeapps -n oracls1

CRS Tracing

export ORA_CRSDEBUG_ALL=1 to 5

see metalink note 357808 for details

Srvctl Tracing

export SRVM_TRACE=true

 Backup Voting Disks

  dd if=/dev/raw/raw11 of=/home/oracle/votingdsk.bkp

 OCR Commands

ocrconfig -export /tmp/dba/exp_ocr.dmp -s online
ocrconfig  -showbackup
ocrconfig -backup loc dirname
ocrconfig -restore
ocrcheck
 

Determing ocr location

cat /etc/oracle/ocr.loc

 oifcfg Commands

oifcfg iflist
oifcfg iflist -p -n
oifcfg getif -type public
oifcfg getif
oifcfg getif -n rac2
oifcfg getif -if eth2

--Crs Statistics

crs_stat -t
crs_stat -t -v

--Olsnodes

olsnode -n

 cluvfy

cluvfy stage -pre crsinst -n rac1,rac2
cluvfy comp nodereach -n rac1,rac2 -verbose
cluvfy stage -post crsinst -n rac1,rac2 -verbose
cluvfy comp clu -n rac1,rac2 -verbose
cluvfy comp clumgr -n rac1,rac2 -verbose
cluvfy comp nodeapp -n rac1,rac2 -verbose
cluvfy comp crs -n rac1,rac2 -verbose
cluvfy comp ocr -n rac1,rac2 -verbose
cluvfy stage -pre dbcfg -n rac1,rac2 -d -verbose
cluvfy stage -pre dbinst -n rac1,rac2 -verbose
cluvfy comp ofcr -n all

 Check CRS

crsctl check crsd
crsctl check cssd
crsctl check evmd
 

Query voting disks

crsctl query css votedisk

crsctl query crs softwareversion
crsctl query activeversion

List Modules

crsctl lsmodules crs
crsctl lsmodules evm

No comments: