Oracle Clusterware的命令集可以分为以下4种:

  1. 节点层:osnodes
  2. 网络层:oifcfg
  3. 集群层:crsctl, ocrcheck,ocrdump,ocrconfig
  4. 应用层:srvctl,onsctl,crs_stat

节点层:

  管理节点层的命令为:olsnode。

[oracle@node1 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 mode [oracle@node1 bin]$

-n显示每个节点编号
-p显示每个节点用于private interconnect网卡名称
-i显示每个node vip
-g:打印日志信息
-v:打印详细信息

使用示例:

显示每个节点的ID:
[oracle@node1 bin]$ ./olsnodes -n
node1   1
node2   2
[oracle@node1 bin]$显示用于private interconnect网卡名称:
[oracle@node1 bin]$ ./olsnodes -n -p
node1   1       rac1-priv
node2   2       rac2-priv
[oracle@node1 bin]$ 显示每个节点的vip:
[oracle@node1 bin]$ ./olsnodes -n -p -i
node1   1       rac1-priv       rac1-vip
node2   2       rac2-priv       rac2-vip
[oracle@node1 bin]$

网络层:

  网络层由各个节点的网络组件组成,包括2个物理网卡和3个IP 地址。对这一层管理时用到的命令是:oifcfg。此命令用来定义和修改Oracle集群需要的网卡属性,这些属性包括网卡的网段地址,子网掩码,接口类型等。 要想正确的使用这个命令,必须先知道Oracle是如何定义网络接口的,Oracle的每个网络接口包括名称,网段地址,接口类型3个属性。

  oifcfg 命令的格式:interface_name/subnet:interface_type

  这些属性中没有IP地址,但接口类型有两种,public和private,前者说明接口用于外部通信,用于Oracle Net和VIP 地址,而后者说明接口用于私有网络。

  接口的配置方式分为两类:global 和node-specific。 前者说明集群所有节点的配置信息相同,也就是说所有节点的配置是对称的;而后者意味着这个节点的配置和其他节点配置不同,是非对称的。

oifcfg命令有以下4个子命令,每个命令可以有不同参数:

  1. Iflist:显示网口列表
  2. Getif: 获得单个网口信息
  3. Setif:配置单个网口
  4. Delif:删除网口
 1 [oracle@node1 bin]$ ./oifcfg -help
 2
 3 Name:
 4         oifcfg - Oracle Interface Configuration Tool.
 5
 6 Usage:  oifcfg iflist [-p [-n]]
 7         oifcfg setif {-node <nodename> | -global} {<if_name>/<subnet>:<if_type>}...
 8         oifcfg getif [-node <nodename> | -global] [ -if <if_name>[/<subnet>] [-type <if_type>] ]
 9         oifcfg delif [-node <nodename> | -global] [<if_name>[/<subnet>]]
10         oifcfg [-help]
11
12         <nodename> - name of the host, as known to a communications network
13         <if_name>  - name by which the interface is configured in the system
14         <subnet>   - subnet address of the interface
15         <if_type>  - type of the interface { cluster_interconnect | public | storage }

使用示例:

显示网口列表:
[oracle@node1 bin]$ ./oifcfg iflist
eth0  192.168.2.0
eth1  10.0.0.0获得网口信息(名称,网段地址,接口类型3个属性):
[oracle@node1 bin]$ ./oifcfg getif
eth0  192.168.2.0  global  public
eth1  10.0.0.0  global  cluster_interconnect注:eth0接口的网段地址是192.168.2.0,网卡类型是public,也就是用于oracle net和vip;配置类型global说明所有节点的eth0网卡都属于192.168.2.0网段并都是public类型。查看public 类型的网卡:
[oracle@node1 bin]$ ./oifcfg getif -type public
eth0  192.168.2.0  global  public查看cluster_interconnect 类型的网卡:
[oracle@node1 bin]$ ./oifcfg getif -type cluster_interconnect
eth1  10.0.0.0  global  cluster_interconnect添加接口配置
[root@raw1 bin]# ./oifcfg setif -global eth0/192.168.1.119:public
[root@raw1 bin]# ./oifcfg setif -global eth1/10.85.10.119:cluster_interconnect删除接口配置
[root@raw1 bin]# ./oifcfg delif -global

--整理自《大话 oracle rac》

Oracle Clusterware工具1相关推荐

  1. oracle ware,Oracle Clusterware工具集

    Oracle Clusterware工具集 注意命令的位置,因为有些命令在$CRS_HOME/bin和$ORACLE_HOME/bin下面都有.因此执行命令的时候,要注意位置,否则后果可能很严重. 简 ...

  2. RAC 和 Oracle Clusterware 最佳实践和初学者指南 (Solaris) (文档 ID 1526517.1)

      RAC 和 Oracle Clusterware 最佳实践和初学者指南 (Solaris) (文档 ID 1526517.1) 转到底部 文档内容 用途   适用范围   详细信息   RAC 和 ...

  3. jumbo 安装mysql,RAC 和 Oracle Clusterware 最佳实践和初学者指南「ID 1526083.1」

    In this Document Applies to: Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Re ...

  4. Oracle Clusterware的命令集可以分为以下4种: 节点层:osnodes 网络层:oifcfg 集群层:crsctl, ocrcheck,ocrdump,ocrconfig 应用

    Oracle Clusterware的命令集可以分为以下4种:  节点层:osnodes  网络层:oifcfg  集群层:crsctl, ocrcheck,ocrdump,ocrconfig  应用 ...

  5. RAC 和 Oracle Clusterware 最佳实践和初学者指南(平台无关部分) (文档 ID 1526083.1)

      RAC 和 Oracle Clusterware 最佳实践和初学者指南(平台无关部分) (文档 ID 1526083.1) 转到底部 文档内容 用途   适用范围   详细信息   RAC 平台特 ...

  6. Oracle常用工具

    Oracle工具主要分oracle管理工具.oracle开发工具.oracle压力测试工具.oracle 卸载工具.oracle 连接工具.oracle 客户端工具.oracle 导出工具和oracl ...

  7. Oracle客户端工具出现“Cannot access NLS data files or invalid environment specified”错误的解决办法...

    Oracle客户端工具出现"Cannot access NLS data files or invalid environment specified"错误的解决办法 方法一:参考 ...

  8. 选项类 oracle ebs,Oracle EBS工具选项:关闭其他表单修改方法

    Oracle EBS里 工具-关闭其他表单 如果被勾选上,用户在打开一个Form的时候,就会关闭其他的Form,保证只有一个Form存在. 如果想开启此选项,则可以通过下面两种方式 1)每个职责单独设 ...

  9. 解密Oracle备份工具-exp/imp

    解密Oracle备份工具-exp/imp 无论是运维工作者还是数据库管理员,数据的备份和还原是我们日常工作的重点,制定合理的备份策略,使用合适的备份工具是每个IT人必备的技能,今天就给大家介绍Orac ...

最新文章

  1. REST API 安全设计指南
  2. linux 下查看帮助信息
  3. python 爬虫 scrapy 和 requsts 哪个快_Python爬虫:Scrapy研读之Request/Reponse
  4. markdown html vue,vue项目引入markdown
  5. linux系统 date命令,linux系统 的 date命令
  6. Excel 导入数据库中java.lang.StringIndexOutOfBoundsException: String index out of range: -50提示解决原因...
  7. 快安排!QQ更新被吐槽低龄化 但这个功能让微信用户们“羡慕”哭了
  8. c语言课程设计物业管理,C语言-小区物业管理-实验报告
  9. 两边放动物对战守城的游戏_疯狂动物园小程序游戏:入口
  10. TensorRT 进阶用法
  11. 2020计算机一级考试wps分数,计算机一级WPS辅导:在WPS下实现用域真正分数输入技巧...
  12. 巴菲特致股东的一封信:1991年
  13. 简单说 通过CSS实现 文字渐变色 的两种方式
  14. MATLAB——逻辑函数
  15. 总结10个Python赚钱的接单平台 兼职月入5000+
  16. 以太坊-Ethereum Studio工具入门-快速开始
  17. Excel常用办公技巧(持续更新)
  18. 【JavaScript】特殊格式的字符串—— JSON
  19. 联想笔记本启动u盘linux系统下载,制作linux启动u盘(rufus)
  20. 【软件分享】B站互助小助手

热门文章

  1. 基于Spring cloud ribbon实现多版本控制
  2. Leetcode 柠檬水找零
  3. iis7打开php显示500错误,怎么解决iis7 php 500错误
  4. tomcat8 tomcat-users相关配置
  5. 1287:最低通行费——数字三角形模型
  6. 7-主题模式(Topics)
  7. 想要转行做软件测试,要两万学费,怕学后又不适合自己,没有勇气,怎么办?
  8. 【大数据实时数据同步】超级详细的生产环境OGG(GoldenGate)12.2实时异构同步Oracle数据部署方案(中)
  9. 微信开年大作:把元宇宙装进小程序
  10. IE7.0 中设置选项卡中的在新的窗口中打开网页(注册表)