您的位置:首页 > 其它

ubuntu使用指南

2011-02-08 11:30 246 查看
这次在客户现场进行安装,由于实现并没有和硬件的人协调好,导致安装过程中环境出现各种问题,在这一次安装中基本上见到了所有报错,还包括主机频繁重启,以及配置信息丢失等问题,

以下为在安装rac的过程中,执行root.sh脚本报错的三个问题:

问题1现象:
/u01/11.2.0/grid/bin/srvctl start nodeapps -n RAC01 ... failed

FirstNode configuration failed at

/u01/11.2.0/grid/crs/install/crsconfig_lib.pm line 9288.
/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -

I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/rootcrs.pl

execution failed

重新执行失败命令,查看信息
/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -

I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/rootcrs.pl

execution failed

查看具体信

息:/u01/11.2.0/grid/log/RAC01/agent/crsd/oraagent_grid/oraagent_grid.log

日志信息显示监听不能开启:
手动启动监听查看报错信息:
RAC01:/home/grid/$lsnrctl start

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-DEC-2014 18:06:46

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Starting /u01/11.2.0/grid/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Log messages written to

/u01/app/grid/diag/tnslsnr/RAC01/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RAC01)

(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 104: Connection reset by peer

问题原因:hosts 文件中没有配置127.0.0.1 localhost 一行,导致监听启动出现错误
问题解决:
vi /etc/hosts
添加:
127.0.0.1 localhost

重启监听:
su - grid
lsnrctl start

解决监听后执行rootcrs.pl -deconfig -force -verbose
然后重新执行root.sh

问题2报错信息:
PRCS-1016 : Failed to resolve Single Client Access Name RAC-scan
add scan=RAC-scan ... failed
FirstNode configuration failed at

/u01/11.2.0/grid/crs/install/crsconfig_lib.pm line 9196.
/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -

I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/rootcrs.pl

execution failed

重新执行:/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -

I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/rootcrs.pl

显示scanip name不正确,按照hosts文件修改后
执行rootcrs.pl -deconfig -force -verbose
重新执行 root.sh

执行成功:

问题三:
[root@RAC02 grid]# ./root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file:

/u01/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Failed to write the checkpoint:'ROOTCRS_STACK' with status:START.Error

code is 256
Failed to add (property/value):('VERSION/'11.2.0.3.0') for

checkpoint:ROOTCRS_STACK.Error code is 256
Failed to write the checkpoint:'ROOTCRS_PARAM' with status:START.Error

code is 256
Failed to write contents of pfile

:/u01/11.2.0/grid/crs/install/crsconfig_params for

checkpoint:ROOTCRS_PARAM. Error code is 256
Failed to write the checkpoint:'ROOTCRS_PARAM' with status:SUCCESS.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_OSDSETUP' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_OSDSETUP' with

status:SUCCESS.Error code is 256
Failed to write the checkpoint:'ROOTCRS_ONETIME' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_ONETIME' with status:SUCCESS.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_OLR' with status:START.Error code

is 256
Failed to write the checkpoint:'ROOTCRS_OLR' with status:SUCCESS.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_OLR' with status:SUCCESS.Error

code is 256
OLR initialization - successful
Failed to write the checkpoint:'ROOTCRS_GPNPSETUP' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_GPNPSETUP' with

status:SUCCESS.Error code is 256
Failed to write the checkpoint:'ROOTCRS_OHASD' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_OHASD' with status:SUCCESS.Error

code is 256
Adding Clusterware entries to upstart
Failed to write the checkpoint:'ROOTCRS_INITRES' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_INITRES' with status:SUCCESS.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_ACFSINST' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_ACFSINST' with

status:SUCCESS.Error code is 256
Failed to write the checkpoint:'ROOTCRS_BOOTCFG' with status:START.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_BOOTCFG' with status:START.Error

code is 256
^CFailed to write the checkpoint:'ROOTCRS_BOOTCFG' with status:FAIL.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_BOOTCFG' with status:FAIL.Error

code is 256
Failed to write the checkpoint:'ROOTCRS_BOOTCFG' with status:FAIL.Error

code is 256
INT at /u01/11.2.0/grid/crs/install/crsconfig_lib.pm line 1379.
/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -

I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/rootcrs.pl

execution failed

查看日志
[root@RAC02 install]# more root_RAC02_2014-12-12_11-51-36.log
发现主机hosts 文件 配置内容丢失
按照节点一配置hosts文件后,重新执行root.sh 成功

本文出自 “Sunny” 博客,请务必保留此出处http://dbasunny.blog.51cto.com/9192126/1590036
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: