当前位置:网站首页>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 .
边栏推荐
- My C language learning records (blue bridge) -- files and file input and output
- Atcoder beginer contest 233 (a~d) solution
- 真机无法访问虚拟机的靶场,真机无法ping通虚拟机
- How does yyds dry inventory deal with repeated messages in the consumption process?
- Who is the winner of PTA
- Microservice registration and discovery
- Crazy, thousands of netizens are exploding the company's salary
- 【若依(ruoyi)】启用迷你导航栏
- Rust language -- iterators and closures
- 张丽俊:穿透不确定性要靠四个“不变”
猜你喜欢

ERA5再分析资料下载攻略

Linear programming matlab

微服务注册与发现

The real machine cannot access the shooting range of the virtual machine, and the real machine cannot Ping the virtual machine

Linear regression and logistic regression

Game theory matlab

JS regular filtering and adding image prefixes in rich text

Performance analysis of user login TPS low and CPU full

IPv6 comprehensive experiment

Analyze 菜单分析
随机推荐
Solve 9 with C language × 9 Sudoku (personal test available) (thinking analysis)
Recommended foreign websites for programmers to learn
Résumé des méthodes de reconnaissance des caractères ocr
Arabellacpc 2019 (supplementary question)
How does yyds dry inventory deal with repeated messages in the consumption process?
Redis SDS principle
MPLS experiment
2.11 simulation summary
Precautions for single chip microcomputer anti reverse connection circuit
. Net 6 and Net core learning notes: Important issues of net core
技术分享 | undo 太大了怎么办
Leetcode problem solving -- 108 Convert an ordered array into a binary search tree
CSP date calculation
Deep parsing pointer and array written test questions
故障分析 | MySQL 耗尽主机内存一例分析
My C language learning record (blue bridge) -- on the pointer
Jenkins basic knowledge ----- detailed explanation of 03pipeline code
1003 emergency (25 points), "DIJ deformation"
全国大学生信息安全赛创新实践赛初赛---misc(永恒的夜)
MySQL Server层四个日志