RAC安装之二 安装数据集群件

  在安装数据库集群件之前,应当做好安装前的准备工作,详细配置参考:http://ylw6006.blog.51cto.com/470441/592564

上传数据库集群件软件至rac1节点并解压,只需在节点1上操作即可 

运行相关脚本

 
 
  1. [root@rac1 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh  
  2. Changing permissions of /u01/app/oracle/oraInventory to 770.  
  3. Changing groupname of /u01/app/oracle/oraInventory to oinstall.  
  4. The execution of the script is complete  
  5.  
  6. [root@rac2 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh  
  7. Changing permissions of /u01/app/oracle/oraInventory to 770.  
  8. Changing groupname of /u01/app/oracle/oraInventory to oinstall.  
  9. The execution of the script is complete  
  10.  
  11.  
  12. [root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/root.sh  
  13. WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root  
  14. WARNING: directory '/u01/app/oracle/product' is not owned by root  
  15. WARNING: directory '/u01/app/oracle' is not owned by root  
  16. WARNING: directory '/u01/app' is not owned by root  
  17. WARNING: directory '/u01' is not owned by root  
  18. Checking to see if Oracle CRS stack is already configured  
  19. /etc/oracle does not exist. Creating it now.  
  20.  
  21. Setting the permissions on OCR backup directory  
  22. Setting up NS directories  
  23. Oracle Cluster Registry configuration upgraded successfully  
  24. WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root  
  25. WARNING: directory '/u01/app/oracle/product' is not owned by root  
  26. WARNING: directory '/u01/app/oracle' is not owned by root  
  27. WARNING: directory '/u01/app' is not owned by root  
  28. WARNING: directory '/u01' is not owned by root  
  29. Successfully accumulated necessary OCR keys.  
  30. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.  
  31. node <nodenumber><nodename> <private interconnect name> <hostname> 
  32. node 1: rac1 rac1-priv rac1  
  33. node 2: rac2 rac2-priv rac2  
  34. Creating OCR keys for user 'root', privgrp 'root'..  
  35. Operation successful.  
  36. Now formatting voting device: /dev/raw/raw7  
  37. Now formatting voting device: /dev/raw/raw8  
  38. Now formatting voting device: /dev/raw/raw9  
  39. Format of 3 voting devices complete.  
  40. Startup will be queued to init within 90 seconds.  
  41. Adding daemons to inittab  
  42. Expecting the CRS daemons to be up within 600 seconds.  
  43. CSS is active on these nodes.  
  44.         rac1  
  45. CSS is inactive on these nodes.  
  46.         rac2  
  47. Local node checking complete.  
  48. Run root.sh on remaining nodes to start CRS daemons.  
  49.  
  50.  
  51. [root@rac2 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh  
  52. Changing permissions of /u01/app/oracle/oraInventory to 770.  
  53. Changing groupname of /u01/app/oracle/oraInventory to oinstall.  
  54. The execution of the script is complete  
  55. [root@rac2 ~]# /u01/app/oracle/product/10.2.0/crs_1/root.sh  
  56. WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root  
  57. WARNING: directory '/u01/app/oracle/product' is not owned by root  
  58. WARNING: directory '/u01/app/oracle' is not owned by root  
  59. WARNING: directory '/u01/app' is not owned by root  
  60. WARNING: directory '/u01' is not owned by root  
  61. Checking to see if Oracle CRS stack is already configured  
  62. /etc/oracle does not exist. Creating it now.  
  63.  
  64. Setting the permissions on OCR backup directory  
  65. Setting up NS directories  
  66. Oracle Cluster Registry configuration upgraded successfully  
  67. WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root  
  68. WARNING: directory '/u01/app/oracle/product' is not owned by root  
  69. WARNING: directory '/u01/app/oracle' is not owned by root  
  70. WARNING: directory '/u01/app' is not owned by root  
  71. WARNING: directory '/u01' is not owned by root  
  72. clscfg: EXISTING configuration version 3 detected.  
  73. clscfg: version 3 is 10G Release 2.  
  74. Successfully accumulated necessary OCR keys.  
  75. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.  
  76. node <nodenumber><nodename> <private interconnect name> <hostname> 
  77. node 1: rac1 rac1-priv rac1  
  78. node 2: rac2 rac2-priv rac2  
  79. clscfg: Arguments check out successfully.  
  80.  
  81. NO KEYS WERE WRITTEN. Supply -force parameter to override.  
  82. -force is destructive and will destroy any previous cluster  
  83. configuration.  
  84. Oracle Cluster Registry for cluster has already been initialized  
  85. Startup will be queued to init within 90 seconds.  
  86. Adding daemons to inittab  
  87. Expecting the CRS daemons to be up within 600 seconds.  
  88. CSS is active on these nodes.  
  89.         rac1  
  90.         rac2  
  91. CSS is active on all nodes.  
  92. Waiting for the Oracle CRSD and EVMD to start  
  93. Oracle CRS stack installed and running under init(1M)  
  94. Running vipca(silent) for configuring nodeapps  
  95. The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs. 

在节点2上运行orainstRoot.sh脚本,出现提示"eth0 不是公共网络地址不能配置VIP地址"。解决方法就是在第二个节点上以root用户身份手动运行vipca 下一步:
[root@rac2 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/vipca

 

在节点2上测试crs是否正常

 
 
  1. [oracle@rac2 ~]$ /u01/app/oracle/product/10.2.0/crs_1/bin/crs_stat -t  
  2. Name           Type           Target    State     Host          
  3. ------------------------------------------------------------  
  4. ora.rac1.gsd   application    ONLINE    ONLINE    rac1          
  5. ora.rac1.ons   application    ONLINE    ONLINE    rac1          
  6. ora.rac1.vip   application    ONLINE    ONLINE    rac1          
  7. ora.rac2.gsd   application    ONLINE    ONLINE    rac2          
  8. ora.rac2.ons   application    ONLINE    ONLINE    rac2          
  9. ora.rac2.vip   application    ONLINE    ONLINE    rac2    

点击下图中的ok按钮,继续安装

数据库集群件的安装到此结束

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值