ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris下配置ASM

Solaris下配置ASM

原创 Linux操作系统 作者:vage 时间:2012-03-17 08:40:47 0 删除 编辑
因为要用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/,如需转载,请注明出处,否则将追究法律责任。

上一篇: RAC锁管理模式
请登录后发表评论 登录
全部评论

注册时间:2012-02-28

  • 博文量
    14
  • 访问量
    126781