当前位置:网站首页>Oracle数据文件头SCN不一致处理方法
Oracle数据文件头SCN不一致处理方法
2022-06-24 08:17:00 【徽州吴彦祖】
Oracle DataGuard环境,恢复的DG备库发现要很久之前的归档。
而当前的归档都是4开头了
检查数据文件头SCN信息
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
...
已选择20行。
检查发现D:\CCDATA\NEWHIS\dfg1.ORA文件数据文件头起始SCN不一致。解决方法是主库单独备份该数据文件,再到备库恢复。
主库备份:
rman target /
backup datafile 8 format 'd:\8.bak';
备份集拷贝:
将备份集拷贝到备库
备库注册备份集:
rman target /
catalog backuppiece 'd:\8.bak';
备库恢复数据文件:
rman target /
restore datafile 8;
备库查看数据文件头:
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
边栏推荐
- 牛客网 字符串变形
- 什么情况下应该使用GridFS?
- NLP-D59-nlp比赛D28—我想,也好—阶段总结—心态调整
- ApplicationContextInitializer的三种使用方法
- 关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-> 报错解决方案
- [noi simulation] pendulum (linear algebra, Du Jiao sieve)
- PTA猴子选大王(约瑟夫环问题)
- CF566E-Restoring Map【bitset】
- [use picgo+ Tencent cloud object to store cos as a map bed]
- 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
猜你喜欢

Zero foundation self-study SQL course | sub query

Digital cloud released the 2022 white paper on digital operation of global consumers in the beauty industry: global growth solves marketing problems

零基础自学SQL课程 | HAVING子句

L01_ How is an SQL query executed?
![[bug] @jsonformat has a problem that the date is less than one day when it is used](/img/09/516799972cd3c18795826199aabc9b.png)
[bug] @jsonformat has a problem that the date is less than one day when it is used

In depth analysis of Apache bookkeeper series: Part 3 - reading principle

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

ApplicationContextInitializer的三种使用方法
![[Niuke] convert string to integer](/img/56/3e491b3d0eea0d89a04d0b871501d7.png)
[Niuke] convert string to integer

深入了解 border
随机推荐
MySQL data (Linux Environment) scheduled backup
Target of cmake command_ compile_ options
【LeetCode】415. String addition
RISC-V架构下 FPU Context 的动态保存和恢复
leetcode--链表
PhpStrom代码格式化设置
嵌入式 | 硬件转软件的几条建议
[e325: attention] VIM editing error
Vidéo courte recommandée chaque semaine: Soyez sérieux en parlant de "métaunivers"
Zero foundation self-study SQL course | having clause
Learn Tai Chi Maker - esp8226 (12) esp8266 multitasking
[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)
正则匹配邮箱
软件系统依赖关系分析
Depens:*** but it is not going to be installed
金仓KFS replicator安装(Oracle-KES)
The ambition of JD instant retailing from 618
零基础自学SQL课程 | SQL语句语法顺序与执行顺序
【输入法】迄今为止,居然有这么多汉字输入法!
Redis implements a globally unique ID