ITPub博客

首页 > Linux操作系统 > Linux操作系统 > OLSNODES命令

OLSNODES命令

原创 Linux操作系统 作者:yangtingkun 时间:2010-12-18 23:58:48 0 删除 编辑

这个命令是用来检查RAC节点的。

 

 

用法很简单:

bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes
racnode1
racnode2
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -h
用法: olsnodes [-n] [-p] [-i] [ | -l] [-g] [-v]
        where
                -n
打印节点编号和节点名
                -p
打印专用互联名和节点名
                -i
打印虚拟 IP 名和节点名
               
打印指定节点的信息
                -l
打印本地节点的信息
                -g
启用事件记录
                -v
在详细模式下运行

bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -n
racnode1        1
racnode2        2
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -i
racnode1        racnode1-vip
racnode2        racnode2-vip
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -p
racnode1        racnode1-priv
racnode2        racnode2-priv
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -v
prlslms: Initializing LXL global
prlsndmain: Initializing CLSS context
prlsmemberlist: No of cluster members configured = 256
prlsmemberlist: Getting information for nodenum = 1
prlsmemberlist: node_name = racnode1
prlsmemberlist: ctx->lsdata->node_num = 1
prls_printdata: Printing the node data
racnode1
prlsmemberlist: Getting information for nodenum = 2
prlsmemberlist: node_name = racnode2
prlsmemberlist: ctx->lsdata->node_num = 2
prls_printdata: Printing the node data
racnode2
prlsndmain: olsnodes executed successfully
prlsndterm: Terminating LSF
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes racnode1  
racnode1
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes racnode2
racnode2
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes racnode2 -v
prlslms: Initializing LXL global
prlsndmain: Initializing CLSS context
prlsnode: retrieving information for node=racnode2
prls_getnodenum: Retrieving the node number for node = racnode2
prls_getnodenum: node number = 2
prls_printdata: Printing the node data
racnode2
prlsndmain: olsnodes executed successfully
prlsndterm: Terminating LSF
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -l        
racnode1
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -l -p
racnode1        racnode1-priv

这个命令不仅可以返回RAC的节点,还可以返回对应的private_id以及vip对应的节点名称。

 

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

下一篇: OIFCFG命令
请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1955
  • 访问量
    10438763