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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] ORA-01155: the database is being opened, closed, mounted or dismounted

[复制链接]
跳转到指定楼层
楼主
发表于 2022-5-22 11:53:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
启动数据库出现这样报错:
ORA-01155: the database is being opened, closed, mounted or dismounted
在等待了差不多15分钟之后,查看告警日志发现数据库自动open了


查找了一下ORA-01155的报错信息:


ORA-01155: the database is being opened, closed, mounted or dismounted
Answer:    Here is what the oerr utility has to say about the ORA-01155 error:
ORA-01155: the database is being opened, closed, mounted or dismounted

Cause: The requested operation needs the instance to be in a particular state but the state is being changed.

Action: Wait for the open, close, mount, or dismount to complete then retry the operation. If necessary, a SHUTDOWN ABORT will always work.
To diagnose the ORA-01155 error, you can run this query:
select switchover_status from v$database;

select
   SID,
   PROCESS,
   PROGRAM
from
   v$session
where
   type = 'USER'
and
   SID (select DISTINCT SID from v$mystat);

If the second query returns data, then re-run the switchover command:

SQL>ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 23:31 , Processed in 0.122918 second(s), 21 queries .

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

© 2001-2020

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