ITPub博客

首页 > 数据库 > Oracle > 11.2环境ASM实例spfile放在ASM磁盘组的访问方式

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

原创 Oracle 作者:pxbibm 时间:2014-05-11 14:00:15 0 删除 编辑
在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博客 ” ,链接:https://blog.itpub.net/12798004/viewspace-1158478/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle ACE。ACOUG核心成员,Oracle用户组年轻专家。熟悉Oracle的体系结构,擅长Oracle数据库架构规划、SQL优化、OWI方面性能的优化。曾服务于航天、航空、机车、大型制造行业数据库的维护以及系统开发工作,开发过基于Oracle数据库的大型ERP系统。
  • 博文量
    345
  • 访问量
    2477691