Solaris 10(x86)构建Oracle 10g RAC之--安装CRS
admin
2023-05-11 07:21:52
0

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 系统架构

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


二、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

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


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


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


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

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


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


添加node2信息

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


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


修改网络属性

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


指定OCR磁盘位置

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


指定VOTE磁盘位置

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


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


运行脚本:(所有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   
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   
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.

@脚本运行成功 !

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


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


查看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安装成功!



相关内容

热门资讯

以军士兵集体丢掉武器抗命,大喊... 据凤凰卫视报道,以色列国防军一军事基地7月30日发生士兵抗命事件,约120名士兵抗议指挥官做法,将武...
蒋成华任商务部副部长 国务院任免国家工作人员。任命蒋成华为商务部副部长。免去蒋成华的商务部国际贸易谈判副代表职务。
伊朗驻华大使:在军事威胁下,不... 新华社北京7月31日电(记者刁慧琳) 伊朗驻华大使法兹里7月28日表示,伊美回到谈判桌的前提是美国必...
伊朗革命卫队在霍尔木兹海峡击中... 当地时间31日,伊朗伊斯兰革命卫队发布声明称,革命卫队海军当天在霍尔木兹海峡击中并扣留了两艘违反禁令...
美媒:特朗普,遇到了一个更强硬... 据《纽约时报》7月29日报道,就在特朗普总统看似放弃战事升级计划几天后,美国再次与伊朗交火。上周末,...
女子做气管镜时不幸身亡,丈夫称... 7月29日,西安刘先生反映妻子在当地医院做支气管镜检查时死亡,看监控时发现医生疑有违规操作。刘先生表...
全网“帮卖西瓜”,然后呢? 近日,河南部分地区西瓜滞销的消息在网上热度很高。很多地方也伸出援手:有景区收购千斤西瓜、免费赠予游客...
美媒:乌克兰袭击伊朗船只,险引... 据《纽约时报》7月28日报道,据伊朗和西方官员称,伊朗曾考虑攻击乌克兰的一个港口,以报复乌克兰对一艘...
20年里,他只画美女,用东方风... 迈进KIM在上海的工作室,迎面是一整墙的美女们。她们像是刚从一场时髦的沙龙里退场,或倚或立,眉宇间是...
Google在港推出AI代理G... 观点网讯:7月29日,Google在香港推出AI代理Gemini Spark,该代理可全天候在后台运...