当前位置:网站首页>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 .
边栏推荐
- 【 kubernets series】 a Literature Study on the Safe exposure Applications of kubernets Service
- 全国大学生信息安全赛创新实践赛初赛---misc(永恒的夜)
- Deeply analyze the chain 2+1 mode, and subvert the traditional thinking of selling goods?
- [ruoyi] enable Mini navigation bar
- 1003 emergency (25 points), "DIJ deformation"
- 真机无法访问虚拟机的靶场,真机无法ping通虚拟机
- 手写数据库客户端
- codeforces每日5題(均1700)-第六天
- [ruoyi] ztree custom icon (iconskin attribute)
- Solve 9 with C language × 9 Sudoku (personal test available) (thinking analysis)
猜你喜欢

下一个行业风口:NFT 数字藏品,是机遇还是泡沫?
![[kubernetes series] learn the exposed application of kubernetes service security](/img/61/4564230feeb988886fe595e3125ef4.png)
[kubernetes series] learn the exposed application of kubernetes service security

How to choose PLC and MCU?

【概念】Web 基础概念认知

Crazy, thousands of netizens are exploding the company's salary
如何做好功能测试
![BUUCTF刷题笔记——[极客大挑战 2019]EasySQL 1](/img/37/c38a933ce7fa5d2b8fa597965ffcb2.png)
BUUCTF刷题笔记——[极客大挑战 2019]EasySQL 1

【Kubernetes 系列】一文学会Kubernetes Service安全的暴露应用

XSS challenges bypass the protection strategy for XSS injection

js 正则过滤和增加富文本中图片前缀
随机推荐
Game theory matlab
【Kubernetes 系列】一文学会Kubernetes Service安全的暴露应用
Descriptor implements ORM model
Atcoder beginer contest 233 (a~d) solution
tcpdump: no suitable device found
华为、H3C、思科命令对比,思维导图形式从基础、交换、路由三大方向介绍【转自微信公众号网络技术联盟站】
有没有完全自主的国产化数据库技术
Inherit day01
Derivation of anti Park transform and anti Clarke transform formulas for motor control
Zhang Lijun: penetrating uncertainty depends on four "invariants"
Explore pointers and pointer types in depth
JS regular filtering and adding image prefixes in rich text
[Chongqing Guangdong education] higher mathematics I reference materials of Southwest Petroleum University
Differences and application scenarios between resulttype and resultmap
Elimination games
How to read excel, PDF and JSON files in R language?
银行核心业务系统性能测试方法
Microservice registration and discovery
如何做好功能测试
CSP numeric sort