首页 > 其他分享 >Recovery Catalog Schema Upgrade Fails With ORA-02298 On Constraint ROUT_F3

Recovery Catalog Schema Upgrade Fails With ORA-02298 On Constraint ROUT_F3

时间:2024-09-11 10:53:42浏览次数:3  
标签:Fails Upgrade Recovery ROUT SITE 02298 KEY table ORA

Oracle Database - Enterprise Edition - Version 19.16.0.0.0 and later

Recovery Catalog schema upgrade to version 19.16  fails With ORA-02298 on constraint ROUT_F3

RMAN> upgrade catalog
recovery catalog is partially upgraded to 19.16.00.00
error creating upgcat_add_rout_f3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06004: Oracle error from recovery catalog database: ORA-02298: cannot validate (<schema_owner>.ROUT_F3) - parent keys not found

As per debug trace, we can see the constraint that is being created

DBGSQL: RCVCAT> alter table rout add CONSTRAINT rout_f3 FOREIGN KEY(site_key)
DBGSQL: REFERENCES node ON DELETE CASCADE
DBGSQL: sqlcode = 2298
DBGSQL: error: ORA-02298: cannot validate (<schema_owner>.ROUT_F3) - parent keys not found (krmkosqlerr)

ORA-02298 here means that we found SITE_KEY in child ROUT table which is not present in parent table NODE. Below query can be run to identify such rows

select SITE_KEY,count(*) from <schema_owner>.ROUT
where SITE_KEY not in (select distinct SITE_KEY from <schema_owner>.NODE)
group by SITE_KEY;

Solution

Cleanup the ROUT table to remove above records

SQL> delete from <schema_owner>.ROUT where SITE_KEY not in (select distinct SITE_KEY from <schema_owner>.NODE);
SQL> commit;

Re-run the "upgrade catalog" operation.

标签:Fails,Upgrade,Recovery,ROUT,SITE,02298,KEY,table,ORA
From: https://blog.51cto.com/u_13647939/11979891

相关文章

  • 论文笔记--See through Gradients. Image Batch Recovery via GradInversion
    SeethroughGradients.ImageBatchRecoveryviaGradInversion\(W^{FC}\in\mathbb{R}^{M\timesN}\),其输入为一个M维向量\(v\in\mathbb{R}^M\),\(\DeltaW^{FC}_{m,n,k}\)是损失函数对全连接层\(W\)的导数。对于一个特定的类别\(n\),(\(z\)为全连接层输出的logits),其......
  • 使用 nuxi upgrade 升级现有nuxt项目版本
    title:使用nuxiupgrade升级现有nuxt项目版本date:2024/9/10updated:2024/9/10author:cmdragonexcerpt:摘要:本文介绍了如何使用nuxiupgrade命令升级Nuxt3项目,包括打开终端、运行升级命令、使用选项、测试项目等步骤,以及升级前的注意事项,如备份代码、检查文......
  • 使用 nuxi upgrade 升级现有nuxt项目版本
    title:使用nuxiupgrade升级现有nuxt项目版本date:2024/9/10updated:2024/9/10author:cmdragonexcerpt:摘要:本文介绍了如何使用nuxiupgrade命令升级Nuxt3项目,包括打开终端、运行升级命令、使用选项、测试项目等步骤,以及升级前的注意事项,如备份代码、检查文......
  • 使用 nuxi upgrade 升级现有nuxt项目版本
    title:使用nuxiupgrade升级现有nuxt项目版本date:2024/9/10updated:2024/9/10author:cmdragonexcerpt:摘要:本文介绍了如何使用nuxiupgrade命令升级Nuxt3项目,包括打开终端、运行升级命令、使用选项、测试项目等步骤,以及升级前的注意事项,如备份代码、检查文档和依......
  • EasyRecovery破解版下载无需注册,easyrecovery数据恢复软件免费版激活码密钥
    EasyRecovery易恢复是一款功能强大的数据恢复软件,为无数人群解决了数据丢失的烦恼,为工作生活带去了便捷。无数使用者在使用过后,都肯定了其强大的数据恢复功能。具体来说,EasyRecovery易恢复可以恢复多方面的数据,EasyRecovery易恢复的使用对象可以是台式机、笔记本、移动硬盘或是......
  • 2025超实用的软件EasyRecovery数据恢复工具免费版下载
    ......
  • EasyRecovery2025最新超级好用的电脑数据恢复软件
    亲爱的笔记本小能手们,你们有没有想过,在电脑里辛苦工作了好几个小时的成果,一不小心因为手滑、误操作或是其他原因,突然“噗通”一下不见了?......
  • rancher upgrade 【rancher 升级】
    文章目录1.背景2.下载3.安装4.检查5.测试5.1创建项目5.2创建应用5.3删除集群5.4注册集群1.背景rancherv2.8.2升级v2.9.12.下载下载chartshelmrepoaddrancher-latesthttps://releases.rancher.com/server-charts/latesthelmrepoupdatehelmfetchrancher-la......
  • Gitlab-ce upgrade 16.0.1 to 17.3.1【Gitlab-ce 16.0.1 升级 17.3.1】
    文章目录背景gitlab-ce16.0.1升级17.3.1失败gitlab-ce16.0.1升级16.11.8失败gitlab-ce16.0.1升级16.7.9失败gitlab-ce16.0.1升级16.3.8成功gitlab-ce16.3.8升级16.11.8失败gitlab-ce16.3.8升级16.7.9成功gitlab-ce16.7.9升级16.11.8成功gitlab-ce16.......
  • Python Poetry fails to add openai-whisper due to triton installation error
    题意:PythonPoetry因Triton安装错误而无法添加openai-whisper。问题背景:soimtryingtouseopenai-whisper.i'musingpoetryasmyenvanddependecymanager.butkeepgettingerrorswhentryingtodownloadit.theerrorigetis,Installingtriton(2.0.......