您的位置:首页 > 数据库 > Oracle

Oracle 10203 RAC环境添加新节点(三)

2013-05-23 10:06 288 查看
这一篇描述数据库软件的建立并建立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

oracle视频教程请关注:http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息