11G olsnodes可以显示集群名称

2712阅读 0评论2012-07-14 TOMSYAN
分类:Oracle

 
[grid@lerac1 ~]$ olsnodes -h
Usage: olsnodes [ [-n] [-i] [-s] [-t] [ | -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
                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

点击(此处)折叠或打开

  1. [grid@lerac1 ~]$ olsnodes -c
  2. lerac-cluster

此外还可以显示节点的状态


点击(此处)折叠或打开

  1. [grid@lerac1 ~]$ olsnodes -s
  2. lerac1 Active
  3. lerac2 Active
  4. [grid@lerac1 ~]$

上一篇:一位架构师对技术方向的一些反思
下一篇:关于VARCHAR2(2 CHAR) VS VARCHAR2(2)