当前位置:网站首页>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
边栏推荐
- 开源一款监控数据采集器,啥都能监控
- Leetcode -- linked list
- What do you mean by waiting for insurance records? Where should I go for filing?
- CF566E-Restoring Map【bitset】
- tp5 使用post接收数组数据时报variable type error: array错误的解决方法
- 最新Windows下Go语言开发环境搭建+GoLand配置
- When programmers are asked if they can repair computers... | daily anecdotes
- e的lnx为什么等于x
- 支持向量机(SVC,NuSVC,LinearSVC)
- Directly applicable go coding specification
猜你喜欢

CF566E-Restoring Map【bitset】

Epidemic situation, unemployment, 2022, we shouted to lie down!

Xiaobai needs to learn MySQL - incremental statistical SQL

NETRCA: AN EFFECTIVE NETWORK FAULT CAUSE LOCALIZATION之论文阅读

Cdga | how can we do well in data governance?

数字化转型的失败原因及成功之道

医学图像开源数据集汇总(二)

latex公式及表格识别
![[GDB debugging tool] | how to debug under multithreading, multiprocessing and running programs](/img/b5/38a53c88240c4308452d0208173461.png)
[GDB debugging tool] | how to debug under multithreading, multiprocessing and running programs

文献调研报告
随机推荐
零基础自学SQL课程 | 子查询
How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!
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
Cmake命令之target_compile_options
[GDB debugging tool] | how to debug under multithreading, multiprocessing and running programs
When should gridfs be used?
开源一款监控数据采集器,啥都能监控
可直接套用的Go编码规范
Oracle查看数据文件头SCN信息
2020 China's provinces and cities, three-level linkage data, data agencies (data from the official website of the National Bureau of Statistics)
LeetCode之最长公共前缀
Tools
CDGA|到底怎么才能做好数据治理呢?
Go 语言项目开发实战目录
医学图像开源数据集汇总(二)
PHP使用递归和非递归方式实现创建多级文件夹
2022.06.23 (traversal of lc_144,94145\
CF566E-Restoring Map【bitset】
threejs的点光源+环境光
Niuke network decimal integer to hexadecimal string