当前位置:网站首页>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 .
边栏推荐
- Technology sharing | what if Undo is too big
- 3857 Mercator coordinate system converted to 4326 (WGS84) longitude and latitude coordinates
- Arabellacpc 2019 (supplementary question)
- Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
- Buuctf question brushing notes - [geek challenge 2019] easysql 1
- Game theory matlab
- 适合程序员学习的国外网站推荐
- The next industry outlet: NFT digital collection, is it an opportunity or a foam?
- Summary of Bible story reading
- Handwriting database client
猜你喜欢

IPv6 jobs

Installation and use tutorial of cobaltstrike-4.4-k8 modified version

Era5 reanalysis data download strategy

Taobao focus map layout practice

StrError & PERROR use yyds dry inventory

codeforces每日5題(均1700)-第六天

建模规范:命名规范

My C language learning record (blue bridge) -- on the pointer

The next industry outlet: NFT digital collection, is it an opportunity or a foam?

不赚钱的科大讯飞,投资价值该怎么看?
随机推荐
Résumé des méthodes de reconnaissance des caractères ocr
My C language learning record (blue bridge) -- under the pointer
These are not very good
[Yu Yue education] basic reference materials of digital electronic technology of Xi'an University of Technology
[Chongqing Guangdong education] higher mathematics I reference materials of Southwest Petroleum University
Detailed use of dbutils # yyds dry goods inventory #
Atcoder beginer contest 233 (a~d) solution
1003 emergency (25 points), "DIJ deformation"
Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
Leetcode problem solving -- 98 Validate binary search tree
微服务间通信
【 kubernets series】 a Literature Study on the Safe exposure Applications of kubernets Service
Communication between microservices
Apt installation ZABBIX
3857 Mercator coordinate system converted to 4326 (WGS84) longitude and latitude coordinates
codeforces每日5題(均1700)-第六天
SD卡报错“error -110 whilst initialising SD card
Research on cooperative control of industrial robots
Software design principles
What is the investment value of iFLYTEK, which does not make money?