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

本文涉及的产品
通用文字识别,通用文字识别 200次/月
教育场景识别,教育场景识别 200次/月
个人证照识别,个人证照识别 200次/月
简介:

  在安装数据库集群件之前,应当做好安装前的准备工作,详细配置参考: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按钮,继续安装

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

本文转自斩月博客51CTO博客,原文链接http://blog.51cto.com/ylw6006/592816如需转载请自行联系原作者


ylw6006

相关文章
|
2月前
|
运维 Oracle 前端开发
Oracle 11g RAC集群日常运维命令总结
Oracle 11g RAC集群日常运维命令总结
70 2
|
5月前
|
存储 Oracle 关系型数据库
Oracle RAC:数据库集群的舞动乐章
【4月更文挑战第19天】Oracle RAC是Oracle提供的高可用性数据库解决方案,允许多个实例共享同一数据库,确保业务连续性和数据完整性。通过集群件和全局缓存服务实现服务器间的协调和通信。RAC提供高可用性,通过故障转移应对故障,同时提升性能,多个实例并行处理请求。作为数据管理员,理解RAC的架构和管理至关重要,以发挥其在数据管理中的最大价值。
|
5月前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
68 3
|
Oracle 关系型数据库 数据库
RAC中,控制文件的快照文件必须能够被所有节点的数据实例访问到 ORA-00245
RMAN在使用控制文件备份的时候,备份开始点需要最新的检查点信息以及文件头信息。
106 0
|
缓存 负载均衡 Oracle
Oracle rac集群中的IP类型简介
Oracle rac集群中的IP类型简介
681 0
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
799 0
|
Oracle 关系型数据库 数据库
Oracle RAC集群启动与关闭,涵盖所有版本
Oracle RAC集群启动与关闭,涵盖所有版本
1092 0
Oracle RAC集群启动与关闭,涵盖所有版本
|
虚拟化
Vmware虚拟机RAC集群绑定共享磁盘方法
Vmware虚拟机RAC集群绑定共享磁盘方法
644 0
Vmware虚拟机RAC集群绑定共享磁盘方法