重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 362|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-01565: Unable to Open Spfile for ASM Instance

[复制链接]
跳转到指定楼层
楼主
发表于 2025-9-7 18:37:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
The ASM instance is unable to open the spfile, resulting in the error ORA-01565. The error message indicates that the spfile located at ?=/dbs/spfile@.ora is unavailable. Diagnostic outputs from ASMCMD show that the spfile<dbname>.ora is expected to be located at +DATA/ASM/ASMPARAMETERFILE/registry.253.1234525743, but it does not exist.


原因:
The root cause of the issue is that the spfile set at the ASM layer is not available in the diskgroup. Further investigation using ASMCMD commands reveals that the ASMPARAMETERFILE directory does not exist in the +DATA/ASM/ directory, which confirms that the spfile is missing.


ASMCMD> spget
+DATA/ASM/ASMPARAMETERFILE/registry.253.1234525743


ASMCMD> ls '+DATA/ASM/ASMPARAMETERFILE/registry.253.1234525743'
ASMCMD-8002: entry 'ASMPARAMETERFILE' does not exist in directory '+DATA/ASM/'


处理方法:
To resolve this issue, you will need to create a new spfile and set it with the ASM resource using asmcmd command. Here are the step-by-step instructions:

1.Create a pfile with the necessary parameters.
2.Use the pfile to create a new spfile.
CREATE SPFILE='<spfile location>' FROM PFILE='<pfile location>';
3.Set the new SPFILE with the ASM resource using asmcmd command.
If you do not have the parameters needed for the spfile, you can retrieve them from the alert log.
After creating and setting the new spfile, verify that it exists in the expected location and that it can be accessed by the ASM instance.
Use ASMCMD commands to confirm that the new spfile has been successfully created and set:

·spget command to verify that a valid path for an existing parameter file has been provided
·ls command on '+DATA' or relevant directories where your files reside
·set the new SPFILE with the ASM resource using "asmcmd spset" command.
ASMCMD> spset +DATA/asm/asmparameterfile/asmspfile.ora
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2026-4-17 21:19 , Processed in 0.213848 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表