User Tools

Site Tools


rac

Oracle Real Application Clusters (RAC)

Command Line (11g/12c)

Voting Disk

[root] $GRID_HOME/bin/crsctl query css votedisk
[root] $GRID_HOME/bin/crsctl replace votedisk +FRA

Oracle Cluster Registry (OCR)

[root]   cat /etc/oracle/ocr.loc
[root]   $GRID_HOME/bin/ocrcheck
[root]   $GRID_HOME/bin/ocrconfig -delete -DATA
[root]   $GRID_HOME/bin/ocrconfig -add -DATA
[root]   $GRID_HOME/bin/ocrconfig -replace +DATA -replacement -DATA2
[oracle] $GRID_HOME/bin/ocrconfig -showbackup

Oracle Local Registry (OLR)

[root] cat /etc/oracle/olr.loc
[root] $GRID_HOME/bin/ocrcheck -local
[root] $GRID_HOME/bin/ocrconfig -local -manualbackup

Single Client Access Name (SCAN)

[oracle] $GRID_HOME/bin/srvctl config scan
[oracle] $GRID_HOME/bin/srvctl config scan_listener
[oracle] $GRID_HOME/bin/srvctl config listener
[root]   $GRID_HOME/bin/srvctl modify scan -n ol6-112-scan

Server Pools

[root] $GRID_HOME/bin/srvctl config srvpool
[root] $GRID_HOME/bin/crsctl status serverpool

Node Number Pinning

[root] $GRID_HOME/bin/crsctl pin css -n ol6-112-rac1
[root] $GRID_HOME/bin/olsnodes -t
[root] $GRID_HOME/bin/crsctl unpin css -n ol6-112-rac1

HA Services Daemon (OHASD)

[root] $GRID_HOME/bin/crsctl disable crs
[root] $GRID_HOME/bin/crsctl enable crs
[root] $GRID_HOME/bin/crsctl start crs
[root] $GRID_HOME/bin/crsctl stop crs
[root] $GRID_HOME/bin/crsctl start cluster -all
[root] $GRID_HOME/bin/crsctl start cluster -n ol6-112-rac1
[root] $GRID_HOME/bin/crsctl stop cluster -all
[root] $GRID_HOME/bin/crsctl check cluster -all

Diagnostics

[root] $GRID_HOME/bin/diagcollection.sh --all

Cluster Verification Utility

[oracle] $GRID_HOME/bin/srvctl config cvu

ASM Configuration

[root] oracleasm configure -i
[root] oracleasm start
[root] oracleasm createdisk DATA1 /dev/sde1
[root] oracleasm scandisks
[root] oracleasm listdisks
rac.txt · Last modified: 2021/12/06 11:30 by 127.0.0.1