Oracle10g RAC安装部署

导读:Oracle10gR2RAC数据库安装实施报告,Oracle10gR2RAC数据库安装实施报告4.1.1必然遇到的Bug的处理方式这两个脚本需要在两个节点分别跑成功。运行方式是先在两个节点分别执行第一个脚本,然后稍微间隔一段时间后执行第二个脚本。以下是脚本执行的过程:节点一执行第一个脚本过程:[root@node1product]#/app/oracle/oraInventory/orains

Oracle10g RAC安装部署

Oracle10gR2 RAC 数据库安装实施报告

4.1.1 必然遇到的Bug的处理方式

这两个脚本需要在两个节点分别跑成功。运行方式是先在两个节点分别执行第一个脚本,然后稍微间隔一段时间后执行第二个脚本。以下是脚本执行的过程:

节点一执行第一个脚本过程:

[root@node1 product]# /app/oracle/oraInventory/orainstRoot.sh Changing permissions of /app/oracle/oraInventory to 770. Changing groupname of /app/oracle/oraInventory to dba. The execution of the script is complete

节点二执行第一个脚本过程:

[root@node2 10.2.0]# /app/oracle/oraInventory/orainstRoot.sh Changing permissions of /app/oracle/oraInventory to 770. Changing groupname of /app/oracle/oraInventory to dba. The execution of the script is complete

21 / 66

节点一执行第二个脚本过程:

[root@node1 product]# /app/oracle/product/10.2.0/crs/root.sh WARNING: directory '/app/oracle/product/10.2.0' is not owned by root WARNING: directory '/app/oracle/product' is not owned by root WARNING: directory '/app/oracle' 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.

Setting the permissions on OCR backup directory Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/app/oracle/product/10.2.0' is not owned by root WARNING: directory '/app/oracle/product' is not owned by root WARNING: directory '/app/oracle' is not owned by root WARNING: directory '/app' is not owned by root 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: /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 90 seconds. Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

22 / 66

Oracle10gR2 RAC 数据库安装实施报告

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. 节点二执行过程:

在执行脚本前需要先修改两个配置文件。首先修改vipca,执行如下操作: vi /app/oracle/product/10.2.0/crs/bin/vipca

#Remove this workaround when the bug 3937317 is fixed arch=`uname -m`

if [ \ then

LD_ASSUME_KERNEL=2.4.19 export LD_ASSUME_KERNEL fi

unset LD_ASSUME_KERNEL 此处为自己添加的代码 #End workaround 其次修改srvctl,执行如下操作: vi /app/oracle/product/10.2.0/crs/bin/srvctl

#Remove this workaround when the bug 3937317 is fixed LD_ASSUME_KERNEL=2.4.19 export LD_ASSUME_KERNEL

unset LD_ASSUME_KERNEL 此处为手动添加 然后在节点2上执行第二个脚本

[root@node2 bin]# /app/oracle/product/10.2.0/crs/root.sh

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

23 / 66

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 '/app/oracle/product/10.2.0' is not owned by root WARNING: directory '/app/oracle/product' is not owned by root WARNING: directory '/app/oracle' is not owned by root WARNING: directory '/app' is not owned by root 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 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.

24 / 66

Oracle10gR2 RAC 数据库安装实施报告

Waiting for the Oracle CRSD and EVMD to start Oracle CRS stack installed and running under init(1M) Running vipca(silent) for configuring nodeapps Error 0(Native: listNetInterfaces:[3]) [Error 0(Native: listNetInterfaces:[3])]

根据运行结果我们看到了错误信息,此时需要手动配置vipca以完成脚本的执行。具体操作如下:

首先进入到/oracle/product/10.2.0/crs/bin目录下,然后执行如下命令: [root@node2 bin]# ./oifcfg iflist usb0 169.254.95.0 eth0 10.0.2.0 eth1 192.168.2.0

[root@node2 bin]# ./oifcfg setif -global eth0/10.0.2.0:public

[root@node2 bin]# ./oifcfg setif -global eth1/192.168.2.0:cluster_interconnect [root@node2 bin]# ./oifcfg getif eth0 10.0.2.0 global public

eth1 192.168.2.0 global cluster_interconnect

做完如上操作后,运行vipca命令,开始手动配置vipca过程:

25 / 66

五星文库wxphp.com包含总结汇报、外语学习、党团工作、人文社科、专业文献、IT计算机、工作范文、资格考试以及Oracle10g RAC安装部署等内容。

本文共10页12345678>>10