码迷,mamicode.com
首页 > 数据库 > 详细

Solaris 10(x86)构建Oracle 10g RAC之--安装CRS

时间:2015-01-22 15:48:18      阅读:378      评论:0      收藏:0      [点我收藏+]

标签:oracle

Solaris 10(x86)构建Oracle 10g RAC之--安装CRS

系统环境:

操作系统:Solaris 10(x86-64)

Cluster: Oracle CRS 10.2.0.1.0

Oracle:  Oracle 10.2.0.1.0


如图所示:RAC 系统架构

技术分享


二、CRS 安装

     Cluster Ready Service是Oracle 构建RAC,负责集群资源管理的软件,在搭建RAC中必须首先安装.

安装需采用图形化方式,以Oracle用户的身份安装(在node1上):

解压CRS安装包:

[oracle@node1:/export/home/oracle]$ unzip 10201_clusterware_solx86_64.zip

跳过系统环境检测:

[oracle@node1:/export/home/oracle/clusterware]$ ./runInstaller -ignoreSysPrereps

技术分享


技术分享


技术分享


注意:以上安装路径为CRS安装路径

技术分享


技术分享


添加node2信息

技术分享


技术分享


修改网络属性

技术分享


指定OCR磁盘位置

技术分享


指定VOTE磁盘位置

技术分享


技术分享


运行脚本:(所有node)

[root@node1:/]# /export/home/ora10/oraInventory/orainstRoot.sh 
Changing permissions of /export/home/ora10/oraInventory to 770.
Changing groupname of /export/home/ora10/oraInventory to oinstall.
The execution of the script is complete

[root@node2:/]# /export/home/ora10/oraInventory/orainstRoot.sh 
Changing permissions of /export/home/ora10/oraInventory to 770.
Changing groupname of /export/home/ora10/oraInventory to oinstall.
The execution of the script is complete
[root@node1:/]# /export/home/crs_1/root.sh
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
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: node1 node1-priv node1
node 2: node2 node2-priv node2
Creating OCR keys for user ‘root‘, privgrp ‘root‘..
Operation successful.
Now formatting voting device: /oracle/vote
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        node1
CSS is inactive on these nodes.
        node2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.

[root@node2:/]# /export/home/crs_1/root.sh 
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
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: node1 node1-priv node1
node 2: node2 node2-priv node2
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 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
        node1
        node2
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
Creating VIP application resource on (2) nodes...
Creating GSD application resource on (2) nodes...
Creating ONS application resource on (2) nodes...
Starting VIP application resource on (2) nodes...
Starting GSD application resource on (2) nodes...
Starting ONS application resource on (2) nodes...
Done.

@脚本运行成功 !

技术分享


技术分享


查看CRS服务和资源信息:

[root@node2:/]# vi /etc/profile
export PATH=$PATH:/export/home/crs_1/bin

[root@node1:/]# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

[root@node1:/]# crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.node1.gsd  application    ONLINE    ONLINE    node1       
ora.node1.ons  application    ONLINE    ONLINE    node1       
ora.node1.vip  application    ONLINE    ONLINE    node1       
ora.node2.gsd  application    ONLINE    ONLINE    node2       
ora.node2.ons  application    ONLINE    ONLINE    node2       
ora.node2.vip  application    ONLINE    ONLINE    node2

[root@node2:/]# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

[root@node2:/]# crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.node1.gsd  application    ONLINE    ONLINE    node1       
ora.node1.ons  application    ONLINE    ONLINE    node1       
ora.node1.vip  application    ONLINE    ONLINE    node1       
ora.node2.gsd  application    ONLINE    ONLINE    node2       
ora.node2.ons  application    ONLINE    ONLINE    node2       
ora.node2.vip  application    ONLINE    ONLINE    node2



@至此,CRS安装成功!



本文出自 “天涯客的blog” 博客,请务必保留此出处http://tiany.blog.51cto.com/513694/1606947

Solaris 10(x86)构建Oracle 10g RAC之--安装CRS

标签:oracle

原文地址:http://tiany.blog.51cto.com/513694/1606947

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!