问题
- 在 ASM 11gR2 上,ASM spfile 初始化参数文件现在存储在第一个创建的磁盘组中(例如 DATA)。
例如:
SQL> show parameter instance_type NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ instance_type string asm
SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------------------------ spfile string +DATA/asm/asmparameterfile/registry.253.697740955
- 如果由于任何原因 ASM spfile 丢失,我们将无法启动 ASM 实例。
on it road.com
解决方案
ASM spfile 初始化参数文件现在存储在第一个创建的磁盘组(例如 DATA)中,因此如果 ASM 实例未启动且磁盘组未挂载,则无法重新创建 spfile。
解决方法
- 使用最小参数创建临时 pfile:
+ASM:oracle:GRID_11gR2>vi asm.ora +ASM.asm_diskgroups='OLTP','FRA' *.asm_diskstring='ORCL:*' *.asm_power_limit=1 *.diagnostic_dest='/u01/app/oracle' *.instance_type='asm' *.large_pool_size=12M #*.local_listener='LISTENER_+ASM' *.remote_login_passwordfile='EXCLUSIVE'
- 使用新的 pfile 启动 ASM 实例:
+ASM:oracle:GRID_11gR2> sqlplus '/as sysasm' SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 16 16:53:57 2009 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> startup pfile=asm.ora
- 然后重新创建 ASM spfile,如下所示:
SQL> create spfile='+DATA' from pfile='asm.ora'; File created.
- 也通过 ASMCMD 检查新的 spfile:
+ASM:oracle:GRID_11gR2>asmcmd ASMCMD> cd +DATA/asm/asmparameterfile/ ASMCMD> ls REGISTRY.253.697740955
- 使用新的 spfile 重新启动 ASM 实例:
+ASM:oracle:GRID_11gR2> sqlplus '/as sysasm' SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 16 16:53:57 2009 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> shutdown immediate SQL> startup SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------------------------ spfile string +DATA/asm/asmparameterfile/registry.253.697740955
日期:2020-09-17 00:11:46 来源:oir作者:oir