ORACLE 11G RAC--CLUSTERWARE工具集1
目的:熟悉工具集的使用
節點層相關工具集
1.olsnodes:關注叢集由那些節點組成
-n選項:顯示每個節點編號
[root@rac1 bin]# pwd
/u01/app/11.2.0/11ggrid/bin
[root@rac1 bin]# ./olsnodes -n
rac1 1
rac2 2
[root@rac1 bin]#
-I選項:顯示每個節點的VIP
[root@rac1 bin]# ./olsnodes -i
rac1 rac1vip
rac2 rac2vip
[root@rac1 bin]#
-p選項:顯示私有IP地址
[root@rac1 bin]# ./olsnodes -n -l -p
rac1 1 192.168.137.101
-g選項:開啟日誌開關
[root@rac1 bin]# ./olsnodes -g
rac1
rac2
-V選項:顯示詳細日誌
[root@rac1 bin]# ./olsnodes -v
lang init : Initializing LXL global
main: Initializing CLSS context
memberlist: No of cluster members configured = 256
memberlist: Allocated mem for lease node vector.
memberlist: Leased NodeList entries used = 2.
memberlist: Getting information for nodenum = 1
memberlist: node_name = rac1
memberlist: ctx->lsdata->node_num = 1
print data: Printing the node data
rac1
memberlist: Getting information for nodenum = 2
memberlist: node_name = rac2
memberlist: ctx->lsdata->node_num = 2
print data: Printing the node data
rac2
main: olsnodes executed successfully
term: Terminating LSF
[root@rac1 bin]#
其它引數用法說明
root@rac1 bin]# ./olsnodes -n -p
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
2.網路層工具oifcfg,網路層由各個節點的網路元件組成,先看下網路配置是什麼樣的
[root@rac1 bin]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#public ip:
192.168.44.101 rac1
192.168.44.102 rac2
#private ip:
192.168.137.101 rac1priv
192.168.137.102 rac2priv
#vip
192.168.44.201 rac1vip
192.168.44.202 rac2vip
#scan
192.168.44.200 racscan
#opfiler
192.168.44.251 openfiler
192.168.137.251 openfilerpriv
oifcfg可用來定義和修改oracle叢集需要的網路卡屬性。用法說明
[root@rac1 bin]# pwd
/u01/app/11.2.0/11ggrid/bin
[root@rac1 bin]# ./oifcfg -help
Name:
oifcfg - Oracle Interface Configuration Tool.
Usage: oifcfg iflist [-p [-n]]
oifcfg setif {-node | -global} {/:}...
oifcfg getif [-node | -global] [ -if [/] [-type ] ]
oifcfg delif [{-node | -global} [[/]]]
oifcfg [-help]
- name of the host, as known to a communications network
- name by which the interface is configured in the system
- subnet address of the interface
- type of the interface { cluster_interconnect | public }
[root@rac1 bin]#
用法舉例:
iflist顯示網口列表
[root@rac1 bin]# ./oifcfg iflist
eth0 192.168.44.0
eth1 192.168.137.0
[root@rac1 bin]#
getif檢視每個網路卡的屬性
[root@rac1 bin]# ./oifcfg getif
eth0 192.168.44.0 global public
eth1 192.168.137.0 global cluster_interconnect
[root@rac1 bin]#
【注】global為介面的配置方式,介面的配置方式分global,node-specific.global則說明所有節點的配置資訊相同,即所有節點配置對稱。後面當然是不對稱。
檢視非對稱配置
[root@rac1 bin]# ./oifcfg getif -node rac1
[root@rac1 bin]# ./oifcfg getif -node rac2
[root@rac1 bin]#
檢視指定型別的網路卡配置
[root@rac1 bin]# ./oifcfg getif -type public
eth0 192.168.44.0 global public
[root@rac1 bin]# ./oifcfg getif -type private
eth1 192.168.137.0 global cluster_interconnect
[root@rac1 bin]# ./oifcfg getif -type cluster_interconnect
eth1 192.168.137.0 global cluster_interconnect
[root@rac1 bin]#
搞不清楚,通過setif新增新的網路卡,慎用
搞不清楚,通過delif刪除介面配置,慎用
3.叢集層,負責維護叢集內的共享裝置,併為上一層的應用叢集提供完整的叢集狀態檢視。主要命令包含:crsctl,ocrcheck,ocrdump,ocrconfig
crsctl用來檢查CRS程式棧,每個CRS程式的狀態,管理VOTEDISK,跟蹤CRS程式
用法說明
[root@rac1 bin]# ./crsctl
Usage: crsctl
節點層相關工具集
1.olsnodes:關注叢集由那些節點組成
-n選項:顯示每個節點編號
[root@rac1 bin]# pwd
/u01/app/11.2.0/11ggrid/bin
[root@rac1 bin]# ./olsnodes -n
rac1 1
rac2 2
[root@rac1 bin]#
-I選項:顯示每個節點的VIP
[root@rac1 bin]# ./olsnodes -i
rac1 rac1vip
rac2 rac2vip
[root@rac1 bin]#
-p選項:顯示私有IP地址
[root@rac1 bin]# ./olsnodes -n -l -p
rac1 1 192.168.137.101
-g選項:開啟日誌開關
[root@rac1 bin]# ./olsnodes -g
rac1
rac2
-V選項:顯示詳細日誌
[root@rac1 bin]# ./olsnodes -v
lang init : Initializing LXL global
main: Initializing CLSS context
memberlist: No of cluster members configured = 256
memberlist: Allocated mem for lease node vector.
memberlist: Leased NodeList entries used = 2.
memberlist: Getting information for nodenum = 1
memberlist: node_name = rac1
memberlist: ctx->lsdata->node_num = 1
print data: Printing the node data
rac1
memberlist: Getting information for nodenum = 2
memberlist: node_name = rac2
memberlist: ctx->lsdata->node_num = 2
print data: Printing the node data
rac2
main: olsnodes executed successfully
term: Terminating LSF
[root@rac1 bin]#
其它引數用法說明
root@rac1 bin]# ./olsnodes -n -p
Usage: olsnodes [ [-n] [-i] [-s] [-t] [
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
-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
2.網路層工具oifcfg,網路層由各個節點的網路元件組成,先看下網路配置是什麼樣的
[root@rac1 bin]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#public ip:
192.168.44.101 rac1
192.168.44.102 rac2
#private ip:
192.168.137.101 rac1priv
192.168.137.102 rac2priv
#vip
192.168.44.201 rac1vip
192.168.44.202 rac2vip
#scan
192.168.44.200 racscan
#opfiler
192.168.44.251 openfiler
192.168.137.251 openfilerpriv
oifcfg可用來定義和修改oracle叢集需要的網路卡屬性。用法說明
[root@rac1 bin]# pwd
/u01/app/11.2.0/11ggrid/bin
[root@rac1 bin]# ./oifcfg -help
Name:
oifcfg - Oracle Interface Configuration Tool.
Usage: oifcfg iflist [-p [-n]]
oifcfg setif {-node
oifcfg getif [-node
oifcfg delif [{-node
oifcfg [-help]
[root@rac1 bin]#
用法舉例:
iflist顯示網口列表
[root@rac1 bin]# ./oifcfg iflist
eth0 192.168.44.0
eth1 192.168.137.0
[root@rac1 bin]#
getif檢視每個網路卡的屬性
[root@rac1 bin]# ./oifcfg getif
eth0 192.168.44.0 global public
eth1 192.168.137.0 global cluster_interconnect
[root@rac1 bin]#
【注】global為介面的配置方式,介面的配置方式分global,node-specific.global則說明所有節點的配置資訊相同,即所有節點配置對稱。後面當然是不對稱。
檢視非對稱配置
[root@rac1 bin]# ./oifcfg getif -node rac1
[root@rac1 bin]# ./oifcfg getif -node rac2
[root@rac1 bin]#
檢視指定型別的網路卡配置
[root@rac1 bin]# ./oifcfg getif -type public
eth0 192.168.44.0 global public
[root@rac1 bin]# ./oifcfg getif -type private
eth1 192.168.137.0 global cluster_interconnect
[root@rac1 bin]# ./oifcfg getif -type cluster_interconnect
eth1 192.168.137.0 global cluster_interconnect
[root@rac1 bin]#
搞不清楚,通過setif新增新的網路卡,慎用
搞不清楚,通過delif刪除介面配置,慎用
3.叢集層,負責維護叢集內的共享裝置,併為上一層的應用叢集提供完整的叢集狀態檢視。主要命令包含:crsctl,ocrcheck,ocrdump,ocrconfig
crsctl用來檢查CRS程式棧,每個CRS程式的狀態,管理VOTEDISK,跟蹤CRS程式
用法說明
[root@rac1 bin]# ./crsctl
Usage: crsctl
相關文章
- Oracle Clusterware工具集Oracle
- oracle 11g rac 修改字符集Oracle
- oracle 11g rac 叢集操作命令Oracle
- Oracle 11G 安裝 bbed 工具Oracle
- Oracle 11g ADRCI工具使用Oracle
- Oracle 11G OCP 1Z0-053 1Oracle
- ORACLE 11g RAC 叢集互連延遲Oracle
- Oracle 11g 052題庫解析1Oracle
- DataGuard on Oracle 11g初步介紹(1)Oracle
- oracle 11g adrci 工具使用方法Oracle
- oracle字符集轉換分析工具Oracle
- Oracle 11g RAC 叢集 SCAN IP Listener說明Oracle
- Partitioning Enhancements in Oracle Database 11g Release 1OracleDatabase
- Oracle Database 11G 效能優化工具概覽OracleDatabase優化
- Oracle 11g rac資料庫字符集轉換Oracle資料庫
- Oracle 11G OCP 1Z0-052 14Oracle
- Oracle 11g R1中ASM增強OracleASM
- Oracle 11G OCP 1Z0-052 88Oracle
- Oracle 11G OCP 1Z0-052 89Oracle
- Oracle 11G OCP 1Z0-052 90Oracle
- Oracle 11G OCP 1Z0-052 92Oracle
- Oracle 11G OCP 1Z0-052 93Oracle
- Oracle 11G OCP 1Z0-052 94Oracle
- Oracle 11G OCP 1Z0-052 95Oracle
- Oracle 11G OCP 1Z0-052 96Oracle
- Oracle 11G OCP 1Z0-052 97Oracle
- Oracle 11G OCP 1Z0-052 98Oracle
- Oracle 11G OCP 1Z0-052 99Oracle
- Oracle 11G OCP 1Z0-052 71Oracle
- Oracle 11G OCP 1Z0-052 73Oracle
- Oracle 11G OCP 1Z0-052 74Oracle
- Oracle 11G OCP 1Z0-052 75Oracle
- Oracle 11G OCP 1Z0-052 76Oracle
- Oracle 11G OCP 1Z0-052 77Oracle
- Oracle 11G OCP 1Z0-052 78Oracle
- Oracle 11G OCP 1Z0-052 79Oracle
- Oracle 11G OCP 1Z0-052 80Oracle
- Oracle 11G OCP 1Z0-052 81Oracle