查看: 19102|回复: 10

[讨论] 11gr2 rac执行root.sh报错执行不下去

[复制链接]
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
跳转到指定楼层
1#
发表于 2012-7-18 17:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
环境: aix6.1.7.4   HA:6.1   使用并发lv做asm磁盘,ocr及vote存储在asm上。
#/oracle/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/app/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: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Undefined subroutine &crsconfig_lib::dieformat called at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 6135.
/oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/rootcrs.pl execution failed

论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
2#
发表于 2012-7-19 00:10 | 只看该作者

使用道具 举报

回复
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
3#
 楼主| 发表于 2012-7-19 17:50 | 只看该作者
thank  you ,let me see first

使用道具 举报

回复
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
4#
 楼主| 发表于 2012-7-19 18:01 | 只看该作者
本帖最后由 jjwspj 于 2012-7-19 20:46 编辑

贴出来
How to remove HACMP related files from AIX to install Oracle
May time we face issue during installation of oracle 10g/11g that relink get failed during root.sh and/or rootupgrade.sh and it gives error like file below

=====Begin Error Text in 11g==========

[root@CNDAOSIPDBOP01:/crs11g/grid/11.2.0.3]$ ./root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= ora10g
    ORACLE_HOME=  /crs11g/grid/11.2.0.3

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: /crs11g/grid/11.2.0.3/crs/install/crsconfig_params
User ignored Prerequisites during installation
Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Undefined subroutine &crsconfig_lib::dieformat called at /crs11g/grid/11.2.0.3/crs/install/crsconfig_lib.pm line 6146.
/crs11g/grid/11.2.0.3/perl/bin/perl -I/crs11g/grid/11.2.0.3/perl/lib -I/crs11g/grid/11.2.0.3/crs/install /crs11g/grid/11.2.0.3/crs/install/rootcrs.pl execution failed
[root@CNDAOSIPDBOP01:/crs11g/grid/11.2.0.3]$
=====End Error Text in 11g==========

In 10g it gives error like libskgxn* not found while running root.sh or upgrade script of 10g.



For this error if we search Oracle Metalink as per note ID 1382505.1 , it is suggested that do below as solution.


1. When deinstalling vendor clusterware, make sure all associated files are removed. In this case, remove the symlink /usr/sbin/cluster/utilities/cldomain

2. Clean up the failed GI installation via $GRID_HOME/deinstall/deinstall command or clean up manually follow DOCUMENT 1364419.1

3. Reinstall Grid Infrastructure

But if we contact AIX admin he will say that there is no HACMP related files as they have removed them previously. Then we have to follow below steps so that oracle will install with any error.



How to remove HACMP related files from AIX to install Oracle
Before following below steps , we need to confirm that no one is using HACMP on server and HACMP services are stopped on server and it is not required to run HACMP in future.

Step-1) cd /usr/sbin/cluster/utilities
             mv cldomain cldomain_orig
Step-2) Remove "hagsuser" group using smit security command
Step-3) cd /var/ha/soc
            rm -rf *clients*
Step-4) Modify rootpre.sh file by removing HACMP related part from this file and run rootpre.sh again.

Now we can re-install CRS/DB again.

However if someone is installing CRS/DB on test server and do not want to run installation again then below steps can be followed to run root.sh/rootupgrade.sh successfully.

Check if libskgxn* is pointing to non-existent softlink in /opt/ORCLcluster

$ ls -l /oracle/app/11.2.0.3/grid/lib/libskgxn*
lrwxrwxrwx 1 grid oinstall 33 Nov 23 03:08 /oracle/app/11.2.0.3/grid/lib/libskgxn2.so -> /opt/ORCLcluster/lib/libskgxn2.so
-rwxr-xr-x 1 grid oinstall 159806 Oct 20 23:55 /oracle/app/11.2.0.3/grid/lib/libskgxnr.a
lrwxrwxrwx 1 grid oinstall 33 Nov 23 09:38 /oracle/app/11.2.0.3/grid/lib/libskgxnr.so -> /opt/ORCLcluster/lib/libskgxnr.so

Then remove these soft-links and copy libskgxn* from some other server where you have successfully installed same oracle version.


After coping these libskgxn* file run root.sh/rootupgrade.sh again. And it will run without any issue.

使用道具 举报

回复
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
5#
 楼主| 发表于 2012-7-19 23:11 | 只看该作者
本帖最后由 jjwspj 于 2012-7-19 23:24 编辑

按照如下步骤,执行root.sh前进了大部分,但最后失败,感谢Yong Huang兄
Step-1) cd /usr/sbin/cluster/utilities
             mv cldomain cldomain_orig
Step-2) Remove "hagsuser" group using smit security command
Step-3) cd /var/ha/soc
            rm -rf *clients*
Step-4) Modify rootpre.sh file by removing HACMP related part from this file and run rootpre.sh again.

============
[root@sc141b ] /#/oracle/app/11.2.0.3/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /oracle/app/11.2.0.3/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: /oracle/app/11.2.0.3/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
User grid has the required capabilities to run CSSD in realtime mode
OLR initialization - 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 Clusterware entries to inittab
USM driver install actions failed
/oracle/app/11.2.0.3/grid/perl/bin/perl -I/oracle/app/11.2.0.3/grid/perl/lib -I/oracle/app/11.2.0.3/grid/crs/install /oracle/app/11.2.0.3/grid/crs/install/rootcrs.pl execution failed

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
6#
发表于 2012-7-20 07:27 | 只看该作者
A search on MOS for "USM driver install actions failed" (quotes included) returns quite a number of hits.

使用道具 举报

回复
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
7#
 楼主| 发表于 2012-7-23 11:01 | 只看该作者
Yong Huang 发表于 2012-7-20 07:27
A search on MOS for "USM driver install actions failed" (quotes included) returns quite a number of  ...

我没有MOS账户,Yong Huang兄能否帮忙找下,万分感谢!

使用道具 举报

回复
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
8#
 楼主| 发表于 2012-7-27 11:08 | 只看该作者
安装到最后报Oracle Cluster Verification Utility failed.查看日志为scan错误引起
Checking Single Client Access Name (SCAN)...

Checking TCP connectivity to SCAN Listeners...
TCP connectivity to SCAN Listeners exists on all cluster nodes

Checking name resolution setup for "sc-cluster-scan"...

ERROR:
PRVG-1101 : SCAN name "sc-cluster-scan" failed to resolve

ERROR:
PRVF-4657 : Name resolution setup check for "sc-cluster-scan" (IP address: 222.248.3.149) failed

ERROR:
PRVF-4663 : Found configuration issue with the 'hosts' entry in the /etc/nsswitch.conf file

百度下,答案如下:
http://www.dbasky.com/oracle/11gr2-rac_install_2.html

使用道具 举报

回复
论坛徽章:
3
2011新春纪念徽章
日期:2011-02-18 11:43:36ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:07:31
9#
 楼主| 发表于 2012-7-27 11:09 | 只看该作者
贴出来:
[INS-20802] Oracle Cluster Verification Utility failed.
Cause - The plug-in failed in its perform method  Action - Refer to the logs or contact Oracle Support Services.  Log File Location
/u01/app/oraInventory/logs/installActions2010-12-15_04-08-22PM.log
检查日志文件:
INFO: Checking name resolution setup for “racdbscan”…
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name “racdbscan”
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for “racdbscan” (IP address: 110.200.1.205) failed
INFO: ERROR:
INFO: PRVF-4663 : Found configuration issue with the ‘hosts’ entry in the /etc/nsswitch.conf file
INFO: Verification of SCAN VIP and Listener setup failed
出在检查SCAN IP的时候
Google之,原文见:http://www.oracle-base.com/artic ... ngVMwareServer2.php
We expect the verification phase to fail with an error relating to the SCAN, assuming you are not using DNS.
INFO: Checking Single Client Access Name (SCAN)…
INFO: Checking name resolution setup for “rac-scan.localdomain”…
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name “rac-scan.localdomain”
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for “rac-scan.localdomain” (IP address: 192.168.2.201) failed
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name “rac-scan.localdomain”
INFO: Verification of SCAN VIP and Listener setup failed
Provided this is the only error, it is safe to ignore this and continue by clicking the “Next” button.
Click the “Close” button to exit the installer.
还有metalink,文档ID为887471.1,说是可以忽略,那就忽略
Symptoms
After successful 11gR2 Grid Infrastructure clusterware (CRS) installation or upgrade, INS-20802 reported while running Oracle Cluster Verification Utility post check, installation logs located in $ORACLE_BASE/oraInventory/logs/installActions{$TIMESTAMP}.log shows similar entries like following:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name “cluscan.us.oracle.com”
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for “scanclunm” (IP address: 10.4.0.202) failed
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name “cluscan.us.oracle.com”
If you execute “$GRID_HOME/bin/cluvfy comp scan“, it shows similar error.
Cause
Cause 1. SCAN name is resolved by hosts file instead of DNS or GNS, this could happen even you list all SCAN IP(s) in hosts file
Solution List

For cause 1: Oracle strongly recommend to use DNS or GNS for SCAN name resolution as hosts file support only one IP for SCAN name.
If you intended to use hosts file for SCAN name resolution, and ping command returns correct SCAN VIP, you can ignore the error and move forward.
If you intend to use DNS or GNS for SCAN name resolution, please comment out entries in hosts file for SCAN name, and re-run “$GRID_HOME/bin/cluvfy comp scan” to confirm.

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
10#
发表于 2012-7-27 22:11 | 只看该作者
SCAN is actually a simple concept. One DNS host entry maps to 3 IP addresses. Do NOT put these entries in /etc/hosts, although you can put them in there but commented out, which is what we do, just for documentation purpose.

Run `host thescanhostname' (`host' can be `nslookup') three times. The IP's should rotate, e.g.

dctrpcora1b ~ $ tail -2 /etc/hosts
#SCAN IP
#10.111.91.241  sanora                  sanora.example.com
dctrpcora1b ~ $ host sanora.example.com
sanora.example.com has address 10.111.91.241
sanora.example.com has address 10.111.91.242
sanora.example.com has address 10.111.91.243
dctrpcora1b ~ $ host sanora.example.com
sanora.example.com has address 10.111.91.242
sanora.example.com has address 10.111.91.241
sanora.example.com has address 10.111.91.243
dctrpcora1b ~ $ host sanora.example.com
sanora.example.com has address 10.111.91.243
sanora.example.com has address 10.111.91.241
sanora.example.com has address 10.111.91.242

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表