标签云
asm恢复 bbed bootstrap$ dul kcbzib_kcrsds_1 kccpb_sanity_check_2 kcratr_nab_less_than_odr MySQL恢复 obet ORA-00312 ORA-00704 ORA-00742 ORA-01110 ORA-01200 ORA-01555 ORA-01578 ORA-01595 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-600 kcratr_nab_less_than_odr ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 ORACLE恢复 Oracle 恢复 ORACLE数据库恢复 oracle碎片 OSD-04016 YOUR FILES ARE ENCRYPTED 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (112)
- 数据库 (1,874)
- DB2 (22)
- MySQL (82)
- Oracle (1,700)
- Data Guard (53)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (168)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (72)
- Oracle Bug (8)
- Oracle RAC (56)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (29)
- Oracle备份恢复 (657)
- Oracle安装升级 (107)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (90)
- PostgreSQL (37)
- pdu工具 (7)
- PostgreSQL恢复 (13)
- SQL Server (34)
- SQL Server恢复 (14)
- TimesTen (7)
- 达梦数据库 (5)
- 达梦恢复 (3)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (51)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (34)
-
最近发表
- 不当数据库恢复操作导致一个月数据丢失
- obet快速修复oracle 位图损坏块
- 不太常见的10.2.0.1的oracle redo损坏恢复
- obet forcecopy功能抢救硬件故障中的数据文件
- kcratr_nab_less_than_odr和system坏块故障处理
- 通过obet 恢复system坏块,打开数据库
- obet dbv功能完整说明
- 分享一例运行在aix上的sap系统数据库恢复过程
- OBET-Oracle Block Editor Tool使用说明
- 几乎动用了所有手段的Oracle故障恢复
- Oracle Block Edit Tool (obet) 功能增强–2026.07
- Oracle 19c 202607补丁(RUs+OJVM)-19.32
- Patch_SCN快速修复ORA-01555数据库open故障
- 快速处理 ORA-01210: data file header is media corrupt 故障
- ORA-00314: log 3 of thread 1, expected sequence# N doesn’t match 0
- 记录block 0损坏,数据文件大量坏块,使用不当数据库版本恢复等各种操作之后的故障处理
- 需要注意:dbv 检测controlfile可能不准
- 达梦数据库redo异常强制拉库
- dd破坏包含50多个pdb的asm 磁盘组恢复
- Oracle数据库系统回滚段异常处理-ORA-600 4137/4193
标签归档:ORA-00316 ORA-00312
ORA-00316 ORA-00312故障处理
数据库启动报ORA-00316,ORA-00312,无法正常启动

通过Oracle数据库异常恢复检查脚本(Oracle Database Recovery Check)分析,确认是当前redo损坏

对于这种情况,只能是屏蔽一致性,强制拉库,结果在拉库过程中报ORA-600 2662错误

这个错误相对比较简单,修改下相关scn即可,数据库open成功
SQL> startup nomount pfile='/tmp/pfile'
ORACLE instance started.
Total System Global Area 3.8482E+10 bytes
Fixed Size 2261368 bytes
Variable Size 8187285128 bytes
Database Buffers 3.0199E+10 bytes
Redo Buffers 93593600 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "xifenfei" NORESETLOGS NOARCHIVELOG
2 MAXLOGFILES 50
3 MAXLOGMEMBERS 5
4 MAXDATAFILES 1000
5 MAXINSTANCES 8
6 MAXLOGHISTORY 2920
7 LOGFILE
8 group 1 '/u01/oracle/app/oradata/xifenfei/redo01.log' size 500M,
9 group 2 '/u01/oracle/app/oradata/xifenfei/redo02.log' size 500M,
10 group 6 '/u01/oracle/app/oradata/xifenfei/redo06.log' size 500M,
11 group 4 '/u01/oracle/app/oradata/xifenfei/redo04.log' size 500M,
12 group 5 '/u01/oracle/app/oradata/xifenfei/redo05.log' size 500M,
13 group 3 '/u01/oracle/app/oradata/xifenfei/redo03.log' size 500M
14 DATAFILE
15 '/u01/oracle/app/oradata/xifenfei/system01.dbf',
16 '/u01/oracle/app/oradata/xifenfei/sysaux01.dbf',
17 '/u01/oracle/app/oradata/xifenfei/undotbs01.dbf',
18 '/u01/oracle/app/oradata/xifenfei/users01.dbf',
………………
49 '/u01/oracle/app/oradata/xifenfei/XIFENFEI.dbf'
50 CHARACTER SET ZHS16GBK ;
Control file created.
SQL> recover database;
ORA-10877: error signaled in parallel recovery slave
SQL> recover database until cancel;
ORA-00279: change 2290050101 generated at 09/30/2022 23:18:22 needed for thread
1
ORA-00289: suggestion : /u02/oracle/arch/1_2_1116803861.dbf
ORA-00280: change 2290050101 for thread 1 is in sequence #2
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u01/oracle/app/oradata/xifenfei/system01.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
Database altered.
检查数据库字典一致性
SQL> @1
HCheck Version 07MAY18 on 01-OCT-2022 01:07:48
----------------------------------------------
Catalog Version 11.2.0.4.0 (1102000400)
db_name: XIFENFEI
Catalog Fixed
Procedure Name Version Vs Release Timestamp
Result
------------------------------ ... ---------- -- ---------- --------------
------
.- LobNotInObj ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- MissingOIDOnObjCol ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- SourceNotInObj ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- OversizedFiles ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- PoorDefaultStorage ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- PoorStorage ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- TabPartCountMismatch ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- OrphanedTabComPart ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- MissingSum$ ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- MissingDir$ ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- DuplicateDataobj ... 1102000400 <= *All Rel* 10/01 01:07:48 PASS
.- ObjSynMissing ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- ObjSeqMissing ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedUndo ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedIndex ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedIndexPartition ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedIndexSubPartition ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedTable ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedTablePartition ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedTableSubPartition ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- MissingPartCol ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedSeg$ ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- OrphanedIndPartObj# ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- DuplicateBlockUse ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- FetUet ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- Uet0Check ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- SeglessUET ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadInd$ ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadTab$ ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadIcolDepCnt ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- ObjIndDobj ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- TrgAfterUpgrade ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- ObjType0 ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadOwner ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- StmtAuditOnCommit ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadPublicObjects ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadSegFreelist ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- BadDepends ... 1102000400 <= *All Rel* 10/01 01:07:49 PASS
.- CheckDual ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- ObjectNames ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- BadCboHiLo ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- ChkIotTs ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- NoSegmentIndex ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- BadNextObject ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- DroppedROTS ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- FilBlkZero ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- DbmsSchemaCopy ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- OrphanedObjError ... 1102000400 > 1102000000 10/01 01:07:50 PASS
.- ObjNotLob ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- MaxControlfSeq ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- SegNotInDeferredStg ... 1102000400 > 1102000000 10/01 01:07:50 PASS
.- SystemNotRfile1 ... 1102000400 > 902000000 10/01 01:07:50 PASS
.- DictOwnNonDefaultSYSTEM ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- OrphanTrigger ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
.- ObjNotTrigger ... 1102000400 <= *All Rel* 10/01 01:07:50 PASS
---------------------------------------
01-OCT-2022 01:07:50 Elapsed: 2 secs
---------------------------------------
Found 0 potential problem(s) and 0 warning(s)
PL/SQL procedure successfully completed.
Statement processed.
数据库字典本身没有大问题,但是为了排除潜在风险,建议逻辑迁移到新库

加我微信(17813235971)
加我QQ(107644445)

