您的位置:首页 > 数据库 > Oracle

RedHat EL5 安装Oracle 10g RAC之--CRS 安装

2015-03-31 12:00 369 查看
RedHat EL5 安装Oracle 10g RAC之--CRS 安装系统环境:
操作系统:RedHat EL5Cluster: Oracle CRS 10.2.0.1.0Oracle:  Oracle 10.2.0.1.0如图所示:RAC 系统架构

二、CRS 安装   Cluster Ready Service是Oracle 构建RAC,负责集群资源管理的软件,在搭建RAC中必须首先安装.安装需采用图形化方式,以Oracle用户的身份安装(在node1上):注意:修改安装配置文件,增加redhat-5的支持[oracle@node1 install]$ pwd
/home/oracle/cluster/install
[oracle@node1 install]$ ls
addLangs.sh  images   oneclick.properties  oraparamsilent.ini  response
addNode.sh   lsnodes  oraparam.ini         resource            unzip
[oracle@node1 install]$ vi oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2
[oracle@node1 cluster]$./runInstaller

欢迎界面

注意安装CRS的主目录,不能和Oracle软件的目录一致,需单独在另一个目录
[oracle@node1 ~]$ ls -l /u01
total 24
drwxr-xr-x  3 oracle oinstall  4096 May  5 17:04 app
drwxr-xr-x 36 oracle   oinstall  4096 May  7 11:08 crs_1
drwx------  2 oracle oinstall 16384 May  4 15:59 lost+found
[oracle@node1 ~]$



添加节点(如果主机间信任关系配置有问题,这里就无法发现node 2)



修改public 网卡属性(public 网卡用于和Client 通讯)



OCR必须采用RAW设备(Exteneral Redundancy只需一个RAW,安装后可以添加mirror)



VOTE DISK必须采用RAW设备(Exteneral Redundancy只需一个RAW,安装后可以添加多个raw构成冗余)



开始安装(并将安装软件传送到node2)



安装提示分别在两个节点按顺序执行script
node1:
[code=jfx;toolbar:false">[root@node1 ~]# /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 completenode2:[root@node2 ~]# /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 completenode1:

[b]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' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname node1 for node 1.
assigning default hostname node2 for node 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 90 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
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeappsCRS-0210: Could not find resource 'ora.node2.LISTENER_NODE2.lsnr'.
CRS-0210: Could not find resource 'ora.node2.ons'.
CRS-0210: Could not find resource 'ora.node2.vip'.
CRS-0210: Could not find resource 'ora.node2.gsd'.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: