当前位置: 首页 > news >正文

pdb restore in ADG database

Effect of PITR on Dataguard Environment (Standby MRP Crashed with ORA-39873) (Doc ID 1591492.1)​编辑To Bottom


In this Document

Symptoms
Cause
Solution

APPLIES TO:

Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.1 [Release 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Information in this document applies to any platform.

SYMPTOMS

 This document explains how to overcome MRP Crash with ORA-39874 and ORA-39873 after a Point in time (PITR) recovery on Primary.

-----Stnadby Alert log-----------

Recovery of pluggable database <PDB NAME> aborted due to pluggable database open resetlog marker.
To continue recovery, restore all data files for this PDB to checkpoint SCN lower than 3961537, or timestamp before 10/10/2013 04:55:31, and restart recovery
MRP0: Background Media Recovery terminated with error 39874
.
Errors in file /u01/app/oracle/diag/rdbms/<standby db name>/<SID>/trace/<SID>_mrp0_15640.trc:
ORA-39874: Pluggable Database <PDB NAME> recovery halted
ORA-39873: Restore all data files to a checkpoint SCN lower than 3961537.

CAUSE

Standby is ahead of primary RESETLOGS changes on <PDB NAME> . <PDB NAME> have two datafiles i.e datafile 12 and 13.

SOLUTION

 1. Make sure the corresponding standby PDB is closed.

SQL>alter pluggable database <PDB NAME> close;


2. The error is expected if the DG broker is enabled. If DG broker is enabled then Stop the Apply via DG broker to avoid dg broker automatic restart of MRP.

DGMGRL>edit database chicago set state=apply-off;


3. If Standby in ADG then mount it.

SQL>select database_role,open_mode from v$database;

SQL>shutdown immediate;
SQL>startup mount


We have two options to recover Standby PDB.

OPTION I (Restore PDB)

1. If Standby is the backup server the go for direct restore because standby have the old backups.

On Standby,

RMAN> list  backup of pluggable database <PDB NAME>;


NOTE : The backup SCN should be less or equal to PITR SCN. If no backup exist of lessr SCN then copy backuppiece which have less or equal SCN from primary

2. Get the PDB name SCN from the standby alert log error message (ORA-39874 and ORA-39873).

RMAN>restore pluggable database <PDB DB> until scn <primary PITR SCN>;

Ex,

RMAN>restore pluggable database <PDB NAME> until scn 3961537;

------Standby Alert log---------------

Restore ..until SCN 2. Falshback to SCN
Full restore complete of datafile 12 <PATH>/pdbseed/system01.dbf.  Elapsed time: 0:00:14
  checkpoint is 3961537
  last deallocation scn is 3961537
  Undo Optimization current scn is 3951674
Thu Oct 10 05:55:45 2013
Full restore complete of datafile 13 <PATH>/pdbseed/sysaux01.dbf.  Elapsed time: 0:00:25
  checkpoint is 3961537
  last deallocation scn is 1362129


NOTE :After Restore do not start MRP immediately. If MRP started by mistakenly before the standby SYNCup with primary then MRP will crash with ORA-65138. The same applies to primary flashback to <SCN>

Managed Standby Recovery starting Real Time Apply
MRP0: Background Media Recovery terminated with error 65138
.
Errors in file /u01/app/oracle/diag/rdbms/<standby db name>/<SID>/trace/<SID>_mrp0_18820.trc:
ORA-65138: Data file 12 of pluggable database <PDB NAME> belongs to an orphan PDB incarnation.
ORA-01110: data file 12: '<PATH>/pdbseed/system01.dbf'
Managed Standby Recovery not using Real Time Apply


 To Resolve,

 a. Take fresh backup of PDB from primary

RMAN> backup pluggable database <PDB NAME>;


 b. Copy the backuppiece to Standby.
 c. On Standby restore PDB.

RMAN> restore pluggable database <PDB NAME>;



3. Finally Open database,PDB and start MRP.

RMAN>alter database open;
RMAN>alter pluggable database <PDB NAME> open;
RMAN>alter database recover managed standby database disconnect;

 NOTE : If DG broker enable,start MRP using,
 DGMGRL>edit database chicago ser state=apply-on;
 
OPTION II

1. If Flashback is enabled then do flashback to scn 1362129.

SQL>flashback database to scn <primary PITR SCN>;

Ex,

SQL>flashback database to scn 3961537;


2. Open database,PDB and start MRP.

 

RMAN>alter database open;
RMAN>alter pluggable database <PDB NAME> open;
RMAN>alter database recover managed standby database disconnect;
RMAN> restore pluggable database <PDB NAME>;

  

NOTE : If DG broker enable,start MRP using,
DGMGRL>edit database chicago set state=apply-on;

相关文章:

pdb restore in ADG database

Effect of PITR on Dataguard Environment (Standby MRP Crashed with ORA-39873) (Doc ID 1591492.1)​编辑To Bottom In this Document Symptoms Cause Solution APPLIES TO: Oracle Database Cloud Exadata Service - Version N/A and later Oracle Database Cloud Servic…...

科创人·蓝凌董事长杨健伟:夯实“四梁八柱”,让数字化“城中村上建高楼”

杨健伟 蓝凌软件董事长 长江商学院EMBA、数字化转型专家、深圳市企业联合会副会长、清华英赛克管理学博士。 “越来越多的企业家在谈数字化转型&#xff0c;软件行业需要思考CIO如何跟CEO对话&#xff0c;这是很大的挑战”&#xff0c;杨健伟在数智2023蓝凌用户大会上的这番话&…...

Flink SQL --Flink 整合 hive

1、整合 # 1、将依赖包上传到flink的lib目录下 flink-sql-connector-hive-3.1.2_2.12-1.15.2.jar# 2、重启flink集群 yarn application -list yarn application -kill application_1699579932721_0003 yarn-session.sh -d# 3、重新进入sql命令行 sql-client.sh 2、Hive cata…...

demo(一)eureka----服务注册与提供

下面写一个简单的demo验证下eureka&#xff0c;实现服务注册、服务发现。 一、单节点&#xff1a; 1、api&#xff1a; 封装其他组件需要共用的dto 2、eureka-service服务注册中心&#xff1a; &#xff08;1&#xff09;pom: <?xml version"1.0" encoding&q…...

core dump(介绍,status中的core dump标志,应用--调试),ulimit命令

目录 core dump(核心转储) 引入 介绍 core dump标志 引入 介绍 应用 -- gdb调试 注意点 ulimit命令 -a -c 示例 -- core file大小问题 core dump(核心转储) 引入 我们可以看到,不同的signal对应不同的编号和action:其中action主要分为term和coreterm就是终止的意…...

使用键盘管理器更改键盘快捷键,让键盘真正迎合你的使用习惯

如果默认快捷键不适合你&#xff0c;你肯定会想知道如何在Windows 11中更改键盘快捷键。 也许你已经习惯了macOS键盘&#xff0c;或者像我一样在Windows和Mac之间切换工作/游戏——如果是这样的话&#xff0c;重新配置默认的Windows快捷方式&#xff0c;使其与Mac上的快捷方式…...

putty保存登录账号和密码

putty作为一个免费的远程登录连接工具&#xff0c;其功能和性能还是很不错的&#xff0c;但是有一个很明显的缺点&#xff0c;就是无法保存用户名和密码。 在这里就针对这个问题&#xff0c;分享一种能够快速保存用户名和密码的方法。 1&#xff0c;创建一个桌面快捷方式。 …...

GRS认证是什么认证为何如此重要

在全球化日益盛行的今天&#xff0c;环保和可持续性成为了企业发展的关键词。其中&#xff0c;GRS认证作为企业实现可持续生产和全球环境保护的一个重要手段&#xff0c;越来越受到人们的关注。那么&#xff0c;GRS认证究竟是什么认证呢?   GRS&#xff0c;全称为Global Rec…...

基于pytest-bdd的项目目录结构和命名规范

pytest-bdd 的文件的命名规范 pytest-bdd 是基于pytest 之上&#xff0c;所以需要遵循pytest 的命名规则才能进行测试&#xff0c;具体有&#xff1a; 测试文件名必须以*test.py或者test*.py命名测试函数必须以 test_开头 在pytest-bdd中存在两类文件&#xff1a; 以 .feat…...

web前端开发网页设计课堂作业/html练习《课程表》

目标图&#xff1a; 代码解析&#xff1a; 代码解析1<table border"3" align"center"><输入内容(的) 边界"3px" 位置"居中">2<tr><td colspan"7" align"center">课程表</td><t…...

用欧拉路径判断图同构推出reverse合法性:1116T4

http://cplusoj.com/d/senior/p/SS231116D 假设我们要把 a a a 变成 b b b&#xff0c;我们在 a i a_i ai​ 和 a i 1 a_{i1} ai1​ 之间连边&#xff0c; b b b 同理&#xff0c;则 a a a 能变成 b b b 的充要条件是两图 A , B A,B A,B 同构。 必要性显然&#xff0…...

高阶数据结构---树状数组

文章目录 楼兰图腾一个简单的整数问题 一个简单的整数问题2谜一样的牛 一、楼兰图腾OJ链接 二、一个简单的整数问题OJ链接 三、一个简单的整数问题2OJ链接 四、谜一样的牛OJ链接...

如何保护PayPal账户安全:防止多个PayPal账号关联?

PayPal是一家全球领先的在线支付平台&#xff0c;已经成为全球最受欢迎的在线支付工具之一&#xff0c;广泛应用于电子商务、跨境交易和个人之间的付款&#xff0c;很多跨境卖家的支付平台都会选择PayPal。PayPal支持全球多个国家和20多种货币在线支付&#xff0c;并且能即时收…...

关于 Spring :松耦合、可配置、IOC、AOP

关于 Spring &#xff1a;松耦合、可配置、IOC、AOP 文章目录 关于 Spring &#xff1a;松耦合、可配置、IOC、AOP一、关于 Spring1、概述2、Spring 的“松耦合”体现在哪3、Spring 的“可配置”体现在哪4、Spring 的 IOC 容器的主要作用5、Spring 的 AOP 容器的主要作用 一、关…...

pytorch tensor数据类型转换为python数据

一、item() input: x torch.tensor([1.0]) x.item()output: 1.0二、tolist() input: a torch.randn(2, 2) a.tolist() a[0,0].tolist()output: [[0.012766935862600803, 0.5415473580360413],[-0.08909505605697632, 0.7729271650314331]]0.012766935862600803...

HarmonyOS开发:动态共享包的依赖问题

一、共享包的依赖方式 在需要依赖的模块包目录下oh-package.json5文件中添加依赖&#xff1a; "dependencies": {"ohos/srpaasUI": "file:../../srpaasUI","ohos/srbusiness": "file:../../feature/srbusiness"} 引入之后…...

中睿天下加入中关村华安关键信息基础设施安全保护联盟

近日&#xff0c;中睿天下正式加入中关村华安关键信息基础设施安全保护联盟&#xff0c;成为其会员单位。 中关村华安关键信息基础设施安全保护联盟是由北京市科学技术委员会、中关村科技园区管理委员会指导支持&#xff0c;经北京市民政局批准&#xff0c;于2023年8月正式注册…...

【c++STL算数仿函数,关系仿函数,逻辑仿函数】

文章目录 C STL中的算数、关系和逻辑仿函数1. 算数仿函数2. 关系仿函数3. 逻辑仿函数 C STL中的算数、关系和逻辑仿函数 STL&#xff08;Standard Template Library&#xff09;是C标准库的一部分&#xff0c;提供了许多强大的工具和功能&#xff0c;其中包括仿函数&#xff0…...

产品经理的能力模型是什么?

一个产品的成功需要团队成员利用自己的技能共同合作完成。作为团队的核心和产品的主导者&#xff0c;产品经理需要具备一定的能力模型&#xff0c;以更好地完成工作。下面从五个方面进行解答。 首先&#xff0c;产品经理需要具备需求分析的能力。需求是用户在特定场景下产生的欲…...

缓存和DB一致性

读操作&#xff0c;一般是先查询缓存&#xff0c;查询不到再查询数据库&#xff0c;最后回写进缓存。 写操作&#xff0c;究竟是先删除(更新)缓存&#xff0c;再更新数据库&#xff0c;还是先更新数据库&#xff0c;再删除(更新)缓存呢&#xff1f; 1、给缓存设置过期时间 适用…...

如何在Mac上安全导出微信聊天记录:开源工具WeChatExporter终极指南

如何在Mac上安全导出微信聊天记录&#xff1a;开源工具WeChatExporter终极指南 【免费下载链接】WeChatExporter 一个可以快速导出、查看你的微信聊天记录的工具 项目地址: https://gitcode.com/gh_mirrors/wec/WeChatExporter 你是否曾因手机丢失而担心珍贵的微信聊天记…...

茉莉花插件:5分钟掌握Zotero中文文献管理终极方案

茉莉花插件&#xff1a;5分钟掌握Zotero中文文献管理终极方案 【免费下载链接】jasminum A Zotero add-on to retrive CNKI meta data. 一个简单的Zotero 插件&#xff0c;用于识别中文元数据 项目地址: https://gitcode.com/gh_mirrors/ja/jasminum 还在为中文文献管理…...

使用C#代码在 PowerPoint 中组合或取消组合形状

在 PowerPoint 中&#xff0c;对形状进行组合和取消组合是两个非常实用的功能。通过组合&#xff0c;您可以将多个形状整合为一个整体&#xff0c;从而像操作单个对象一样同时移动、设置格式、调整大小或旋转这些形状。而取消组合则可以解除这些形状之间的关联&#xff0c;使您…...

如何在浏览器中直接查看SQLite数据库文件?WebAssembly技术带来的零安装解决方案

如何在浏览器中直接查看SQLite数据库文件&#xff1f;WebAssembly技术带来的零安装解决方案 【免费下载链接】sqlite-viewer View SQLite file online 项目地址: https://gitcode.com/gh_mirrors/sq/sqlite-viewer 你是否曾经需要快速查看一个SQLite数据库文件&#xff…...

RefineDet检测结果可视化:使用refinedet_demo.py轻松实现目标标注

RefineDet检测结果可视化&#xff1a;使用refinedet_demo.py轻松实现目标标注 【免费下载链接】RefineDet Single-Shot Refinement Neural Network for Object Detection, CVPR, 2018 项目地址: https://gitcode.com/gh_mirrors/re/RefineDet RefineDet是一种高效的单阶…...

量子纠错码与逻辑门优化实现技术解析

1. 量子纠错码与逻辑门实现基础量子纠错码是量子计算中确保计算可靠性的核心技术。与经典计算不同&#xff0c;量子态具有相干性和不可克隆性&#xff0c;这使得量子信息在存储和处理过程中极易受到环境噪声的影响。稳定子码&#xff08;Stabilizer Codes&#xff09;作为一类重…...

面试:如果让你设计一个客服 Agent,你会如何划分四大组件的职责?

这个问题挺经典的,我之前负责过客服系统的设计,就结合我们线上的实践来说说。 核心就是四件事:定义角色、管理记忆、制定计划、执行动作 。 先说 Profile(角色定义) 。客服 Agent 得知道自己是谁、以什么姿态服务。我们当时设计的时候会预设几个维度:一个是基础信息,比…...

Unity 2019粒子拖尾(Trails)五大生产级陷阱解析

1. 为什么Trails模块在Unity 2019里是个“安静的炸弹”你有没有遇到过这样的情况&#xff1a;粒子系统明明启用了Trails&#xff0c;预览时效果惊艳&#xff0c;一打包到Android或iOS设备上&#xff0c;Trail直接消失&#xff1f;或者在编辑器里拖动时间轴&#xff0c;Trail长度…...

Office技巧速成:3个让效率翻倍的实用方法

表格操作总出错怎么办众多人于运用Excel开展数据处理工作之际&#xff0c;时常会被合并单元格以及公式报错等情形搞得疲惫不堪&#xff0c;焦头烂额。实际上&#xff0c;要是认真细细探究一番&#xff0c;便会发觉&#xff0c;大部分这类问题均是起因于对 Excel 基本功能欠缺熟…...

Photoshop‌2022安装教程

ps是一款使用率很高的设计工具&#xff0c;此篇分享一下Windows2022版本的安装教程 1、下载的压缩包解压2、右键以管理员身份运行Set-up.exe3、选择语言及安装位置&#xff08;建议安装在系统盘C以外的其他磁盘&#xff09;4、继续安装&#xff0c;等待安装完成点击关闭即可5、…...