联系:手机/微信(+86 17813235971) QQ(107644445)
标题:重建control遗漏数据文件,reseltogs报ORA-1555错误处理
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
又一客户,误删除oracle redo导致数据库无法正常启动,自己尝试重建ctl,结果遗漏部分oracle数据文件并且尝试过resetlogs,导致部分文件resetlogs scn不一致.导致重建ctl失败
Fri Feb 10 12:41:20 2023 CREATE CONTROLFILE REUSE DATABASE "orcl" RESETLOGS NOARCHIVELOG MAXLOGFILES 50 MAXLOGMEMBERS 5 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 226 LOGFILE GROUP 1 'H:\BaiduNetdisk\couga/redo01.log' SIZE 50M, GROUP 2 'H:\BaiduNetdisk\couga/redo02.log' SIZE 50M, GROUP 3 'H:\BaiduNetdisk\couga/redo03.log' SIZE 50M DATAFILE 'H:\BaiduNetdisk\couga\system01.dbf', 'H:\BaiduNetdisk\couga\cougaerp.DBF', 'H:\BaiduNetdisk\couga\cougajh.DBF', 'H:\BaiduNetdisk\couga\example01.dbf', 'H:\BaiduNetdisk\couga\sysaux01.dbf', 'H:\BaiduNetdisk\couga\undotbs01.dbf', 'H:\BaiduNetdisk\couga\users01.dbf' CHARACTER SET zhs16gbk WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command Default Temporary Tablespace will be necessary for a locally managed database in future release Errors in file c:\app\xff\diag\rdbms\orcl\orcl11\trace\orcl11_ora_4132.trc: ORA-01189: ????????????? RESETLOGS ORA-01110: ???? 6: 'H:\BaiduNetdisk\couga\cougajh.DBF'
通过OraRecovery工具修改相关异常文件头resetlogs scn之后,重建ctl成功
尝试resetlogs 数据库报ORA-00704 ORA-00604 ORA-01555错误
Fri Feb 10 12:46:04 2023 SMON: enabling cache recovery ORA-01555 caused by SQL statement below (SQL ID: 4krwuz0ctqxdt, SCN: 0x0000.09dab82d): select ctime, mtime, stime from obj$ where obj# = :1 Errors in file c:\app\xff\diag\rdbms\orcl\orcl11\trace\orcl11_ora_7088.trc: ORA-00704: 引导程序进程失败 ORA-00704: 引导程序进程失败 ORA-00604: 递归 SQL 级别 1 出现错误 ORA-01555: 快照过旧: 回退段号 5 (名称为 "_SYSSMU5_1527469038$") 过小 Errors in file c:\app\xff\diag\rdbms\orcl\orcl11\trace\orcl11_ora_7088.trc: ORA-00704: 引导程序进程失败 ORA-00704: 引导程序进程失败 ORA-00604: 递归 SQL 级别 1 出现错误 ORA-01555: 快照过旧: 回退段号 5 (名称为 "_SYSSMU5_1527469038$") 过小 Error 704 happened during db open, shutting down database USER (ospid: 7088): terminating the instance due to error 704
通过类似方法处理:
在数据库open过程中常遇到ORA-01555汇总
数据库open过程遭遇ORA-1555对应sql语句补充
顺利open数据库,并且逻辑方式导出数据,完成恢复