当前位置:网站首页>Handling method of Oracle data file header SCN inconsistency
Handling method of Oracle data file header SCN inconsistency
2022-06-24 09:38:00 【Huizhou wuyanzu】
Oracle DataGuard Environmental Science , Recovered DG The backup database needs to be archived long ago .
The current archives are 4 The beginning. 
Check data file header SCN Information
select a.name,a.checkpoint_change# "start_SCN",
b.checkpoint_change# "last_SCN"
from v$datafile_header a, v$datafile b
where a.file#=b.file#;
NAME start_SCN last_SCN
--------------------------------------------- ---------- ----------
D:\CCDATA\NEWHIS\SYSTEM01.DBF 3295957260 3311098792
D:\CCDATA\NEWHIS\SYSAUX01.DBF 3295957262 3311098792
D:\CCDATA\NEWHIS\UNDOTBS01.DBF 3295957279 3311098792
D:\CCDATA\NEWHIS\USERS01.DBF 3295957260 3311098792
D:\CCDATA\NEWHIS\aaa.ORA 3295957262 3311098792
D:\CCDATA\NEWHIS\XX.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\ffff.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\dfg1.ORA 654876736 3311098792
D:\CCDATA\NEWHIS\eqerg.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\dfeg.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\dfwt.ORA 3295957279 3311098792
...
Have chosen 20 That's ok .
The inspection found that D:\CCDATA\NEWHIS\dfg1.ORA Start of file data file header SCN atypism . The solution is that the master database backs up the data file separately , Then go to the standby database to recover .
Main database backup :
rman target /
backup datafile 8 format 'd:\8.bak';
Backup set copy :
Copy the backup set to the standby database
The standby database registers backup sets :
rman target /
catalog backuppiece 'd:\8.bak';
The backup database recovers data files :
rman target /
restore datafile 8;
The standby database views the data file header :
select a.name,a.checkpoint_change# "start_SCN",
b.checkpoint_change# "last_SCN"
from v$datafile_header a, v$datafile b
where a.file#=b.file#;
NAME start_SCN last_SCN
--------------------------------------------- ---------- ----------
D:\CCDATA\NEWHIS\SYSTEM01.DBF 3295957260 3311098792
D:\CCDATA\NEWHIS\SYSAUX01.DBF 3295957262 3311098792
D:\CCDATA\NEWHIS\UNDOTBS01.DBF 3295957279 3311098792
D:\CCDATA\NEWHIS\USERS01.DBF 3295957260 3311098792
D:\CCDATA\NEWHIS\aaa.ORA 3295957262 3311098792
D:\CCDATA\NEWHIS\XX.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\ffff.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\dfg1.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\eqerg.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\dfeg.ORA 3295957261 3311098792
D:\CCDATA\NEWHIS\dfwt.ORA 3295957279 3311098792
边栏推荐
- Algorithm - the K row with the weakest combat power in the matrix (kotlin)
- Inspiration from reading CVPR 2022 target detection paper
- PRCT-1400 : 未能执行 getcrshome解决方法
- Longest public prefix of leetcode
- 每周推荐短视频:计算的终极形态是“元宇宙”?
- Directly applicable go coding specification
- CF566E-Restoring Map【bitset】
- Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
- PostgreSQL
- Get post: do you really know the difference between requests??????
猜你喜欢

Zero foundation self-study SQL course | related sub query

PTA猴子选大王(约瑟夫环问题)

ggplot2颜色设置总结

使用Live Chat促進業務銷售的驚人技巧

零基础自学SQL课程 | 子查询

The native applet uses canvas to make posters, which are scaled to the same scale. It is similar to the uniapp, but the writing method is a little different

When programmers are asked if they can repair computers... | daily anecdotes

最新Windows下Go语言开发环境搭建+GoLand配置

谈谈数字化转型晓知识

Support vector machine (SVC, nusvc, linearsvc)
随机推荐
【Eureka 源码分析】
An open source monitoring data collector that can monitor everything
When to use RDD and dataframe/dataset
[GDB debugging tool] | how to debug under multithreading, multiprocessing and running programs
20、 Processor scheduling (RR time slice rotation, mlfq multi-level feedback queue, CFS fully fair scheduler, priority reversal; multiprocessor scheduling)
荐书丨《好奇心的秘密》:一个针尖上可以站多少跳舞的小天使?
Niuke network decimal integer to hexadecimal string
June 13-19, 2022 AI industry weekly (issue 102): career development
正则匹配手机号
百度AI模板 获取知识理解
PRCT-1400 : 未能执行 getcrshome解决方法
Event registration Apache pulsar x kubesphere online meetup hot registration
Oracle 12c升级至19c后ORA-28000错误
CDGA|到底怎么才能做好数据治理呢?
数字化转型的失败原因及成功之道
Project deployment related
ThinkPHP 5.0 模型关联详解
grpc本地测试联调工具BloomRPC
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
Ggplot2 color setting summary