我的 Windows 7 开发机器上安装了 Oracle 12.0.1.2.0(企业包)。意外断电后,Oracle 引擎无法启动:
因此,我无法连接 SQLplus 来执行任何命令,因此,我在网上找到的用于清除 REDO 文件的指南都不适合我。
ORA-01033: ORACLE initialization or shutdown in progress
01033. 00000 - "ORACLE initialization or shutdown in progress"
*Cause: An attempt was made to log on while Oracle is being started up or shutdown.
*Action: Wait a few minutes. Then retry the operation.
Vendor code 1033
Run Code Online (Sandbox Code Playgroud)
这是启动日志:
...
Mon Jun 19 10:56:47 2017
Beginning crash recovery of 1 threads
parallel recovery started with 3 processes
Mon Jun 19 10:56:47 2017
Started redo scan
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc (incident=43430):
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00334: archived log: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident details in: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43430\orcl_ora_4864_i43430.trc
Sweep [inc][43430]: completed
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc (incident=43431):
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00334: archived log: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident details in: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43431\orcl_ora_4864_i43431.trc
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_m000_4680.trc (incident=43462):
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident details in: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43462\orcl_m000_4680_i43462.trc
Mon Jun 19 10:57:06 2017
Dumping diagnostic data in directory=[cdmp_20170619105706], requested by (instance=1, osid=4864), summary=[incident=43430].
Mon Jun 19 10:57:07 2017
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc:
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00334: archived log: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_m000_4680.trc (incident=43463):
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident details in: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43463\orcl_m000_4680_i43463.trc
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc (incident=43432):
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident details in: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43432\orcl_ora_4864_i43432.trc
Mon Jun 19 10:57:07 2017
Dumping diagnostic data in directory=[cdmp_20170619105707], requested by (instance=1, osid=4864), summary=[incident=43431].
Mon Jun 19 10:57:08 2017
Dumping diagnostic data in directory=[cdmp_20170619105708], requested by (instance=1, osid=4680 (M000)), summary=[incident=43463].
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc (incident=43433):
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident details in: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43433\orcl_ora_4864_i43433.trc
Mon Jun 19 10:57:09 2017
Slave encountered ORA-10388 exception during crash recovery
Mon Jun 19 10:57:09 2017
Slave encountered ORA-10388 exception during crash recovery
Mon Jun 19 10:57:09 2017
Dumping diagnostic data in directory=[cdmp_20170619105709], requested by (instance=1, osid=4864), summary=[incident=43433].
Mon Jun 19 10:57:09 2017
Slave encountered ORA-10388 exception during crash recovery
Mon Jun 19 10:57:10 2017
Aborting crash recovery due to error 355
Mon Jun 19 10:57:10 2017
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc:
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Mon Jun 19 10:57:10 2017
Errors in file C:\APP\SONORA\diag\rdbms\orcl\orcl\trace\orcl_ora_4864.trc:
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
ORA-355 signalled during: alter database open...
Run Code Online (Sandbox Code Playgroud)
这是跟踪转储文件 (orcl_ora_4864.trc):
DDE: Problem Key 'ORA 312' was flood controlled (0x1) (no incident)
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident 43432 created, dump file: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43432\orcl_ora_4864_i43432.trc
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Incident 43433 created, dump file: C:\APP\SONORA\diag\rdbms\orcl\orcl\incident\incdir_43433\orcl_ora_4864_i43433.trc
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
*** 2017-06-19 10:57:10.590
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
ORA-00355: change numbers out of order
ORA-00353: log corruption near block 37327 change 3289952 time 06/14/2017 18:09:53
ORA-00312: online log 1 thread 1: 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG'
Run Code Online (Sandbox Code Playgroud)
现在我的问题是:有没有办法让我在不重新安装 Oracle 的情况下解决这个问题?我不关心数据丢失,因为它不是生产数据,我只是希望避免再次设置我的本地数据库,因为我在时钟上......任何帮助都非常感谢......
您组中还有其他日志文件吗?如果不...
挂载数据库:
STARTUP MOUNT;
Run Code Online (Sandbox Code Playgroud)
清除日志文件:
ALTER DATABASE CLEAR UNARCHIVED LOGFILE 'C:\APP\SONORA\ORADATA\ORCL\REDO01.LOG';
ALTER DATABASE RECOVER DATABASE UNTIL CANCEL;
Run Code Online (Sandbox Code Playgroud)
重置日志并打开数据库:
ALTER DATABASE OPEN RESETLOGS;
Run Code Online (Sandbox Code Playgroud)
如果您ORA-01624
在其中任何一个过程中遇到问题,则需要不同的解决方案。
您可能必须设置隐藏参数_allow_resetlogs_corruption= true
和/或重新创建控制文件才能从中恢复。