因为要用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.
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
-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_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*'
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
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';
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/