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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] Cannot Start Database Due to Flashback Enabled

[复制链接]
跳转到指定楼层
楼主
发表于 2024-7-28 15:07:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
The database will not startup, and gives errors like:

ORA-38737: Expected sequence number 2483 doesn't match 2304
ORA-38701: Flashback database log 143 seq 2483 thread 1:

These errors can be seen in the Alert.log file.

Note, you may also see ORA-38760, This database instance failed to turn on flashback database.  


原因:
$ oerr ora 38737
38737, 00000, "Expected sequence number %s doesn't match %s"
// *Cause: The flashback database log is corrupted or is an old version.
// *Action: If you are doing a FLASHBACK DATABASE, then the flashback
// cannot be performed because of the corrupted log. A restore
// and an incomplete recovery must be performed instead.

$ oerr ora 38701
38701, 00000, "Flashback database log %s seq %s thread %s: \"%s\""
// *Cause: This message reports the filename for details of another message.
// *Action: Other messages will accompany this message. See the associated
// messages for the appropriate action to take.


These errors prevent the database from starting up because, at some point prior, we were not able to write to the flashback area.

Review the alert.log file prior to these errors on startup. You may see other information indicating an issue writing to the flashback area. For example, you may see something like:

ORA-38701: Flashback database log 36 seq 2305 thread 1.....
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.

处理方法:
To get the database open, temporarily disable flashback database like:

-- 1. Mount the database:
SQL> startup mount;

-- 2. Turn off flashback.
SQL> alter database flashback off;

-- 3. Open the database:
SQL> alter database open;

-- 4. Shutdown
SQL> Shutdown immediate;

-- 5. Mount the database:
SQL> Startup mount;

-- 6. Turn flashback back on:
SQL> alter database flashback on;

-- 7. Open the database:
SQL> alter database open;

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 21:04 , Processed in 0.121421 second(s), 21 queries .

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

© 2001-2020

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