扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
SQL> startup ORACLE instance started. Total System Global Area 97588504 bytes Fixed Size 451864 bytes Variable Size 33554432 bytes Database Buffers 62914560 bytes Redo Buffers 667648 bytes Database mounted. Database opened. SQL> select count(*) from t; select count(*) from t * ERROR at line 1: ORA-00942: table or view does not exist SQL> create table t as select * from dba_users; Table created. SQL> select count(*) from t; COUNT(*) ---------- 12 |
SQL> alter system switch logfile; System altered. SQL> insert into t select * from t; 12 rows created. SQL> commit; Commit complete. SQL> select count(*) from t; COUNT(*) ---------- 24 |
SQL> startup force; ORACLE instance started. Total System Global Area 97588504 bytes Fixed Size 451864 bytes Variable Size 33554432 bytes Database Buffers 62914560 bytes Redo Buffers 667648 bytes Database mounted. ORA-00354: corrupt redo log block header ORA-00353: log corruption near block 3 change 897612314 time 10/19/2005 14:19:34 ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/conner/redo03.log' |
SQL> select * from v$log; GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- 1 1 159 10485760 1 NO INACTIVE 897592312 19-OCT-05 2 1 158 10485760 1 NO INACTIVE 897572310 19-OCT-05 3 1 160 10485760 1 NO ACTIVE 897612314 19-OCT-05 4 1 161 1048576 1 NO CURRENT 897612440 19-OCT-05 |
SQL> alter system set "_allow_resetlogs_corruption"=true scope=spfile; System altered. SQL> shutdown immediate; ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL> startup mount; ORACLE instance started. Total System Global Area 97588504 bytes Fixed Size 451864 bytes Variable Size 33554432 bytes Database Buffers 62914560 bytes Redo Buffers 667648 bytes Database mounted. SQL> recover database using backup controlfile until cancel; ORA-00279: change 897612315 generated at 10/19/2005 16:54:18 needed for thread 1 ORA-00289: suggestion : /opt/oracle/oradata/conner/archive/1_160.dbf ORA-00280: change 897612315 for thread 1 is in sequence #160 Specify log: { |
Fri Jun 10 16:30:25 2005 alter database open resetlogs Fri Jun 10 16:30:25 2005 RESETLOGS is being done without consistancy checks. This may result in a corrupted database. The database should be recreated. RESETLOGS after incomplete recovery UNTIL CHANGE 240677200 Resetting resetlogs activation ID 3171937922 (0xbd0fee82) |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者