当前位置: 首页 > news >正文

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/

相关文章:

  • oracle10g solaris
  • how_to_Secure_and_Audit_Oracle(1)
  • how_to_Secure_and_Audit_Oracle(2)
  • gentoo samba 配置
  • gentoo 32bit xmanager远程连接
  • solaris dhcp
  • scheduler管理
  • How can I Delete Duplicate Rows?
  • How can I Find Duplicated Rows in a Table?
  • Insert hangs 升级到11202后 在RAC环境用回还dblink
  • How to Bind RAW devices to Physical Partitions on Linux to be used by ASM
  • How to Truncate, Delete, or Purge Rows from the Audit Trail Table SYS.AUD$
  • rman备份到带库的扫描时间可能会比备份到磁盘的扫描时间长的原因
  • RAC, Dataguard, Streams, Advanced Replication and Basic Replication
  • ETL产品大致
  • ----------
  • 2017届校招提前批面试回顾
  • CentOS7 安装JDK
  • CSS实用技巧干货
  • express.js的介绍及使用
  • Quartz初级教程
  • 大型网站性能监测、分析与优化常见问题QA
  • 工作手记之html2canvas使用概述
  • 今年的LC3大会没了?
  • 开源中国专访:Chameleon原理首发,其它跨多端统一框架都是假的?
  • 入手阿里云新服务器的部署NODE
  • 详解NodeJs流之一
  • 用简单代码看卷积组块发展
  • # 日期待t_最值得等的SUV奥迪Q9:空间比MPV还大,或搭4.0T,香
  • # 再次尝试 连接失败_无线WiFi无法连接到网络怎么办【解决方法】
  • (1)(1.11) SiK Radio v2(一)
  • (day 12)JavaScript学习笔记(数组3)
  • (附源码)ssm考生评分系统 毕业设计 071114
  • (十一)JAVA springboot ssm b2b2c多用户商城系统源码:服务网关Zuul高级篇
  • (一)kafka实战——kafka源码编译启动
  • (一)python发送HTTP 请求的两种方式(get和post )
  • (转)VC++中ondraw在什么时候调用的
  • (轉貼) 寄發紅帖基本原則(教育部禮儀司頒布) (雜項)
  • ***测试-HTTP方法
  • 、写入Shellcode到注册表上线
  • .libPaths()设置包加载目录
  • .NET 依赖注入和配置系统
  • @ComponentScan比较
  • @zabbix数据库历史与趋势数据占用优化(mysql存储查询)
  • [ NOI 2001 ] 食物链
  • [CTF]2022美团CTF WEB WP
  • [Gradle] 在 Eclipse 下利用 gradle 构建系统
  • [Intel Edison开发板] 05、Edison开发基于MRAA实现IO控制,特别是UART通信
  • [leetcode]56. Merge Intervals归并区间
  • [Linux]文件基础-如何管理文件
  • [OpenCV学习笔记]获取鼠标处图像的坐标和像素值
  • [Pyhton]weakref 弱引用
  • [Python]—Linux Server 系统监控程序
  • [RoarCTF 2019]Easy Calc
  • [ruby on rails] array、jsonb字段