简单记录一下Solaris 10上Oracle 11.2 RAC环境的安装过程。
这一篇继续描述另一个CLUSTER的问题。
安装Oracle11.2 RAC for Solaris10 sparc64(一):http://yangtingkun.itpub.net/post/468/515361
安装Oracle11.2 RAC for Solaris10 sparc64(二):http://yangtingkun.itpub.net/post/468/515415
安装Oracle11.2 RAC for Solaris10 sparc64(三):http://yangtingkun.itpub.net/post/468/515473
安装Oracle11.2 RAC for Solaris10 sparc64(四):http://yangtingkun.itpub.net/post/468/515528
第二个问题,在配置GNS的时候,没有补全域名,导致在运行root.sh时报错。
Oracle的CLUSTER安装过程没有碰到什么问题,但是运行root.sh时报错。
节点1运行root.sh脚本:
# /data/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /data/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-12-13 10:24:23: Parsing the host name
2010-12-13 10:24:23: Checking for super user privileges
2010-12-13 10:24:23: User has super user privileges
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
Improper Oracle Clusterware configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Clusterware
run '/data/grid/crs/install/rootcrs.pl -deconfig'
to configure existing failed configuration and then rerun root.sh
# rm -rf /var/opt/oracle/*
# /data/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /data/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-12-13 10:25:36: Parsing the host name
2010-12-13 10:25:36: Checking for super user privileges
2010-12-13 10:25:36: User has super user privileges
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: 尝试启动 'ora.gipcd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.mdnsd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.gipcd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.mdnsd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.gpnpd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.gpnpd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.cssd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.diskmon' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.diskmon' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.cssd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.ctssd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.ctssd' (在 'racnode1' 上)
已成功创建并启动 ASM。
已成功创建磁盘组 DATA。
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: 尝试启动 'ora.crsd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.crsd' (在 'racnode1' 上)
CRS-4256: Updating the profile
Successful addition of voting disk 3ccf50c6ad5c4f01bfa28700e167c977.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 3ccf50c6ad5c4f01bfa28700e167c977 (/dev/rdsk/c0t500601603022E66Ad0s6) [DATA]
Located 1 voting disk(s).
CRS-2673: 尝试停止 'ora.crsd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.crsd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.asm' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.asm' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.ctssd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.ctssd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.cssd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.cssd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.gpnpd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.gpnpd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.gipcd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.gipcd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.mdnsd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.mdnsd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.mdnsd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.mdnsd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.gipcd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.gipcd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.gpnpd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.gpnpd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.cssd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.diskmon' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.diskmon' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.cssd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.ctssd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.ctssd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.asm' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.asm' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.crsd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.crsd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.evmd' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.evmd' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.asm' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.asm' (在 'racnode1' 上)
CRS-2672: 尝试启动 'ora.DATA.dg' (在 'racnode1' 上)
CRS-2676: 成功启动 'ora.DATA.dg' (在 'racnode1' 上)
未能添加 GNS。
CLSGN-00154: Invalid subdomain: "racnode."
add gns -i 172.25.198.200 -d racnode. ... failed
Configure Oracle Grid Infrastructure for a Cluster ... failed
节点2上运行root.sh:
# /data/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /data/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2010-12-13 10:04:17: Parsing the host name
2010-12-13 10:04:17: Checking for super user privileges
2010-12-13 10:04:17: User has super user privileges
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-4402: CSS 守护程序已在独占模式下启动, 但在节点 racnode1 (编号为 1) 上发现活动 CSS 守护程序, 因此正在终止
CRS-2673: 尝试停止 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.gpnpd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.gpnpd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.gipcd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.gipcd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.mdnsd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.mdnsd' (在 'racnode2' 上)
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: 尝试启动 'ora.mdnsd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.mdnsd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.gipcd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.gipcd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.gpnpd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.gpnpd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.cssd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.diskmon' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.diskmon' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.cssd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.ctssd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.ctssd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.asm' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.asm' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.crsd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.crsd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.evmd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.evmd' (在 'racnode2' 上)
racnode2 2010/12/13 10:49:39 /data/grid/cdata/racnode2/backup_20101213_104939.olr
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
正在启动 Oracle Universal Installer...
检查交换空间: 必须大于 500 MB。 实际为 4836 MB 通过
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /export/home/oracle/oraInventory
这个的解决方法就是删除当前的所有配置,在两个节点上分别运行rootcrs.pl –deconfig命令。
节点1运行:
# /data/grid/crs/install/rootcrs.pl -deconfig -force -lastnode
2010-12-13 12:55:53: Parsing the host name
2010-12-13 12:55:53: Checking for super user privileges
2010-12-13 12:55:53: User has super user privileges
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
CRS resources for listeners are still configured
PRCS-1026 : 找不到单客户机访问名监听程序资源 TYPE=ora.scan_listener.type
PRCS-1026 : 找不到单客户机访问名监听程序资源 TYPE=ora.scan_listener.type
PRCS-1025 : 找不到单客户机访问名虚拟 Internet 协议 (VIP) 资源 TYPE=ora.scan_vip.type
PRCS-1025 : 找不到单客户机访问名虚拟 Internet 协议 (VIP) 资源 TYPE=ora.scan_vip.type
VIP 已存在。:racnode2
VIP 已存在。: /172.25.0.6/172.25.0.6/255.255.0.0/ce0
GSD 已存在。
ONS 守护程序已存在。本地端口 6100, 远程端口 6200
eONS 守护程序已存在。多点传送端口 19092, 多点传送 IP 地址 234.35.26.146, 监听端口 2016
PRKO-2426 : ONS 已在节点上停止: racnode1
PRKO-2427 : eONS 已在节点上停止: racnode1
PRKO-2439 : VIP 不存在。
PRKO-2440 : 网络资源已停止。
CRS-2673: 尝试停止 'ora.crsd' (在 'racnode1' 上)
CRS-2790: 正在启动关闭 'racnode1' 上集群就绪服务管理的资源的操作
CRS-2673: 尝试停止 'ora.asm' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.asm' (在 'racnode1' 上)
CRS-2792: 关闭 'racnode1' 上集群就绪服务管理的资源的操作已完成
CRS-2677: 成功停止 'ora.crsd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.ctssd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.evmd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.asm' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.cssdmonitor' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.evmd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.ctssd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.asm' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.cssd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.cssd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.diskmon' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.diskmon' (在 'racnode1' 上)
CRS-4402: CSS 守护程序已在独占模式下启动, 但在节点 racnode2 (编号为 2) 上发现活动 CSS 守护程序, 因此正在终止
Unable to communicate with the Cluster Synchronization Services daemon.
CRS-4000: Command Delete failed, or completed with errors.
Command return code of 1 (256) from command: /data/grid/bin/crsctl delete css votedisk +DATA
crsctl delete for vds in DATA ... failed
CRS-2791: 正在启动用于关闭 'racnode1' 上 Oracle High Availability Services 管理的资源的操作
CRS-2673: 尝试停止 'ora.gpnpd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.mdnsd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.gpnpd' (在 'racnode1' 上)
CRS-2673: 尝试停止 'ora.gipcd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.mdnsd' (在 'racnode1' 上)
CRS-2677: 成功停止 'ora.gipcd' (在 'racnode1' 上)
CRS-2793: 关闭 'racnode1' 上 Oracle High Availability Services 管理的资源的操作已完成
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
节点2运行:
# /data/grid/crs/install/rootcrs.pl -deconfig -force -lastnode
2010-12-13 12:58:50: Parsing the host name
2010-12-13 12:58:50: Checking for super user privileges
2010-12-13 12:58:50: User has super user privileges
Using configuration parameter file: /data/grid/crs/install/crsconfig_params
PRCS-1026 : 找不到单客户机访问名监听程序资源 TYPE=ora.scan_listener.type
PRCS-1026 : 找不到单客户机访问名监听程序资源 TYPE=ora.scan_listener.type
PRCS-1025 : 找不到单客户机访问名虚拟 Internet 协议 (VIP) 资源 TYPE=ora.scan_vip.type
PRCS-1025 : 找不到单客户机访问名虚拟 Internet 协议 (VIP) 资源 TYPE=ora.scan_vip.type
PRKO-2439 : VIP 不存在。
PRKO-2312 : GSD 不存在。
PRKO-2331 : ONS 守护程序不存在。
PRKO-2339 : eONS 守护程序不存在。
CRS-2673: 尝试停止 'ora.crsd' (在 'racnode2' 上)
CRS-2790: 正在启动关闭 'racnode2' 上集群就绪服务管理的资源的操作
CRS-2673: 尝试停止 'ora.asm' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.asm' (在 'racnode2' 上)
CRS-2792: 关闭 'racnode2' 上集群就绪服务管理的资源的操作已完成
CRS-2677: 成功停止 'ora.crsd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.ctssd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.evmd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.asm' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.evmd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.asm' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.ctssd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.cssd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.cssd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.diskmon' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.diskmon' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.cssd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.diskmon' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.diskmon' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.cssd' (在 'racnode2' 上)
CRS-4611: Successful deletion of voting disk +DATA.
CRS-2672: 尝试启动 'ora.ctssd' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.ctssd' (在 'racnode2' 上)
CRS-2672: 尝试启动 'ora.asm' (在 'racnode2' 上)
CRS-2676: 成功启动 'ora.asm' (在 'racnode2' 上)
ASM 取消配置跟踪文件位置: /data/oracle/cfgtoollogs/asmca/asmcadc_clean8712992296465008898.log
ASM 清除配置开始
ASM 清除配置结束
已成功删除 SID 为 +ASM1 的 ASM。有关详细信息, 请查看 /data/oracle/cfgtoollogs/asmca/asmcadc_clean8712992296465008898.log。
CRS-2791: 正在启动用于关闭 'racnode2' 上 Oracle High Availability Services 管理的资源的操作
CRS-2673: 尝试停止 'ora.mdnsd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.gpnpd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.ctssd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.asm' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.cssdmonitor' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.mdnsd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.gpnpd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.asm' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.ctssd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.cssd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.cssd' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.diskmon' (在 'racnode2' 上)
CRS-2673: 尝试停止 'ora.gipcd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.gipcd' (在 'racnode2' 上)
CRS-2677: 成功停止 'ora.diskmon' (在 'racnode2' 上)
CRS-2793: 关闭 'racnode2' 上 Oracle High Availability Services 管理的资源的操作已完成
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
然后重新开始安装CLUSTER,并在GNS域处补全名称,问题解决。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-691053/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/4227/viewspace-691053/