在安装数据库集群件之前,应当做好安装前的准备工作,详细配置参考:http://ylw6006.blog.51cto.com/470441/592564;
上传数据库集群件软件至rac1节点并解压,只需在节点1上操作即可
运行相关脚本
- [root@rac1 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh
- Changing permissions of /u01/app/oracle/oraInventory to 770.
- Changing groupname of /u01/app/oracle/oraInventory to oinstall.
- The execution of the script is complete
- [root@rac2 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh
- Changing permissions of /u01/app/oracle/oraInventory to 770.
- Changing groupname of /u01/app/oracle/oraInventory to oinstall.
- The execution of the script is complete
- [root@rac1 ~]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
- WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
- WARNING: directory '/u01/app/oracle/product' is not owned by root
- WARNING: directory '/u01/app/oracle' is not owned by root
- WARNING: directory '/u01/app' is not owned by root
- WARNING: directory '/u01' is not owned by root
- Checking to see if Oracle CRS stack is already configured
- /etc/oracle does not exist. Creating it now.
- Setting the permissions on OCR backup directory
- Setting up NS directories
- Oracle Cluster Registry configuration upgraded successfully
- WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
- WARNING: directory '/u01/app/oracle/product' is not owned by root
- WARNING: directory '/u01/app/oracle' is not owned by root
- WARNING: directory '/u01/app' is not owned by root
- WARNING: directory '/u01' is not owned by root
- Successfully accumulated necessary OCR keys.
- Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
- node <nodenumber>: <nodename> <private interconnect name> <hostname>
- node 1: rac1 rac1-priv rac1
- node 2: rac2 rac2-priv rac2
- Creating OCR keys for user 'root', privgrp 'root'..
- Operation successful.
- Now formatting voting device: /dev/raw/raw7
- Now formatting voting device: /dev/raw/raw8
- Now formatting voting device: /dev/raw/raw9
- Format of 3 voting devices complete.
- Startup will be queued to init within 90 seconds.
- Adding daemons to inittab
- Expecting the CRS daemons to be up within 600 seconds.
- CSS is active on these nodes.
- rac1
- CSS is inactive on these nodes.
- rac2
- Local node checking complete.
- Run root.sh on remaining nodes to start CRS daemons.
- [root@rac2 ~]# /u01/app/oracle/oraInventory/orainstRoot.sh
- Changing permissions of /u01/app/oracle/oraInventory to 770.
- Changing groupname of /u01/app/oracle/oraInventory to oinstall.
- The execution of the script is complete
- [root@rac2 ~]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
- WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
- WARNING: directory '/u01/app/oracle/product' is not owned by root
- WARNING: directory '/u01/app/oracle' is not owned by root
- WARNING: directory '/u01/app' is not owned by root
- WARNING: directory '/u01' is not owned by root
- Checking to see if Oracle CRS stack is already configured
- /etc/oracle does not exist. Creating it now.
- Setting the permissions on OCR backup directory
- Setting up NS directories
- Oracle Cluster Registry configuration upgraded successfully
- WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
- WARNING: directory '/u01/app/oracle/product' is not owned by root
- WARNING: directory '/u01/app/oracle' is not owned by root
- WARNING: directory '/u01/app' is not owned by root
- WARNING: directory '/u01' is not owned by root
- clscfg: EXISTING configuration version 3 detected.
- clscfg: version 3 is 10G Release 2.
- Successfully accumulated necessary OCR keys.
- Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
- node <nodenumber>: <nodename> <private interconnect name> <hostname>
- node 1: rac1 rac1-priv rac1
- node 2: rac2 rac2-priv rac2
- clscfg: Arguments check out successfully.
- NO KEYS WERE WRITTEN. Supply -force parameter to override.
- -force is destructive and will destroy any previous cluster
- configuration.
- Oracle Cluster Registry for cluster has already been initialized
- Startup will be queued to init within 90 seconds.
- Adding daemons to inittab
- Expecting the CRS daemons to be up within 600 seconds.
- CSS is active on these nodes.
- rac1
- rac2
- CSS is active on all nodes.
- Waiting for the Oracle CRSD and EVMD to start
- Oracle CRS stack installed and running under init(1M)
- Running vipca(silent) for configuring nodeapps
- 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是否正常
- [oracle@rac2 ~]$ /u01/app/oracle/product/10.2.0/crs_1/bin/crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.rac1.gsd application ONLINE ONLINE rac1
- ora.rac1.ons application ONLINE ONLINE rac1
- ora.rac1.vip application ONLINE ONLINE rac1
- ora.rac2.gsd application ONLINE ONLINE rac2
- ora.rac2.ons application ONLINE ONLINE rac2
- ora.rac2.vip application ONLINE ONLINE rac2
点击下图中的ok按钮,继续安装
数据库集群件的安装到此结束
本文转自斩月博客51CTO博客,原文链接http://blog.51cto.com/ylw6006/592816如需转载请自行联系原作者
ylw6006