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

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[Oracle] Flashback Database To Restore Point Fails With ORA-00600 [kcvhvdf_1]

[复制链接]
跳转到指定楼层
楼主
发表于 2025-6-1 11:24:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
Flashback database to pre-upgrade restore point failing with ORA-00600 [kcvhvdf_1]

2022-06-05T21:59:06.791270-08:00
flashback database to restore point BEFORE_UPGRADE_19C
2022-06-05T21:59:07.843667-08:00
Flashback Restore Start
2022-06-05T21:59:16.153308-08:00
Flashback Restore Complete
Flashback Media Recovery Start
Started logmerger process
2022-06-05T21:59:16.305317-08:00
Errors in file /u01/app/oracle/diag/rdbms/sampledb/sampledb1/trace/sampledb1_pr00_63957.trc (incident=136473):
ORA-00600: internal error code, arguments: [kcvhvdf_1], [], [], [], [], [], [], [], [], [], [], []


原因:
Ran below query to check the status of datafiles:

SQL> select HXFIL, FHDBI, FHRBA_SEQ, FHTHR, FHSCN, FHSTA, FHTIM from X$KCVFH;
Found that there was a read-only datafile (file# 26) belonging to tablespace SAMPLETS. This file was showing a different DBID from the rest of database. Most likely, its a plugged in tablespace which was not made read-write after TTS plugin.

处理方法:
Offline the datafile and complete the flashback:

SQL> alter database datafile 26 offline;
SQL> flashback database to restore point BEFORE_UPGRADE_19C
After opening the database, make the corresponding tablespace online:

SQL> alter database open resetlogs;
SQL> alter tablespace SAMPLETS online;
To avoid this issue for future flashback operations, toggle this tablespace to READ WRITE and back to READ ONLY. This action will update the datafile header with the correct DBID

SQL> alter tablespace SAMPLETS read write;
SQL> alter tablespace SAMPLETS read only;

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-5-1 08:08 , Processed in 0.218916 second(s), 20 queries .

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

© 2001-2020

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