Sunday, November 17, 2013

Olsnode Commands in Oracle RAC

[oracle@rac3 bin]$ ./olsnodes -h
Usage: olsnodes [ [-n] [-i] [-s] [-t] [<node> | -l [-p]] | [-c] ] [-g] [-v]
        where
                -n print node number with the node name
                -p print private interconnect address for the local node
                -i print virtual IP address with the node name
                <node> print information for the specified node
                -l print information for the local node
                -s print node status - active or inactive
                -t print node type - pinned or unpinned
                -g turn on logging
                -v Run in debug mode; use at direction of Oracle Support only.
                -c print clusterware name

To view list nodes in cluster & its number
[oracle@rac3 bin]$ ./olsnodes -n
rac1    1
rac3    2

To view nodes & VIP address
[oracle@rac3 bin]$ ./olsnodes -i
rak1    192.168.1.181
rac3    192.168.1.183

[oracle@rac3 bin]$ ./olsnodes rac1 -v
lang init : Initializing LXL global
main: Initializing CLSS context
node: retrieving information for node=rac1
node: No of cluster members configured = 256
getnodenum: Retrieving the node number for node = rac1
getnodenum: node number = 1
print data: Printing the node data
rac1
main: olsnodes executed successfully
term: Terminating LSF

No comments:

Post a Comment