ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 添加节点oracle10g rac(rhel4)_clusterware

添加节点oracle10g rac(rhel4)_clusterware

原创 Linux操作系统 作者:wisdomone1 时间:2010-03-09 18:07:41 0 删除 编辑
添加新节点oracle10g rac(rhel4)_clusterware(一)

1,根据配置好的rac节点,搭建相关环境
   a,os rpm包(参考oracle document)
   b,os 配置文件(limits.conf)
   c,/etc/hosts文件
   d,连通新节点与存储
   e,编辑修改/boot/grub/grub及modprobe.conf文件(可参对我以前的rac文档)
   f,配置raw,asm根据已有rac节点,当然若启用了ocfs,请查阅相关文档
   g,把相关的权限及授权动作写入/etc/rc.d/rc.local(可查阅已存rac节点)
2,在已有rac节点以oracle用户运行addnodes.sh脚本
3,以上脚本运行,可能会提示所选节点capitek3不可访问(这是三节点的ssh通讯配置有问题,重配就可);若cluster未启动,报错如下:
  rac 启动与addnodes.sh错误日志关系
[root@capitek1 logs]# more oraInstall2010-03-08_03-46-16AM.err
Exception java.lang.NullPointerException occurred..
java.lang.NullPointerException
        at oracle.sysman.oii.oiif.oiifw.OiifwClusterChecksWCCE.getNodeStatus(OiifwClusterChecksWCCE.java:412)
        at oracle.sysman.oii.oiif.oiifw.OiifwClusterChecksWCCE.doOperation(OiifwClusterChecksWCCE.java:336)
        at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:171)
        at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:1273)
        at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWrapper.java:289)
        at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:546)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:929)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
[root@capitek1 logs]#
 以上不言自喻,启动cluster就行(表现症状:在选择新增节点的对话框中:vip and private ip名字是空的)



4,继续运行会提示要运行一个runinstaller脚本,先在新增节点运行它,然后继续运行cluster软件安装对话框

5,最后在新增节点运行root.sh提示如下:
[root@capitek3 /]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 770.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script. is complete
[root@capitek3 /]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
OCR LOCATIONS =  /dev/raw/raw4
OCR backup directory '/u01/app/oracle/product/10.2.0/crs_1/cdata/crs' does not exist. Creating now
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname capitek1 for node 1.
assigning default hostname capitek2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: capitek1 capitek1-priv capitek1
node 2: capitek2 capitek2-priv capitek2
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.
        capitek1
        capitek2
        capitek3
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
IP address "capitek1-vip" has already been used. Enter an unused IP address.


可先用crs_stat -t与ifconfig相关clusterware服务是否正常(ps -ef),若正常,可不用运行vipca


6,在已有节点以oracle用户运行/u01/app/oracle/product/10.2.0/crs_1/bin/racgons add_config capitek3:6200
   (新增节点端口号信息可取自于:more product/10.2.0/crs_1/opmn/conf/ons.config )

这就完成了新增节点rac cluster软件的配置




来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-629014/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12690004