当前位置:网站首页>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 .
边栏推荐
- Misc (eternal night), the preliminary competition of the innovation practice competition of the National College Students' information security competition
- Performance test method of bank core business system
- XSS challenges绕过防护策略进行 XSS 注入
- Derivation of anti Park transform and anti Clarke transform formulas for motor control
- Problems encountered in 2022 work IV
- SD card reports an error "error -110 whilst initializing SD card
- Summary of Bible story reading
- Atcoder beginer contest 233 (a~d) solution
- 技术分享 | undo 太大了怎么办
- 1003 emergency (25 points), "DIJ deformation"
猜你喜欢
codeforces每日5题(均1700)-第六天
【指针训练——八道题】
XSS challenges bypass the protection strategy for XSS injection
银行核心业务系统性能测试方法
微服务间通信
4. File modification
Misc (eternal night), the preliminary competition of the innovation practice competition of the National College Students' information security competition
[Yu Yue education] basic reference materials of digital electronic technology of Xi'an University of Technology
BUUCTF刷题笔记——[极客大挑战 2019]EasySQL 1
[ruoyi] set theme style
随机推荐
【Unity3D】GUI控件
MPLS experiment
The difference between sizeof and strlen in C language
1003 emergency (25 points), "DIJ deformation"
Prototype design
3857墨卡托坐标系转换为4326 (WGS84)经纬度坐标
mysqldump数据备份
Zhang Lijun: penetrating uncertainty depends on four "invariants"
XSS challenges绕过防护策略进行 XSS 注入
Tomb. Weekly update of Finance (February 7 - February 13)
Problems encountered in 2022 work IV
Analyze 菜单分析
Overview of OCR character recognition methods
Jenkins basic knowledge ----- detailed explanation of 03pipeline code
CSP date calculation
Game theory matlab
Single instance mode of encapsulating PDO with PHP in spare time
Arabellacpc 2019 (supplementary question)
Differences and application scenarios between resulttype and resultmap
Sign SSL certificate as Ca