ITPub博客

首页 > 数据库 > Oracle > [20171031]How to find Cluster name

[20171031]How to find Cluster name

原创 Oracle 作者:lfree 时间:2017-10-31 15:36:21 0 删除 编辑

[20171031]How to find Cluster name on RAC instance.txt

--//如何获得Cluster name,做一个记录:

1.以grid用户登录:

SYS@+ASM1> @ &r/ver
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

$  which cemutlo
/u01/app/11.2.0.4/grid/bin/cemutlo

$  echo $ORACLE_HOME
/u01/app/11.2.0.4/grid

$  cemutlo
Usage: /u01/app/11.2.0.4/grid/bin/cemutlo.bin [-n] [-w]
        where:
        -n prints the cluster name
        -w prints the clusterware version in the following format:
                 <major_version>:<minor_version>:<vendor_info>

$  cemutlo -n -w
xxhospital
2:1:

2.还可以使用olsnodes命令

$  which olsnodes
/u01/app/11.2.0.4/grid/bin/olsnodes


$  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

$  olsnodes -c
xxhospital

$  olsnodes -c -v
lang init : Initializing LXL global
main: Initializing CLSS context
get cluster name: Get cluster nameprint data: Printing the node data
print data: lsdata has nodename = null
xxhospital
main: olsnodes executed successfully
term: Terminating LSF

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-2146647/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: [20171031]markhot.txt
请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    4006
  • 访问量
    7969645