January 6, 2018

olsnodes commands in Oracle RAC

Oracle RAC 11g / 12c OLSNODES commands

Provides list of nodes and other information for all nodes participating in the cluster.

olsnodes [node_name] [-g] [-i] [-l] [-n] [-p] [-s] [-t] [-v]    ==> in Oracle RAC 11g

# olsnodes [ [ [-n] [-i] [-s] [-t] [ | -l [-p]] ] | [-c] | [-a] ] [-g] [-v] ==> in Oracle RAC 12c

node_name -- displays information for the particular node

g -- more details (turn on logging)

i -- with VIP

l -- local node name

n -- with node number (with the node name)

p -- private interconnect

s -- status of the node (ACTIVE or INACTIVE)

t -- type of the node (PINNED or UNPINNED)

v -- verbose, Run in debug mode

c -- clusterware name (From 12c Oracle RAC)

a -- print active node roles of the nodes in the cluster (From 12c Oracle RAC)



How to find out nodes in the Oracle RAC cluster?
# olsnodes             -- will list nodes in the cluster

# olsnodes -n

# olsnodes node44 -v

# olsnodes -n -p -i
node1-pub 1 node1-prv node1-vip
node2-pub 2 node2-prv node2-vip


# olsnodes -i
node1 178.192.1.1
node2 178.192.2.1
node3 178.192.3.1
node4 178.192.4.1

# olsnodes -c

$ olsnodes -n -i -s -t

$ olsnodes -s -t -v


How to find out the nodes in the cluster (or) how to find out the master node?

# olsnodes     - Whichever is displayed first, is the master node of the cluster.

Related Oracle Articles:    oifcfg commands RAC    onsctl commands RAC    srvctl commands RAC


No comments:

Post a Comment