简单描述一下,在Oracle 10203 for Solaris sparc的RAC双节点环境中,新增一个节点的过程。共享存储已经在第三个节点上配置完成,这里主要介绍操作系统上和Oracle上的配置。
这一篇描述数据库软件的建立并建立ASM实例。
在图形界面环境下进行ORACLE_HOME/oui/bin,运行addNode.sh,来进行新节点的添加过程:
$ cd $ORACLE_HOME/oui/bin
$ ./addNode.sh
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Oracle Universal Installer, Version 10.2.0.3.0 Production
Copyright (C) 1999, 2006, Oracle. All rights reserved.
选择需要安装的节点,这里是RACNODE3,然后点击继续:
检查汇总界面,Oracle将10.2.0.1版本和10.2.0.3补丁一起安装到新增节点上。
由于执行过程中出现了错误,需要手工执行远端脚本:
bash-3.00$ /data/oracle/product/10.2/database/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/database ORACLE_HOME_NAME=OraDb10g_home1 CLUSTER_NODES=racnode1,racnode2,racnode3 "INVENTORY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode3
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /data/oracle/oraInventory
'AttachHome' was successful.
同样运行updateNodeList的脚本:
bash-3.00$ /data/oracle/product/10.2/database/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/database CLUSTER_NODES=racnode1,racnode2,racnode3 CRS=false "INVENTROY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode3
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /data/oracle/oraInventory
'UpdateNodeList' was successful.
运行完成后,需要在新节点上运行root.sh脚本:
# /data/oracle/product/10.2/database/root.sh
点击确定,完成软件的安装。
检查新建节点后台进程:
bash-3.00$ ps -ef|grep ora
oracle 1587 1584 0 4月01 pts/1 0:00 -sh
oracle 11022 5480 0 14:12:39 pts/2 0:00 ps -ef
oracle 2877 2876 0 4月01 ? 0:04 /data/oracle/product/10.2/crs/opmn/bin/ons -d
oracle 1247 1244 0 3月31 pts/2 0:00 -sh
oracle 1987 1 0 4月01 ? 0:00 sh -c sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3
root 1996 1 0 4月01 ? 2:05 /data/oracle/product/10.2/crs/bin/crsd.bin reboot
root 2234 2180 0 4月01 ? 0:09 /data/oracle/product/10.2/crs/bin/oprocd run -t 1000 -m 500 -f
oracle 2170 1987 0 4月01 ? 0:23 /data/oracle/product/10.2/crs/bin/evmd.bin
oracle 2492 2170 0 4月01 ? 0:02 /data/oracle/product/10.2/crs/bin/evmlogger.bin -o /data/oracle/product/10.2/cr
oracle 2263 2262 0 4月01 ? 0:00 /bin/sh -c ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3/c
oracle 2264 2263 0 4月01 ? 3:44 /data/oracle/product/10.2/crs/bin/ocssd.bin
oracle 2262 2181 0 4月01 ? 0:00 sh -c /bin/sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/rac
oracle 5480 16119 0 11:29:48 pts/2 0:00 bash
oracle 2876 1 0 4月01 ? 0:00 /data/oracle/product/10.2/crs/opmn/bin/ons -d
oracle 16119 1284 0 10:56:59 pts/2 0:00 -sh
oracle 11023 5480 0 14:12:39 pts/2 0:00 grep ora
下面在节点1上启动dbca来添加racnode3上的asm实例。
首先选项Oracle Real Application Clusters database选项,然后选择配置ASM。
在节点选择出选择全部三个节点,然后点击确定。
DBCA给出提示:ASM is present on the cluster but needs to be extended to the following nodes: [racnode3]. Do you want ASM to be extended?
确认后,dbca会在新增节点上启动ASM实例。
随后弹出对话框:
DBCA could not startup the ASM instance configured on this node. To proceed with ASM diskgroup management you need the ASM instance to be up and running. Do you want to recreate the ASM instance on this node?
确认后,dbca给出对话框输入asm实例的SYS用户密码,以及ASM实例的SPFILE和PFILE文件位置。
检查后台进程,ASM实例已经启动:
bash-3.00$ ps -ef|grep ora
oracle 18894 1 0 14:17:50 ? 0:00 asm_mman_+ASM3
oracle 1587 1584 0 4月01 pts/1 0:00 -sh
oracle 21601 5480 0 14:59:24 pts/2 0:00 ps -ef
oracle 2877 2876 0 4月01 ? 0:04 /data/oracle/product/10.2/crs/opmn/bin/ons -d
oracle 1247 1244 0 3月31 pts/2 0:00 -sh
oracle 1987 1 0 4月01 ? 0:00 sh -c sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3
root 1996 1 0 4月01 ? 2:10 /data/oracle/product/10.2/crs/bin/crsd.bin reboot
oracle 18882 1 0 14:17:50 ? 0:02 asm_diag_+ASM3
root 2234 2180 0 4月01 ? 0:09 /data/oracle/product/10.2/crs/bin/oprocd run -t 1000 -m 500 -f
oracle 18937 1 0 14:17:51 ? 0:00 asm_gmon_+ASM3
oracle 2170 1987 0 4月01 ? 0:23 /data/oracle/product/10.2/crs/bin/evmd.bin
oracle 2492 2170 0 4月01 ? 0:02 /data/oracle/product/10.2/crs/bin/evmlogger.bin -o /data/oracle/product/10.2/cr
oracle 2263 2262 0 4月01 ? 0:00 /bin/sh -c ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3/c
oracle 2264 2263 0 4月01 ? 3:51 /data/oracle/product/10.2/crs/bin/ocssd.bin
oracle 18884 1 0 14:17:50 ? 0:00 asm_psp0_+ASM3
oracle 2262 2181 0 4月01 ? 0:00 sh -c /bin/sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/rac
oracle 5480 16119 0 11:29:48 pts/2 0:00 bash
oracle 2876 1 0 4月01 ? 0:00 /data/oracle/product/10.2/crs/opmn/bin/ons -d
oracle 18890 1 0 14:17:50 ? 0:04 asm_lms0_+ASM3
oracle 16119 1284 0 10:56:59 pts/2 0:00 -sh
oracle 18888 1 0 14:17:50 ? 0:04 asm_lmd0_+ASM3
oracle 18886 1 0 14:17:50 ? 0:04 asm_lmon_+ASM3
oracle 18875 1 0 14:17:49 ? 0:01 asm_pmon_+ASM3
oracle 18896 1 0 14:17:50 ? 0:00 asm_dbw0_+ASM3
oracle 18900 1 0 14:17:50 ? 0:00 asm_lgwr_+ASM3
oracle 18902 1 0 14:17:50 ? 0:00 asm_ckpt_+ASM3
oracle 18913 1 0 14:17:51 ? 0:00 asm_smon_+ASM3
oracle 18928 1 0 14:17:51 ? 0:00 asm_rbal_+ASM3
oracle 19072 1 0 14:17:56 ? 0:01 /data/oracle/product/10.2/database/bin/racgimon daemon ora.racnode3.ASM3.asm
oracle 18968 1 0 14:17:52 ? 0:01 asm_lck0_+ASM3
oracle 20168 1 0 14:58:26 ? 0:00 asm_pz98_+ASM3
oracle 21602 5480 0 14:59:24 pts/2 0:00 grep ora
oracle 19315 1 0 14:57:51 ? 0:00 asm_pz99_+ASM3
(以上内容摘于网络,如有侵权,请告之,将第一时间删除)
总机:(010)-88589926,88589826,88587026 QQ讨论群:243729577 182441349 邮箱:cuug_bj@cuug.com
通信地址:北京市海淀区紫竹院路98号北京化工大学科技园609室(CUUG)邮政编码:100089
中国UNIX用户协会 Copyright 2010 ALL Rights Reserved 北京神脑资讯技术有限公司
京ICP备11008061号 京公网安备110108006275号