solaris ASM

实验环境 :
OS:solaris sparc 64 ORA_database:10.2.0.4
hostname:e450
bash-3.00# /u01/app/oracle/product/10.2.0/db_1/bin/localconfig reset
Failure at scls_scr_create with code 1
Internal Error Information:
 Category: 1234
 Operation: scls_scr_create
 Location: mkdir
 Other: Unable to make user dir
 Dep: 2
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
Adding to inittab
/etc/init.d/init.cssd: /var/opt/oracle/scls_scr/e450/root/cssrun: cannot create
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
试验下ASM,结果总也启动不起来 报 cssrun: cannot create ,很纳闷,root怎么可能创建不了文件。思量再三也不得其法,google也没有什么有用的结果。刚刚灵光突的一现,想到昕宇曾经提到过的应用出错的情况。于是试下
bash-3.00#ls /var/opt/oracle/scls_scr/e450/root/
/var/opt/oracle/scls_scr/e450/root/: No such file or directory
嗯,就是这个问题了。创建目录,然后再运行
bash-3.00#mkdir /var/opt/oracle/scls_scr/e450/root/
bash-3.00# localconfig reset
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
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.
记录下
bash- 3.00# localconfig delete 命令执行后, /etc/init.d/init.cssd 就不存在了,为了能执行 init.cssd,先执行localconfig add.然后挂着,因为init.cssd命令一直启动不起来。所以单独测下此命令
-bash-3.00$ /etc/init.d/init.cssd start 
-bash-3.00$ ps -ef |grep css 
oracle 29994 18388 0 13:21:45 pts/5 0:00 grep css 并未执行,后来上网搜下,提示说看下crs的log。
-bash-3.00$ vi /u01/app/oracle/admin/+ASM/udump/+asm_ora_24672.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
System name: SunOS
Node name: E450
Release: 5.10
Version: Generic_137137-09
Machine: sun4u
Instance name: +ASM
Redo thread mounted by this instance: 0 
Oracle process number: 0
Unix process pid: 24672, image: oracle@E450
clsc_connect: (10692f320) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_e450_localhost))
2009-08-12 12:45:54.313: [ CSSCLNT]clsssInitNative: connect failed, rc 9
kgxgncin: CLSS init failed with status 3
trace文件说没有监听。奇怪了,记得10G是动态注册的,怎么会没有监听呢,于是看了下listener.ora文件
SID_LIST_LISTENER =
 (SID_LIST =
 (SID_DESC =
 (GLOBAL_DBNAME = orcl)
 (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
 (SID_NAME = ORCL)
 )
 (SID_DESC =
 (GLOBAL_DBNAME = test)
 (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
 (SID_NAME = test)
 )
 )
LISTENER =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = E450)(PORT = 1521))
 )
呵呵,果然没有动态监听的配置,于是修改如下
SID_LIST_LISTENER =
 (SID_LIST =
 (SID_DESC =
 (GLOBAL_DBNAME = PLSExtProc)
 (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
 (SID_NAME = extproc)
 )
 (SID_DESC =
 (GLOBAL_DBNAME = orcl)
 (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
 (SID_NAME = ORCL)
 )
 (SID_DESC =
 (GLOBAL_DBNAME = test)
 (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
 (SID_NAME = test)
 )
 )
LISTENER =
 (DESCRIPTION_LIST =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = E450)(PORT = 1521))
 )
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL=IPC)(KEY = EXTPROC0))
 )
)
解决:
步骤:
1 运行localconfig reset
bash-3.00# localconfig reset
Failure at scls_scr_create with code 1
Internal Error Information:
 Category: 1234
 Operation: scls_scr_create
 Location: mkdir
 Other: Unable to make user dir
 Dep: 2
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
Adding to inittab
/etc/init.d/init.cssd: /var/opt/oracle/scls_scr/e450/root/cssrun: cannot create
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.
2 开另一窗口 查看进程
-bash-3.00$ ps -ef |grep css
 root 3874 3851 0 14:59:18 ? 0:00 /bin/sh /etc/init.d/init.cssd startcheck
 root 3904 3889 0 14:59:18 ? 0:00 /bin/sh /etc/init.d/init.cssd bootid
 root 3889 3874 0 14:59:18 ? 0:00 /bin/sh /etc/init.d/init.cssd runcheck
 root 3851 1 0 14:59:17 ? 0:00 /bin/sh /etc/init.d/init.cssd run
 oracle 3919 2082 0 14:59:18 pts/3 0:00 grep css
手动把以上命令运行一遍,当执行 init.cssd run时
bash-3.00# /etc/init.d/init.cssd run
/etc /init.d/init.cssd: /u01/app/oracle/product/10.2.0/db_1/log/e450 /cssd: does not exist 报错提示说/u01/app/oracle/product/10.2.0/db_1/log/e450 /cssd: does not exist 手工创建此目录
bash-3.00#mkdir -p /u01/app/oracle/product/10.2.0/db_1/log/e450/cssd 然后再运行init.cssd run 
bash-3.00# /etc/init.d/init.cssd run
bash-3.00# ps -ef |grep css
 root 7090 4221 0 15:25:35 pts/3 0:00 grep css
 oracle 6961 1 1 15:25:27 ? 0:01 /u01/app/oracle/product/10.2.0/db_1/bin/ocssd.bin
bash-3.00#
3.重新执行2步骤得到结果
 
 
bash-3.00# localconfig reset
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
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.
CSS is active on these nodes.
 e450
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)
 
总结:运行启动服务的总命令时,出错后系统不会有返回信息。这时要查查看进程执行到哪个进程了,然后手动执行一遍。根据这时的出错信息就可以定位哪里不对了。最后完整的写下操作步骤
1./etc/init.d/init.cssd stop
2.localconfig delete
3.mkdir -p /u01/app/oracle/product/10.2.0/db_1/log/e450/cssd
4.mkdir /var/opt/oracle/scls_scr/e450/root/
5.localconfig add
 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11780477/viewspace-705099/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11780477/viewspace-705099/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值