当前位置:网站首页>Redo file corruption repair
Redo file corruption repair
2022-07-06 03:12:00 【Drunken Xiaobai】
1 inactive The log group is damaged
Suppose the log group 4 damage , state inactive. The solution is simple , Just rebuild the log group
clear It means rebuilding group4 The file of
alter database clear logfile group 4;
2 current The log group is missing
This example log group 1 Status is CURRENT State of , Now simulate the current log group corruption
SQL> select group#,member from v$logfile;
[oracle@bpxtest]$ rm / route /redo01.log
SQL> alter system switch logfile; Switch several times , Touch it .
The alarm log will record relevant information
There seems to be no problem for the time being , Keep switching , When current Transfer to group1 when ,session die !
Currently, the problem of log corruption is complex , As shown in the figure above, it can be discussed in the following situations
1) The database did not crash
First step , You can make a complete checkpoint , take db buffer All in dirty buffer Refresh all to disk .
SQL> alter system checkpoint;
The second step , Try to forcibly clear the database without archiving when it is open .
SQL> alter database clear unarchived logfile group n;
The database is now open , If this step succeeds , We must build a new database , Because the current log cannot be archived , Archive log sequence Continuity cannot be maintained . The purpose of full preparation is to get rid of the previous archived logs .
2) The database has crashed , You can only do traditional incomplete log based recovery or use flashback databases .
SQL> recover database until cancel;
SQL> alter database open resetlogs;
3) If there is no backup available before , Or the problem is so serious that no method can resetlogs Open database , To save the data , Consider the last move Oracle Implicit parameters of :_allow_resetlogs_corruption=TRUE
Oracle This implicit parameter is not recommended
The meaning of this parameter is : Allow the database to force open the database without sex .
After forcibly opening the database in an inconsistent state , It is suggested to make a logic complete .
3 active The log group is damaged
Do checkpoint switching , If successful , according to inactive Damage handling . otherwise , Press current Damage handling .
边栏推荐
- Microservice registration and discovery
- jsscript
- . Net 6 and Net core learning notes: Important issues of net core
- 银行核心业务系统性能测试方法
- These are not very good
- 手写数据库客户端
- Handwriting database client
- XSS challenges bypass the protection strategy for XSS injection
- Fault analysis | analysis of an example of MySQL running out of host memory
- Pat 1046 shortest distance (20 points) simulation
猜你喜欢
银行核心业务系统性能测试方法
BUUCTF刷题笔记——[极客大挑战 2019]EasySQL 1
C language - Blue Bridge Cup - promised score
How to choose PLC and MCU?
Taobao focus map layout practice
【Kubernetes 系列】一文学会Kubernetes Service安全的暴露应用
Huawei, H3C, Cisco command comparison, mind map form from the basic, switching, routing three directions [transferred from wechat official account network technology alliance station]
How to do function test well
Who is the winner of PTA
下一个行业风口:NFT 数字藏品,是机遇还是泡沫?
随机推荐
IPv6 comprehensive experiment
SD card reports an error "error -110 whilst initializing SD card
【若依(ruoyi)】设置主题样式
07 singleton mode
Microservice registration and discovery
Recommended foreign websites for programmers to learn
[ruoyi] ztree custom icon (iconskin attribute)
深度解析指针与数组笔试题
Is there a completely independent localization database technology
C # create self host webservice
3857 Mercator coordinate system converted to 4326 (WGS84) longitude and latitude coordinates
Taobao focus map layout practice
[ruoyi] set theme style
The next industry outlet: NFT digital collection, is it an opportunity or a foam?
Classic interview question [gem pirate]
What is the investment value of iFLYTEK, which does not make money?
C语言sizeof和strlen的区别
Handwriting database client
resulttype和resultmap的区别和应用场景
ERA5再分析资料下载攻略