11.2环境ASM实例spfile放在ASM磁盘组的访问方式

在11.2的ASM实例上,执行show parameter spfile:
[grid@rac1 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.1.0 Production on Sun MAY 11 15:56:12 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Automatic Storage Management option

SQL> show parameter spfile

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string+DATA/asm/asmparameterfile/registry.253.704991445
可以看到spfile在ASM磁盘组里了。但是,和之前的版本不同,在$ORACLE_HOME/dbs目录下却没有pfile来定位spfile。

[grid@rac1 ~]$ ls $ORACLE_HOME/dbs
ab_+ASM.dat
hc_+ASM.dat
init.ora
orapw+ASM
peshm_+ASM_1


那么ASM实例如何得知它的spfile具体位置的呢?

答案是通过一个“本地注册表”。
Oracle的Grid Infastructure使用这样一个“本地注册表”来记录本地的所有可控资源。

“本地注册表”位置在/etc/oracle/olr.loc文件中,查看olrconfig_loc变量:

[grid@rac1 ~]$ cat /etc/oracle/olr.loc
olrconfig_loc=/u01/app/grid/product/11.2.0/grid/cdata/localhost/rac1.olr
crs_home=/u01/app/grid/product/11.2.0/grid

查看“本地注册表”的内容:
[grid@rac1 ~]$ ocrdump -local -xml
[grid@rac1 ~]$ grep -i spfile OCRDUMPFILE

-----------------------------------------------------------------------------------------------------------------------
pxboracle@live.com
2014.5.11 14:01
share you knowledge with the world.

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

转载于:http://blog.itpub.net/12798004/viewspace-1158478/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值