你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle RAW+ASM 的RAC 安装文档

[日期:2011-05-15] 来源:Linux社区  作者:Linux [字体:大 中 小]

二. 安装Oracle 10gR2 clusterware

 

1. 用Xmanager 软件连上虚拟机之后运行clusterware 的安装软件, Xmanager 支持图形界面, 所以能省很多事。 

 

2.确认你的安装目录是/u01/app/oracle/product/crs 

 

3. 增加相关结点信息 

raw1 raw1-priv rar1-vip 

raw2 raw2-priv raw2-vip 

 

4.指定 eth0 的类型时public 

 

5. 指定OCR 和 Voting Disk

一般而言,如果采用存储来存放OCR和Voting Disk. 存储本身就提供了redundancy策略,此时我们可以选择External Redundancy 选项, 此时Oracle 就不在考虑软件冗余了。 如果没有使用存储设备或者存储为RAID0,那么就可以使用Oracle 自己提供的软件冗余机制 Normal Redundancy 选项,此时就会激活Mirror Location 选项. 用来指定镜像文件位置, Oracle 的Clusterware在运行时会维护这个Mirror文件的内容同步。

 

OCR 最多只有一份冗余:

/dev/raw/raw1 

 

Voting Disk 最多可以定义2份冗余:

/dev/raw/raw2

 

6.后就开始安装了,结束时会提示用root在每个节点上运行orainstRoot.Sh 和 root.Sh脚本, 在第二个结点上运行root.Sh 后自动调用vipca 这个命令, 在第二个结点运行root.Sh 之前要修改一下vipca命令, 不然可能会报错。 

 

RAC安装时需要执行4个脚本及意义

http://www.linuxidc.com/Linux/2011-05/36000.htm

 

 

注意: VIPCA 命令也是用ROOT 用户来运行的, 只需要在一个结点运行就可以了。

 

进入$CRS_HOME/bin/目录, 用vi来修改vipca 和 srvctl 2个命令。 

 

问题1: vipca报错,是RedHat的bug

Running vipca(silent) for configuring nodeapps

/home/oracle/crs/oracle/product/10/crs/jdk/jre//bin/java: error while loading 

shared libraries: libpthread.so.0: cannot open shared object file: 

No such file or directory

 

解决方法:

Remember to re-edit these files on all nodes: 

<CRS_HOME>/bin/vipca 

<CRS_HOME>/bin/srvctl 

<RDBMS_HOME>/bin/srvctl 

<ASM_HOME>/bin/srvctl 

 

after applying the 10.2.0.2 or 10.2.0.3 patchsets, as these patchset will still include those settings unnecessary for OEL5 or RHEL5 or SLES10.  This issue was raised with development and is fixed in the 10.2.0.4 patchsets. 

Note that we are explicitly unsetting LD_ASSUME_KERNEL and not merely commenting out its setting to handle a case where the user has it set in their environment (login shell). 

 

$ vi vipca 

... ... 

Linux) LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:$ORACLE_HOME/srvm/lib:$LD_LIBRARY_PATH 

       export LD_LIBRARY_PATH 

        echo $LD_LIBRARY_PATH 

        echo $CLASSPATH 

       #Remove this workaround when the bug 3937317 is fixed 

       arch=`uname -m` 

       if [ "$arch" = "i686" -o "$arch" = "ia64" ] 

       then 

        # LD_ASSUME_KERNEL=2.4.19    

        # export LD_ASSUME_KERNEL  

        echo  

       fi 

       #End workaround 

 

问题2: 如果遇到这个错误:

# vipca
Error 0(Native: listNetInterfaces:[3])
[Error 0(Native: listNetInterfaces:[3])]

解决方法:

在CRS_HOME下 运行 oifcfg 命令:

raw1# ./oifcfg setif -global eth0/10.85.10.119:public
# ./oifcfg setif -global eth1/192.168.1.119:cluster_interconnect
# ./oifcfg getif
eth0 10.85.10.119 global public
eth1 192.168.1.119 global cluster_interconnect

 

在raw2:

/bin # ./oifcfg setif -global eth0/10.85.10.121:public
/bin # ./oifcfg setif -global eth1/192.168.1.121:cluster_interconnect
/bin # ./oifcfg getif
eth0 10.85.10.121 global public
eth1 192.168.1.121 global cluster_interconnect

 

然后在手工运行vipca添加nodeapps resource即可。

 

 

问题3:An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xB7503E29
Function=__libc_free+0x49
Library=/lib/tls/libc.so.6

修改主机名不正确导致的。
RHEL
/etc/sysconfig/network 主机名,如果在/etc/hosts中解析不了。就报这个错误!

 

7. clusterware 就安装好了. 

 

确认一下. 

$ /u01/app/oracle/product/crs/bin/olsnodes -n 

raraw1b 1 

raw2pub 2 

$ ls -l /etc/init.d/init.* 

-r-xr-xr-x 1 root root 1951 Oct 4 14:21 /etc/init.d/init.crs* 

-r-xr-xr-x 1 root root 4714 Oct 4 14:21 /etc/init.d/init.crsd* 

-r-xr-xr-x 1 root root 35394 Oct 4 14:21 /etc/init.d/init.cssd* 

-r-xr-xr-x 1 root root 3190 Oct 4 14:21 /etc/init.d/init.evmd* 

 

检查CRS 安装启动情况:用Root用户执行:

$CRS_HOME/bin/crsctl check crs

CSS appears healthy

CRS appears healthy

EVM appears healthy

表明CRS 安装完成,并且启动成功

 

#./crs_stat -t -v

 

注:如果clusterware 安装失败,再次运行安装程序,里面可以把之前的安装删除掉,删除之后在进行安装。

 

三. 安装Oracle 10gR2 database 

 

1. 检查Oracle 的相关包。Oracle 10g 需要如下包

binutils-2.15.92.0.2-10.EL4 

compat-db-4.1.25-9 

control-center-2.8.0-12 

gcc-3.4.3-9.EL4 

gcc-c++-3.4.3-9.EL4 

glibc-2.3.4-2 

glibc-common-2.3.4-2 

gnome-libs-1.4.1.2.90-44.1 

libstdc++-3.4.3-9.EL4 

libstdc++-devel-3.4.3-9.EL4 

make-3.80-5 

pdksh-5.2.14-30 

sysstat-5.0.5-1 

xscreensaver-4.18-5.rhel4.2 

libaio-0.3.96 

 

To see which versions of these packages are installed on your system, run the following command: 

rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common \
gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio openmotif21

2. 在Xmanager 中用oracle用户,运行database的runInstaller 

3. ORACLE安装目录指定到 /u01/app/oracle/product/10.2.0/db_1 

4. 把2个node选择上 

5. 选择 Install database Software only 

6. 会要求你用完全的root权限运行 root.sh ,分别在2个node上一一运行

7. 安装完毕 

linux
相关资讯       Oracle教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款