Solaris下配置ASM

因为要用Dtrace加GDB分析ASM,今天配置了一下Solaris下的ASM,过程如下:
# ./localconfig add
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Configuration for local CSS has been initialized
Failed configure CSS. Fix the problem and rerun this script. from destination Oracle home with 'reset' argument
配置出错了,没有进一步深究原因,按照提示,设置了一下ORACLE_HOME再试:
 
# export ORACLE_HOME=/export/home/oracle/opt//product/10.2.0/
ORACLE_HOME=/export/home/oracle/opt//product/10.2.0/: is not an identifier
 
# ./localconfig reset /export/home/oracle/opt//product/10.2.0/
cp: /export/home/oracle/opt/product/10.2.0/cdata/localhost/local.ocr and /export/home/oracle/opt//product/10.2.0//cdata/localhost/local.ocr are identical
Stale CSS daemon is running... killing it now
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.
        unknown
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)
 
成功了。
 
换到Oracle下启动ASM实例:
ASM参数文件如下:
$ cat asmpfile.ora
instance_type=asm
cluster_database=false
asm_diskgroups=dg1
asm_diskstring='/dev/sd*'
processes=200
remote_login_passwordfile=exclusive
core_dump_dest=/export/home/oracle/opt/admin/myasm/cdump
user_dump_dest=/export/home/oracle/opt/admin/myasm/udump
background_dump_dest=/export/home/oracle/opt/admin/myasm/bdump
 
按如下步骤启动ASM实例即可:
ORACLE_SID=myasm
sqlplus / as sysdba
create spfile from pfile='/export/home/oracle/asmpfile.ora';
startup nomount;
 

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

转载于:http://blog.itpub.net/321157/viewspace-718805/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值