was连接oracle rac集群,Cluster和Oracle软件安装

本文详细记录了Oracle 10.2.0.1集群ware和数据库软件的安装过程,包括预检查、安装clusterware、配置VIP、安装数据库软件等步骤。在安装过程中,遇到的时间戳问题被忽略并继续进行安装。最终成功完成了CRS和database软件的安装,并通过`crs_stat-t`命令验证了组件状态。
摘要由CSDN通过智能技术生成

本篇分四部分:

1、cluster安装前检查;

2、安装cluster;

3、配置VIP;

4、安装Oracle软件;

--------------------------------------------------------------------------------------------------------------

获取安装介质

oracle用户:/home/oracle

数据库软件:

gunzip 10201_database_linux_x86_64.cpio.gz

cpio -idmv<10201_database_linux_x86_64.cpio

集群件:

gunzip 10201_clusterware_linux_x86_64.cpio.gz

cpio -idmv<10201_clusterware_linux_x86_64.cpio

10.2.0.4补丁包:

p6810189_10204_Linux-x86-64.zip

unzip p6810189_10204_Linux-x86-64.zip

1、安装前预检查:

[oracle@dbcc1~]$ /home/oracle/clusterware/cluvfy/runcluvfy.shstage-pre crsinst -n dbcc1,dbcc2-verbose

Performing pre-checksforcluster services setup

Checking node reachability...

Check: Nodereachabilityfrom node "dbcc1"

Destination Node Reachable?

------------------------------------ ------------------------

dbcc1 yes

dbcc2 yes

Result: Nodereachabilitycheck passed from node "dbcc1".

Checking userequivalence...

Check:Userequivalence foruser "oracle"

Node Name Comment

------------------------------------ ------------------------

dbcc2 passed

dbcc1 passed

Result:Userequivalence check passedfor user "oracle".

Checking administrative privileges...

Check:Existenceof user "oracle"

Node Name User Exists Comment

------------ ------------------------ ------------------------

dbcc2 yes passed

dbcc1 yes passed

Result:Userexistence check passedfor "oracle".

Check:Existenceof group "oinstall"

Node Name Status Group ID

------------ ------------------------ ------------------------

dbcc2 exists 500

dbcc1 exists 500

Result:Groupexistence check passedfor "oinstall".

Check:Membershipof user "oracle" in group"oinstall" [asPrimary]

Node Name User Exists Group Exists Userin Group Primary Comment

---------------- ------------ ------------ ------------ ------------ ------

dbcc2 yes yes yes yes passed

dbcc1 yes yes yes yes passed

Result:Membershipcheck for user "oracle" in group"oinstall" [as Primary] passed.

Administrative privileges checkpassed.

Checking node connectivity...

Interface information for node"dbcc2"

Interface Name IP Address Subnet

------------------------------ ------------------------------ ----------------

eth0 192.168.100.162 192.168.100.0

eth2 192.168.0.162 192.168.0.0

Interface information for node"dbcc1"

Interface Name IP Address Subnet

------------------------------ ------------------------------ ----------------

eth0 192.168.100.161 192.168.100.0

eth2 192.168.0.161 192.168.0.0

Check: Nodeconnectivityof subnet "192.168.100.0"

Source Destination Connected?

------------------------------ ------------------------------ ----------------

dbcc2:eth0 dbcc1:eth0 yes

Result: Nodeconnectivitycheck passed for subnet "192.168.100.0"with node(s)dbcc2,dbcc1.

Check: Nodeconnectivityof subnet "192.168.0.0"

Source Destination Connected?

------------------------------ ------------------------------ ----------------

dbcc2:eth2 dbcc1:eth2 yes

Result: Nodeconnectivitycheck passed for subnet "192.168.0.0"with node(s)dbcc2,dbcc1.

Suitable interfaces for the private interconnecton subnet "192.168.100.0":

dbcc2 eth0:192.168.100.162

dbcc1 eth0:192.168.100.161

Suitable interfaces for the privateinterconnecton subnet "192.168.0.0":

dbcc2 eth2:192.168.0.162

dbcc1 eth2:192.168.0.161

ERROR:

Could not find a suitable set ofinterfaces for VIPs.

Result: Node connectivity checkfailed.

Checking system requirements for'crs'...

No checks registered for thisproduct.

Pre-check for cluster services setupwas unsuccessful on all the nodes.

实际上VIP是配置了的,这是oracle的问题,忽略;

2、oracle用户下启动界面安装:

选择inventory 目录:

feb95e8f4f677334bf115690614d7635.png

配置CRS变量环境变量:

90e9451560458fa2b26e82c67b574210.png

选择两个节点,节点2要手工Add

b8226973ea88d37b68590f716fbb3029.png

配置PublicIP和PrivateIP

1537e3b4b424737344b003c14442d39c.png

配置OCR磁盘,之前已经建立好了对应的裸设备,这里直接输入即可

4d566ffff56e4778febcf7a1433efcf2.png

选择VOT磁盘:

c9208e3470f2cdf4db23fb7b3d7b3094.png

8e2bcc171d288c170829d9bad26f0d97.png

2415b81a90c2f4c44bb32bdd37a8f124.png

这里出现一个错误提示,从提示来看,似乎是时间的问题。

检查我的两个节点的时间,是一致的。这是后来安装后,再次检查的时间:

[root@dbcc1 ~]# date

Fri Feb 21 17:21:38 CST 2014

[root@dbcc2 ~]# date

Fri Feb 21 17:21:38 CST 2014

网上查阅资料,在这里先忽略,‘Yes’,继续(改天再具体研究一下)

992155f322fa25ed6eba40d47c39c603.png

到了执行root脚本的时候

04ba2642faa4de561c482b686d17e62e.png

节点1:

[root@dbcc1oracle]#/oracle/oraInventory/orainstRoot.sh

Changing permissions of /oracle/oraInventoryto770.

Changing groupname of /oracle/oraInventoryto oinstall.

The executionof the script is complete

[root@dbcc1oracle]#/oracle/product/10.2.0/crs_1/root.sh

WARNING:directory '/oracle/product/10.2.0'is not owned by root

WARNING:directory '/oracle/product'is not owned by root

WARNING:directory '/oracle'is notowned by root

Checking to seeifOracle CRS stack is already configured

/etc/oracle doesnot exist. Creating it now.

Setting thepermissionson OCR backup directory

Setting up NS directories

Oracle ClusterRegistry configuration upgraded successfully

WARNING:directory '/oracle/product/10.2.0'is not owned by root

WARNING:directory '/oracle/product'is not owned by root

WARNING:directory '/oracle'is notowned by root

Successfully accumulated necessaryOCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node :

node 1: dbcc1 dbcc1-pip dbcc1

node 2: dbcc2 dbcc2-pip dbcc2

Creating OCR keys for user 'root', privgrp'root'..

Operation successful.

Now formatting voting device:/dev/raw/raw5

Now formatting voting device:/dev/raw/raw6

Now formatting voting device:/dev/raw/raw7

Format of3voting devices complete.

Startup will be queued to init within90seconds.

Adding daemons toinittab

Expecting the CRSdaemonsto be up within 600 seconds.

CSS isactive on these nodes.

dbcc1

CSS isinactiveon these nodes.

dbcc2

Local node checking complete.

Run root.sh onremaining nodes to start CRS daemons.

[root@dbcc1oracle]#/oracle/product/10.2.0/crs_1/bin/crs_stat-t

CRS-0184:Cannot communicatewith the CRS daemon.

需要在第二节点执行完成后 才可以启动CRS进程:

节点2:

[root@dbcc2oracle]#/oracle/product/10.2.0/crs_1/root.sh

WARNING:directory '/oracle/product/10.2.0'is not owned by root

WARNING:directory '/oracle/product'is not owned by root

WARNING:directory '/oracle'is notowned by root

Checking to seeifOracle CRS stack is already configured

SettingthepermissionsonOCRbackupdirectory

Setting up NS directories

Oracle ClusterRegistry configuration upgraded successfully

WARNING:directory '/oracle/product/10.2.0'is not owned by root

WARNING:directory '/oracle/product'is not owned by root

WARNING:directory '/oracle'is notowned by root

clscfg:EXISTING configurationversion 3 detected.

clscfg:version 3 is 10GRelease 2.

Successfully accumulated necessaryOCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node :

node 1: dbcc1 dbcc1-pip dbcc1

node 2: dbcc2 dbcc2-pip dbcc2

clscfg:Argumentscheck out successfully.

NO KEYS WERE WRITTEN. Supply-force parameter to override.

-forceisdestructive and will destroyany previous cluster

configuration.

Oracle ClusterRegistryfor cluster has already beeninitialized

Startup will be queued to init within90seconds.

Adding daemons toinittab

Expecting the CRSdaemonsto be up within 600 seconds.

CSS isactive on these nodes.

dbcc1

dbcc2

CSS isactiveon all nodes.

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Waiting fortheOracle CRSD and EVMDto start

Oracle CRS stack installed andrunning under init(1M)

Running vipca(silent)forconfiguring nodeapps

The given interface(s),"eth0" is not public. Public interfaces should be used to configurevirtual IPs.

注意:

The given interface(s),"eth0" is not public. Public interfaces should be used to configurevirtual IPs.

需要手工配置VIP

这里,实际上在第二节点执行时遇到了另外一个问题,改天再总结一下;这里先展示这个相对比较成功的信息

3、配置VIP

节点1,root用户 启动VIPCA界面

/oracle/product/10.2.0/crs_1/bin/vipca

3cfff93290f23effa4da563bc1e46ca5.png

9142394da8416608f49775ecb538f090.png

这里手工输入节点1的vip的ip地址后,其他的oracle就自动补全了

782fe3f3e619760864e70292c655cd8d.png

f17da4a9a68c6882e8b469e656972be8.png

cf04e044e513fecd82444298abea7f9e.png

702ce7543c9f6cb85e63daa9a2b71e2a.png

VIP配置完成;

最后记得之前cluster等待执行root脚本的界面继续

85ac84ee15f168aae62d0fcb3dd06fae.png

完成cluster的安装:

f9c4d670c6ef9f1a0a8b4b187715b074.png

现在可以查看组件状态了:

[root@dbcc1bin]# pwd

/oracle/product/10.2.0/crs_1/bin

[root@dbcc1bin]# ./crs_stat-t

Name Type Target State Host

------------------------------------------------------------------------------

ora.dbcc1.gsd application ONLINE ONLINE dbcc1

ora.dbcc1.ons application ONLINE ONLINE dbcc1

ora.dbcc1.vip application ONLINE ONLINE dbcc1

ora.dbcc2.gsd application ONLINE ONLINE dbcc2

ora.dbcc2.ons application ONLINE ONLINE dbcc2

ora.dbcc2.vip application ONLINE ONLINE dbcc2

4、安装oracle软件

下面安装Oracle10.2.0.1软件,不建库:

eb7aef9283b0b3fc091175f8b7d56d37.png

这里配置安装目录,看上去是直接从oracle环境变量里获取到了信息:

197ec9d9649af6a3ead7299999e2bbde.png

选择两个节点

38963d54f607f4c58a2a7a7092449813.png

b80af5e84042bac1dca3583bce92dd47.png

注意:这里选择不创建数据库,仅安装数据库软件:

b691a443613e075254f9a7e6cd189274.png

e2a3f1c8b862784ec506ed80825a6919.png

1cde8a5a3211962cbcd85db6481668fd.png

又遇到这个时间戳的问题,继续忽略:‘Yes’

ef7c44af3500f55bd14a7817725c5e68.png

又到执行root脚本的时候,这里是database部分的脚本,基本上不会出什么问题;

8913d5c8221b79d52e73428913b0beda.png

节点1:

[root@dbcc1~]#/oracle/product/10.2.0/db_1/root.sh

Running Oracle10 root.sh script...

Thefollowingenvironment variables aresetas:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/product/10.2.0/db_1

Enter thefullpathname of the local bindirectory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratabfile...

Entries will be added to the /etc/oratabfileas needed by

Database Configuration Assistantwhen a database iscreated

Finished running generic part ofroot.sh script.

Now product-specificroot actions will be performed.

节点2:

[root@dbcc2~]#/oracle/product/10.2.0/db_1/root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/product/10.2.0/db_1

Enter thefullpathname of the local bindirectory: [/usr/local/bin]:

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratabfile...

Entries will be added to the /etc/oratabfileas needed by

Database Configuration Assistantwhen a database is created

Finished running generic partofroot.sh script.

Now product-specificroot actions will be performed.

执行后,回到等待root脚本执行的界面,OK,完成安装

af40e8e85732682449084ddc0fd179e4.png

cluster和database软件安装完成;0b1331709591d260c1c78e86d0c51c18.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值