Friday, January 27, 2012

11gR2 RAC Commands

[oracle@vm14 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online


[oracle@vm14 ~]$ oifcfg getif
eth1 192.168.1.0 global cluster_interconnect
eth0 192.168.0.0 global public
[oracle@vm14 ~]$ oifcfg delif -global eth1
[oracle@vm14 ~]$ oifcfg setif -global eth1/192.168.1.0:cluster_interconnect
[oracle@vm14 ~]$ oifcfg getif
eth0 192.168.0.0 global public
eth1 192.168.1.0 global cluster_interconnect



[oracle@vm14 admin]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[oracle@vm14 admin]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online


[oracle@vm14 admin]$ crsctl check cluster -all
**************************************************************
vm14:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************


[oracle@vm14 admin]$ crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 0

[root@vm14 bin]# ./crsctl config crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@vm14 bin]#


[oracle@vm14 ~]$ crsctl get css
Usage:
crsctl get css
Displays the value of a Cluster Synchronization Services parameter

clusterguid
diagwait
disktimeout
misscount
reboottime
priority
logfilesize

crsctl get css ipmiaddr
Displays the IP address of the local IPMI device as set in the Oracle registry.
[oracle@vm14 ~]$ crsctl get css clusterguid
33ff95a9853c4f4afff46ad27062d6b6

[oracle@vm14 ~]$ crsctl get nodename
vm14
[oracle@vm14 ~]$


[oracle@vm14 ~]$ crsctl query crs administrator
CRS Administrator List: *
[oracle@vm14 ~]$ crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [11.2.0.1.0]
[oracle@vm14 ~]$ crsctl query crs releaseversion
Oracle High Availability Services release version on the local node is [11.2.0.1.0]
[oracle@vm14 ~]$ crsctl query crs softwareversion
Oracle Clusterware version on node [vm14] is [11.2.0.1.0]
[oracle@vm14 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 02b2f2c970c74f4ebfe416312bb22451 (ORCL:DISK1) [DATA_OCRVOTE]
Located 1 voting disk(s).
[oracle@vm14 ~]$ crsctl query css ipmidevice
CRS-4218: IPMI device not found

[oracle@vm14 ~]$ crsctl status server
NAME=vm14
STATE=ONLINE

[oracle@vm14 ~]$ crsctl status serverpool
NAME=Free
ACTIVE_SERVERS=vm14

NAME=Generic
ACTIVE_SERVERS=



srvctl add service -d RAC -s rac_srv -P BASIC -e SELECT -r "RAC1" -a "RAC2"

No comments: