oracle 安装两个数据库,Oracle系列:安装Oracle RAC数据库(二)

14:安装Oracle Clusterware

(1)解压软件包

这里假定数据库所有软件放在了/rac目录下,首先需要解压Oracle的两个软件包,操作如下:

[root@node-rac1 rac]#ls

linux_11gR1_database_1013.zip linux_x86_11gR1_clusterware.zip

[root@node-rac1 rac]#unzip linux_x86_11gR1_clusterware.zip

[root@node-rac1 rac]#unzip linux_11gR1_database_1013.zip

(2)安装补丁包

解压完成,安装补丁包

[root@node-rac1 rac]#/rac/clusterware/rpm

[root@node-rac1 rac]#rpm -Uvh cvuqdisk-1.0.1-1.rpm

在节点node-rac1安装完成后,继续在node-rac2进行补丁安装。

(3)验证安装环境

在开始安装之前,可以使用oracle自动的一个检测脚本验证系统环境是否可以进行安装,以oracle身份登录系统,执行如下命令:

[oracle@node-rac1 ~]$/rac/clusterware/runcluvfy.sh stage -pre crsinst -n node-rac1,node-rac2 -verbose

(4)开始安装

以oracle用户登录Linux图形界面,然后执行安装脚本:

[oracle@node-rac1 ~]$ cd /rac/clusterware/

[oracle@node-rac1 clusterware]$ ./runInstaller

接着就会弹出图形安装向导界面,安装过程非常简单,这里仅仅给出安装图解,所有操作内容以截图为准,不做描述。

3ededb84b7ec460eb80639f162fcce3d.png

ec1d5ec5152087cd2f368461db05b2f0.png

e5488886b2acdba0c83dfd5726fe2ccd.png

335c86f171600fdec9b9980ec19764fe.png

a36dd69c59e7fc1c9129ea66caddda6e.png

03a68ac29a24a9023090a6b6bcca9179.png

1c13ab9404dad32357025455efe1d283.png

1ce705f342b573f86d2cd21b1f5757a5.png

58e4d9bacaedbd529e919d6d14fd8c4a.png

17010173c66a7939da59b0f1cc0da0f8.png

0de974c005c32fdfb7beea4ddbd5f565.png

根据安装向导提示,以root用户身份在所有节点上分别执行上述两个脚本,要一个节点一个节点地执行,在node-rac1执行root.sh时的信息如下:

[root@node-rac1 crs]# ./root.sh

WARNING: directory '/app/oracrs/product/11.0.6' is not owned by root

WARNING: directory '/app/oracrs/product' is not owned by root

/etc/oracle does not exist. Creating it now.

……

node 1: node-rac1 node-priv1 node-rac1

node 2: node-rac2 node-priv2 node-rac2

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

Operation successful.

Now formatting voting device: /dev/raw/raw3

Now formatting voting device: /dev/raw/raw4

Now formatting voting device: /dev/raw/raw5

Format of 3 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.

Cluster Synchronization Services is active on these nodes.

node-rac1

Cluster Synchronization Services is inactive on these nodes.

node-rac2

Local node checking complete. Run root.sh on remaining nodes to start CRS daemons.

继续在node-rac2执行root.sh脚本,输出如下:

[root@node-rac2 crs]# ./root.sh

WARNING: directory '/app/oracrs/product/11.0.6' is not owned by root

WARNING: directory '/app/oracrs/product' is not owned by root

WARNING: directory '/app/oracrs' is not owned by root

WARNING: directory '/app' is not owned by root

Checking to see if Oracle CRS stack is already configured

/etc/oracle does not exist. Creating it now.

………..

node 1: node-rac1 node-priv1 node-rac1

node 2: node-rac2 node-priv2 node-rac2

clscfg: Arguments check out successfully.

Cluster Synchronization Services is active on these nodes.

node-rac1

node-rac2

Cluster Synchronization Services is active on all the nodes.

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.

最后,给出安装完成验证信息,显示如下:

5e5f5e36a2a1da2768940f0359b098e2.png

未完待续!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值