Solaris下配置ASM

vage發表於2012-03-17
因為要用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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章