OLSNODES命令
這個命令是用來檢查RAC節點的。
用法很簡單:
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes
racnode1
racnode2
bash-2.03$ $ORACLE_HOME/../crs/bin/olsnodes -h
用法: olsnodes [-n] [-p] [-i] [
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OLSNODES命令的八種格式
- Olsnodes Produces CPU Spikes With Many Logs [ID 729349.1]
- cmd 命令列 命令命令列
- windows命令列命令Windows命令列
- git命令列命令Git命令列
- Linux命令之rz命令與sz命令Linux
- Hadoop Shell命令 |HDFS Shell命令| HDFS 命令Hadoop
- java命令--jmap命令使用Java
- Linux命令—–CP命令Linux
- 【Linux命令】grep命令Linux
- hadoop命令fsck命令Hadoop
- ipcs命令和ipcrm命令
- Linux命令--ps命令Linux
- Linux系統中的管道命令、grep命令、sed命令和awk命令Linux
- Linux命令(1)——xargs命令Linux
- Linux命令篇 - grep 命令Linux
- Linux命令篇 - sed 命令Linux
- Linux命令篇 - tar 命令Linux
- Linux命令列與命令Linux命令列
- linux命令 之 du 命令Linux
- 【AIX 命令學習】mkvg 命令AI
- SQL*PLUS命令, set命令大全SQL
- linux命令:ping命令Linux
- Linux命令之lldptool命令Linux
- AT命令
- 命令
- 批處理命令之tree命令
- linux每日命令(32):gzip命令Linux
- linux每日命令(29):chown命令Linux
- linux每日命令(18):whereis命令Linux
- linux每日命令(36):wc命令Linux
- linux每日命令(35):grep命令Linux
- linux每日命令(37):top命令Linux
- linux每日命令(39):lsof命令Linux
- linux每日命令(5):mkdir命令Linux
- linux每日命令(2):cd命令Linux
- linux每日命令(10):touch命令Linux
- linux每日命令(12):nl命令Linux