olsnode 命令 具体都可以-help查看
[root@dmk01 bin]# ./olsnodes -help
Usage: olsnodes [-n] [-p] [-i] [<node> | -l] [-g] [-v]
where
-n print node number with the node name
-p print private interconnect name with the node name
-i print virtual IP name with the node name
<node> print information for the specified node
-l print information for the local node
-g turn on logging
-v run in verbose mod
--显示当前节点网络地址信息
[root@node1 ~]# oifcfg iflist -p -n
eth0 192.168.1.0 PRIVATE 255.255.255.0
eth1 9.9.9.0 UNKNOWN 255.255.255.0
--分别显示
[root@node1 ~]# oifcfg getif -type public
eth0 192.168.1.0 global public
[root@node1 ~]# oifcfg getif -type private
eth1 9.9.9.0 global cluster_interconnect
[oracle@dmk01 ~]$ oifcfg getif 显示每个网卡属性
[root@node1 ~]# oifcfg getif
eth0 192.168.1.0 global public --Oracle net IP VIP
eth1 9.9.9.0 global cluster_interconnect --Oracle private IP 用于内部通信与心跳
[oracle@dmk01 ~]$ oifcfg getif -global -dmk22 查看node dmk22的配置
bond0 10.87.25.0 global public
ib0 192.168.26.0 global cluster_interconnect
[oracle@dmk01 ~]$ oifcfg getif -type public 查看指定类型的网卡(例中为public,还有cluster_interconnect类型)
bond0 10.87.25.0 global public
[root@node1 ~]# oifcfg getif -type cluster_interconnect
eth1 9.9.9.0 global cluster_interconnect
[root@node1 ~]# oifcfg getif -type private
eth1 9.9.9.0 global cluster_interconnect
数据库中查询相关信息
SQL> select * from v$cluster_interconnects ;
NAME IP_ADDRESS IS_ SOURCE
--------------- ---------------- --- -------------------------------
eth1 9.9.9.31 NO Oracle Cluster Repository
SQL> select * from v$configured_interconnects ;
NAME IP_ADDRESS IS_ SOURCE
--------------- ---------------- --- -------------------------------
eth1 9.9.9.31 NO Oracle Cluster Repository
eth0 192.168.1.31 YES Oracle Cluster Repository