查看: 1122|回复: 1

[原创] localconfig后css启动不了,有人碰上过吗?

[复制链接]
论坛徽章:
2
秀才
日期:2015-12-14 14:51:16秀才
日期:2016-01-25 15:02:04
发表于 2015-3-7 18:04 | 显示全部楼层 |阅读模式
[size=11.1999998092651px]oracle 10gR2 rhel安standalone asm,localconfig配置css后css启动不了。
[size=11.1999998092651px]似乎是下面这个文档说的LANG的问题。
按照这个文档试了一下,可以解决,已经正常安了。
只是inittab自动启动不起来,需要手动执行 /etc/init.d/init.cssd run &。有人碰上过吗?

[size=14.3999996185303px]CSS service Is Unable To Start Due To LANG Setting. (文档 ID 880129.1)





[size=11.1999998092651px]
In this Document




APPLIES TO:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.2 [Release 10.2 to 11.2]
Oracle Solaris on SPARC (64-bit)
Sun Solaris SPARC (64-bit)
***Checked for relevance on 06-Jan-2014***

SYMPTOMSCSS service is unable to start on Solaris due to the next error:
# /u01/app/oracle/product/11.1.0/db_1/bin/localconfig add
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized

Cleaning up Network socket directories
Setting up Network socket directories
Adding to inittab
Startup will be queued to init within 30 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started

# cat /home/u01/app/oracle/product/11.1.0/db_1/log/db4/client/clscfg9.log
Oracle Database 11g CRS Release 11.1.0.7.0 - Production Copyright 1996, 2007 Oracle. All rights
reserved.
2009-07-09 13:19:44.466: [ OCROSD][1]utread:3: Problem reading buffer 20bb000 buflen 512
retval 0
phy_offset 102400 retry 0
2009-07-09 13:19:44.466: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.471: [ OCROSD][1]utread:3: Problem reading buffer 2061000 buflen 4096
retval
0 phy_offset 102400 retry 0
2009-07-09 13:19:44.471: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.471: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2009-07-09 13:19:44.471: [ OCROSD][1]utread:3: Problem reading buffer 2061000 buflen 4096
retval
0 phy_offset 102400 retry 0
2009-07-09 13:19:44.471: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.486: [ OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
2009-07-09 13:19:44.491: [ OCRRAW][1]proprinitroblem reading the bootblock or superbloc 22

2009-07-09 13:19:44.492: [ default][1]a_init:7!: Backend init unsuccessful : [22]
2009-07-09 13:19:44.502: [ OCROSD][1]utread:3: Problem reading buffer 20bb000 buflen 512
retval 0
phy_offset 102400 retry 0
2009-07-09 13:19:44.502: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.502: [ OCROSD][1]utread:3: Problem reading buffer 2061000 buflen 4096
retval
0 phy_offset 102400 retry 0
2009-07-09 13:19:44.502: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.502: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2009-07-09 13:19:44.502: [ OCROSD][1]utread:3: Problem reading buffer 2061000 buflen 4096
retval
0 phy_offset 102400 retry 0
2009-07-09 13:19:44.502: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.502: [ OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
2009-07-09 13:19:44.502: [ OCRRAW][1]proprinitroblem reading the bootblock or superbloc 22

2009-07-09 13:19:44.510: [ OCROSD][1]utread:3: Problem reading buffer 20bb000 buflen 512
retval 0
phy_offset 102400 retry 0
2009-07-09 13:19:44.510: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.510: [ OCROSD][1]utread:3: Problem reading buffer 2061000 buflen 4096
retval
0 phy_offset 102400 retry 0
2009-07-09 13:19:44.510: [ OCROSD][1]utread:4: Problem reading the buffer errno 2 errstring No
such file or directory
2009-07-09 13:19:44.510: [ OCRRAW][1]propriogid:1: INVALID FORMAT
2009-07-09 13:19:44.753: [ OCRRAW][1]propriowv_bootbuf: Vote information on disk 0
[/u01/app/oracle/product/11.1.0/db_1/cdata/localhost/local.ocr] is adjusted from [0/0] to [2/2]
2009-07-09 13:19:45.286: [ OCRRAW][1]iniconfig:No 92 configuration

CHANGESOS language is set to Czech.
CAUSE1) This is a LANG problem. So this can be confirmed by tracing the init.cssd script (executed by the init/inittab), as follow:

h1:3:respawn:/etc/init.d/init.cssd run >/var/log/init-cssd.run 2>&1 </var/log/init-cssd.run

2) /var/log/init-cssd.run log extract:
.
.
.
TZ=
+ export TZ
LANG=
+ export LANG

+ /bin/who -b
+ exit 0
BOOTID= . system boot srp 7 16:44
+ /bin/cat /var/opt/oracle/scls_scr/db4/root/cssrun
RUNID= . system boot Aug 7 16:44
+ [ . system boot srp 7 16:44 != . system boot Aug 7 16:
44 ]
+ [ . system boot Aug 7 16:44 = startstack ]
+ exit 3
STATUS=3
+ [ 3 != 0 ]
+ exit 3
+ [ 3 != 0 ]
+ /bin/sleep 30
.
.

SOLUTION1) Set the LANG environment variable in /etc/init.d/init.cssd script (in GETBOOTID section) to cs_CZ.ISO8859-2:

# Set a null language id. GETBOOTID can also be sensitive to the language
# codes, when init.cssd is run in a user shell compared to being run
# under init. Setting a blank language code should guarantee consistency.
LANG=cs_CZ.ISO8859-2


2) Then CSS will start.

$>crsctl check crs
CSS appears healthy
Cannot communicate with CRS
Cannot communicate with EVM

$>ps -fea | grep ocssd.bin | grep -vi grep
oracle 407 1 0 Aug 13 ? 3:50 /oracle2/V10g2/bin/ocssd.bin






论坛徽章:
187
生肖徽章:狗
日期:2006-11-23 04:26:03生肖徽章:羊
日期:2007-09-26 17:08:21生肖徽章:马
日期:2007-09-26 17:08:49授权会员
日期:2007-12-31 19:14:41生肖徽章2007版:牛
日期:2008-03-28 10:02:30奥运会纪念徽章:柔道
日期:2008-04-30 16:28:44奥运会纪念徽章:垒球
日期:2008-05-12 21:28:28奥运会纪念徽章:体操
日期:2008-06-26 10:00:41奥运会纪念徽章:沙滩排球
日期:2008-07-27 12:41:59奥运会纪念徽章:艺术体操
日期:2008-07-30 11:09:47
发表于 2015-3-7 21:52 | 显示全部楼层
cat /etc/inittab看看

使用道具 举报

回复

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

本版积分规则 发表回复

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