Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)
一、安装CRS补丁
在安装CRS之前,须要安装补丁p6718715_10203_AIX64-5L,否则在安装时会出现“无法发现node”的错误。
[root@aix203 /]#cd /home/oracle/p6718715_10203_AIX64-5L/
补丁解压后,仅仅须要以root身份执行“root.sh”就可以:
[root@aix203 p6718715_10203_AIX64-5L]#./rootpre.sh
  1. ./rootpre.sh output will be logged in /tmp/rootpre.out_16-03-15.17:51:20
  2. Saving the original files in /etc/ora_save_16-03-15.17:51:20....
  3. Copying new kernel extension to /etc....
  4. ./rootpre.sh[295]: test: argument expected
  5. Loading the kernel extension from /etc
  6. Oracle Kernel Extension Loader for AIX
  7. Copyright (c) 1998,1999 Oracle Corporation
  8. Kernel Extension /etc/pw-syscall.64bit_kernel already loaded, unloading it
  9. Unconfigured the kernel extension successfully
  10. Unloaded the kernel extension successfully
  11. Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x50e5d000
  12. Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x50e5d000
  13. The kernel extension was successfuly loaded.
  14. ./rootpre.sh[360]: test: argument expected
  15. Checking if group services should be configured....
  16. Please confirm your Oracle userid is a member of the group: hagsuser
  17. Configuring HACMP group services socket for possible use by Oracle.
二、安装CRS
以Oracle身份安装:
安装前检測:
[oracle@aix203 cluvfy]$./runcluvfy.sh 
  1. USAGE:
  2. cluvfy [ -help ]
  3. cluvfy stage { -list | -help }
  4. cluvfy stage {-pre|-post} <stage-name> <stage-specific options> [-verbose]
  5. cluvfy comp { -list | -help }
  6. cluvfy comp <component-name> <component-specific options> [-verbose]

[oracle@aix203 cluvfy]$./runcluvfy.sh stage -pre crsinst -n aix203,aix204 -verbose

  1. Performing pre-checks for cluster services setup
  2. Checking node reachability...
  3. Check: Node reachability from node "aix203"
  4. Destination Node Reachable?
  5.  
  6. ------------------------------------ ------------------------
  7. aix203 yes
  8. aix204 yes
  9. Result: Node reachability check passed from node "aix203".
  10. Checking user equivalence...
  11. Check: User equivalence for user "oracle"
  12. Node Name Comment
  13. ------------------------------------ ------------------------
  14. aix204 passed
  15. aix203 passed
  16. Result: User equivalence check passed for user "oracle".
  17. Checking administrative privileges...
  18. Check: Existence of user "oracle"
  19. Node Name User Exists Comment
  20. ------------ ------------------------ ------------------------
  21. aix204 yes passed
  22. aix203 yes passed
  23. Result: User existence check passed for "oracle".
  24. Check: Existence of group "oinstall"
  25. Node Name Status Group ID
  26. ------------ ------------------------ ------------------------
  27. aix204 exists 300
  28. aix203 exists 300
  29. Result: Group existence check passed for "oinstall".
  30. Check: Membership of user "oracle" in group "oinstall" [as Primary]
  31. Node Name User Exists Group Exists User in Group Primary Comment
  32. ---------------- ------------ ------------ ------------ ------------ ------------
  33. aix204 yes yes yes yes passed
  34. aix203 yes yes yes yes passed
  35. Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed.
  36. Administrative privileges check passed.
  37. Checking node connectivity...
  38. Interface information for node "aix204"
  39. Interface Name IP Address Subnet
  40. ------------------------------ ------------------------------ ----------------
  41. en0 192.168.8.204 192.168.8.0
  42. en2 10.10.10.204 10.10.10.0
  43.  
  44. Interface information for node "aix203"
  45. Interface Name IP Address Subnet
  46. ------------------------------ ------------------------------ ----------------
  47. en0 192.168.8.203 192.168.8.0
  48. en2 10.10.10.203 10.10.10.0
  49.  
  50. Check: Node connectivity of subnet "192.168.8.0"
  51. Source Destination Connected?
  52. ------------------------------ ------------------------------ ----------------
  53. aix204:en0 aix203:en0 yes
  54. Result: Node connectivity check passed for subnet "192.168.8.0" with node(s) aix204,aix203.
  55. Check: Node connectivity of subnet "10.10.10.0"
  56. Source Destination Connected?
  57.  
  58. ------------------------------ ------------------------------ ----------------
  59. aix204:en2 aix203:en2 yes
  60. Result: Node connectivity check passed for subnet "10.10.10.0" with node(s) aix204,aix203.
  61. Suitable interfaces for the private interconnect on subnet "192.168.8.0":
  62. aix204 en0:192.168.8.204
  63. aix203 en0:192.168.8.203
  64. Suitable interfaces for the private interconnect on subnet "10.10.10.0":
  65. aix204 en2:10.10.10.204
  66. aix203 en2:10.10.10.203
  67. ERROR:
  68. Could not find a suitable set of interfaces for VIPs.
  69. Result: Node connectivity check failed.
  70. Checking system requirements for 'crs'...
  71. No checks registered for this product.
  72.  
  73. Pre-check for cluster services setup was unsuccessful on all the nodes.

安装:
1)指定安装路径

2)检查安装环境

出现警告提示:对于AIX 6100-09,Oracle 10gR2不支持,不用理会,继续安装就能够

3)配置节点

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />


4)配置OCR 和 Vote Disk

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />


5)安装

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />

6)执行Script

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />


在执行脚本前能够通过dd。清理ocr和vote disk:
node1:
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix203 /]#/u01/crs_1/root.sh
  1. WARNING: directory '/u01' is not owned by root
  2. Checking to see if Oracle CRS stack is already configured
  3. Checking to see if any 9i GSD is up
  4. Setting the permissions on OCR backup directory
  5. Setting up NS directories
  6. Oracle Cluster Registry configuration upgraded successfully
  7. WARNING: directory '/u01' is not owned by root
  8. Successfully accumulated necessary OCR keys.
  9. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
  10. node <nodenumber>: <nodename> <private interconnect name> <hostname>
  11. node 1: aix203 aix203-priv aix203
  12. node 2: aix204 aix204-priv aix204
  13. Creating OCR keys for user 'root', privgrp 'system'..
  14. Operation successful.
  15. Now formatting voting device: /dev/rrac_vote
  16. Format of 1 voting devices complete.
  17. Startup will be queued to init within 30 seconds.
  18. Adding daemons to inittab
  19. Adding daemons to inittab
  20. Expecting the CRS daemons to be up within 600 seconds.
  21. CSS is active on these nodes.
  22. aix203
  23. CSS is inactive on these nodes.
  24. aix204
  25. Local node checking complete.
  26. Run root.sh on remaining nodes to start CRS daemons.

node2:
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_vote bs=8192 count=2560

2560+0 records in
2560+0 records out
[root@aix204 /]#dd if=/dev/zero of=/dev/rrac_ocr bs=8192 count=2560
2560+0 records in
2560+0 records out
[root@aix204 /]#/u01/crs_1/root.sh

  1. WARNING: directory '/u01' is not owned by root
  2. Checking to see if Oracle CRS stack is already configured
  3. Checking to see if any 9i GSD is up
  4. /etc/oracle does not exist. Creating it now.
  5. Setting the permissions on OCR backup directory
  6. Setting up NS directories
  7. Oracle Cluster Registry configuration upgraded successfully
  8. WARNING: directory '/u01' is not owned by root
  9. clscfg: EXISTING configuration version 3 detected.
  10. clscfg: version 3 is 10G Release 2.
  11. Successfully accumulated necessary OCR keys.
  12. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
  13. node <nodenumber>: <nodename> <private interconnect name> <hostname>
  14. node 1: aix203 aix203-priv aix203
  15. node 2: aix204 aix204-priv aix204
  16. clscfg: Arguments check out successfully.
  17. NO KEYS WERE WRITTEN. Supply -force parameter to override.
  18. -force is destructive and will destroy any previous cluster
  19. configuration.
  20. Oracle Cluster Registry for cluster has already been initialized
  21. Startup will be queued to init within 30 seconds.
  22. Adding daemons to inittab
  23. Adding daemons to inittab
  24. Expecting the CRS daemons to be up within 600 seconds.
  25. CSS is active on these nodes.
  26. aix203
  27. aix204
  28. CSS is active on all nodes.
  29. Waiting for the Oracle CRSD and EVMD to start
  30. Waiting for the Oracle CRSD and EVMD to start
  31. <span style="color:#cc0000;">Oracle CRS stack installed and running under init(1M)
  32. Running vipca(silent) for configuring nodeapps
  33. The given interface(s), "en0" is not public. Public interfaces should be used to configure virtual IPs.</span>

7)执行vipca配置CRS资源

[root@aix204 /]#cd /u01/crs_1/bin
[root@aix204 bin]#./vipca



watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />

三、查看CRS服务及资源
  1. <strong>[root@aix203 /]#crsctl check crs</strong>
  2. CSS appears healthy
  3. CRS appears healthy
  4. EVM appears healthy
  5. <strong>[root@aix203 /]#crs_stat -t</strong>
  6. Name Type Target State Host
  7. ------------------------------------------------------------
  8. ora.aix203.gsd application ONLINE ONLINE aix203
  9. ora.aix203.ons application ONLINE ONLINE aix203
  10. ora.aix203.vip application ONLINE ONLINE aix203
  11. ora.aix204.gsd application ONLINE ONLINE aix204
  12. ora.aix204.ons application ONLINE ONLINE aix204
  13. ora.aix204.vip application ONLINE ONLINE aix204
  14.  
  15. <strong>[root@aix204 bin]#crsctl check crs</strong>
  16. CSS appears healthy
  17. CRS appears healthy
  18. EVM appears healthy
  19. <strong>[root@aix204 bin]#crs_stat -t</strong>
  20. Name Type Target State Host
  21. ------------------------------------------------------------
  22. ora.aix203.gsd application ONLINE ONLINE aix203
  23. ora.aix203.ons application ONLINE ONLINE aix203
  24. ora.aix203.vip application ONLINE ONLINE aix203
  25. ora.aix204.gsd application ONLINE ONLINE aix204
  26. ora.aix204.ons application ONLINE ONLINE aix204
  27. ora.aix204.vip application ONLINE ONLINE aix204

---- 至此,CRS安装配置成功 。

------未完,待续 !





Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(4)的更多相关文章

  1. Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(3)

    Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(3) 一.配置共享存储 [oracle@aix203 ~]$lsdev -c disk hdisk0 Available ...

  2. Oracle Study之--Oracle 11gR2通过RMAN克隆数据库

    Oracle Study之--Oracle 11gR2通过RMAN克隆数据库 Purpose of Database Duplication A duplicate database is usefu ...

  3. Oracle Study之--Oracle 单实例11.2.0.1.0升级到11.2.0.3.0

    Oracle Study之--Oracle 单实例11.2.0.1.0升级到11.2.0.3.0 系统环境: 操作系统:RedHat EL6(64位) Oracle:    Oracle 11gR2 ...

  4. 构建Oracle的Docker镜像

    说明:本次构建环境,Centos7.7,Oracle12.2.0.1,Docker19 注意:已安装好docker的,请检查docker版本,1.13以下版本要升级: # df -h 命令检查根目录的 ...

  5. Oracle 10gR2 RAC 启动与关闭

    一. 检查共享设备 一般情况下, 存放OCR 和 Voting Disk 的OCFS2 或者raw 都是自动启动的. 如果他们没有启动,RAC 肯定是启动不了的. 1.1 如果使用ocfs2的,检查o ...

  6. 【Oracle 集群】Linux下Oracle RAC集群搭建之基本测试与使用(九)

    Oracle 11G RAC数据库安装(九) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总 ...

  7. 【转】【Oracle 集群】Linux下Oracle RAC集群搭建之基本测试与使用(九)

    原文地址:http://www.cnblogs.com/baiboy/p/orc9.html   阅读目录 目录 检查RAC状态 检查创建的数据库 全部参考文献 相关文章 Oracle 11G RAC ...

  8. 【Oracle 集群】Linux下Oracle RAC集群搭建之Oracle DataBase安装(八)

    Oracle 11G RAC数据库安装(八) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总 ...

  9. Oracle Forms 10g Tutorial Ebook Download - Oracle Forms Blog

    A step by step tutorial for Oracle Forms 10g development. This guide is helpful for freshers in Orac ...

随机推荐

  1. LeetCode -- Product of Array Except Self My Submissions Question

    Question: Given an array of n integers where n > 1, nums, return an array output such that output ...

  2. JS DOM对象与jQuery对象的转换

    JS转jQuery // 直接用$()来包裹 如同$(this) $(document) var jsObj = document.getElementById('test'); var jquery ...

  3. MATLAB矩阵操作大全

    转载自:http://blog.csdn.net/dengjianqiang2011/article/details/8753807 MATLAB矩阵操作大全 一.矩阵的表示 在MATLAB中创建矩阵 ...

  4. firefox解决flash崩溃

    1.地址栏输入 about:config 2.查找dom.ipc.plugins.flash.subprocess.crashreporter.enabled 更改为false

  5. 转:Java NIO(3)

    要想讲清楚nio的原理和它的优点得先清楚Java应用程序的文件读写原理和虚拟内存的原理.Java文件读取原理可参见如下图: 当应用程序需要读取文件的时候,内核首先通过DMA技术将文件内容从磁盘读入内核 ...

  6. C#的泛型委托Predicate/Func/Action

    Predicate<T> 是一个委托,它代表了一个方法,它的定义是: namespace System {    // 摘要:    表示定义一组条件并确定指定对象是否符合这些条件的方法. ...

  7. UVA 10746 Crime Wave - The Sequel

    最小费用最大流 源点->警察->bank->汇点 剩下的模板就可以 #include <map> #include <set> #include <li ...

  8. vue学习之环境配置

    最近在学习vue,就顺手记录一下... 1. 安装 nodejs https://nodejs.org   -->注:安装LTS的(LTS为长期稳定版本) 在cmd中输入 node -v 如果显 ...

  9. springBoot开启热部署

    springBoot开启热部署 这里使用devtools工具开启热部署 〇.搭建springbboot基础环境 一.添加依赖 <dependency> <groupId>org ...

  10. 打印PE目录数据信息

    printf("数据目录信息:\n"); PIMAGE_DATA_DIRECTORY MyDataDir; MyDataDir = PIMAGE_DATA_DIRECTORY((& ...