手机版
你好,游客 登录 注册
背景:
阅读新闻

如何获取 Oracle 11g RAC asm spfile 的位置

[日期:2014-07-22] 来源:Linux社区  作者:lixora [字体: ]

如何获取 Oracle 11g RAC asm spfile 的位置

方法一:
 [root@vmrac1 ~]# su - grid
 [grid@vmrac1 ~]$ sqlplus / as sysasm
 
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 3 09:36:27 2014
 
Copyright (c) 1982, 2011, Oracle. All rights reserved.
 

Connected to:
 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
 With the Real Application Clusters and Automatic Storage Management options
 
SQL> select sys_context('sys_cluster_properties','asm_spfile',4000) as val from dual;
 
VAL
 --------------------------------------------------------------------------------
 +DUPCRS/vmrac-cluster/asmparameterfile/registry.253.850656291
 

方法二:
 SQL> show parameter pfile
 
NAME TYPE VALUE
 ------------------------------------ ----------- ------------------------------
 spfile string +DUPCRS/vmrac-cluster/asmparam
 eterfile/registry.253.850656291
 

方法三:
 ASMCMD> spget
 +DUPCRS/vmrac-cluster/asmparameterfile/registry.253.850656291
 

方法四:
 [root@vmrac2 ~]# gpnptool get 2>/dev/null | xmllint --format - | egrep 'CSS-Profile|ASM-Profile|Network id'
 <gpnp:HostNetwork id="gen" HostName="*">
 <gpnp:Network id="net1" IP="10.80.18.0" Adapter="eth0" Use="public"/>
 <gpnp:Network id="net2" IP="10.0.0.0" Adapter="eth1" Use="cluster_interconnect"/>
 <orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/>
 <orcl:ASM-Profile id="asm" DiscoveryString="" SPFile="+DUPCRS/vmrac-cluster/asmparameterfile/registry.253.850656291"/>

11G RAC重建ASM实例的SPFILE  http://www.linuxidc.com/Linux/2014-06/103381.htm

又一例SPFILE设置错误导致数据库无法启动 http://www.linuxidc.com/Linux/2013-08/88933.htm

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址http://www.linuxidc.com/Linux/2014-07/104506.htm

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款