Oracle-redo corrupt or deleted processing methods

Source: Internet
Author: User

OS:

Oracle Linux Server Release 5.7

Db:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0-64bit Production

Database open mode, non-archive mode, non-current log corruption

sql> archive log list;
Database log mode No Archive mode
Automatic Archival Disabled
Archive Destination Use_db_recovery_file_dest
Oldest online log sequence 234
Current log sequence 236
Sql>

Sql> select * from V$log;

group# thread# sequence# BYTES BLOCKSIZE members archived STATUS first_change# First_time next_change# next_time
---------- ---------- ---------- ---------- ---------- ---------- -------- ---------------- ------------- ----------- --- --------- -----------
1 1 234 52428800 1 NO INACTIVE 3298602 2013/10/31 3298605 2013/10/31
2 1 236 52428800 1 NO current 3298609 2013/10/31 281474976710
3 1 235 52428800 1 NO INACTIVE 3298605 2013/10/31 3298609 2013/10/31

[Email protected] yoon]# RM-RF Redo01.log

[[email protected] yoon]# ls
Control01.ctl redo02.log redo03.log sysaux01.dbf system01.dbf temp01.dbf undotbs01.dbf users01.dbf

sql> alter system switch logfile;

System altered.

Sql>/

System altered.

Sql>/

System altered.

Sql>/

System altered.

Sql>/

System altered.

Executing DML statements, and switching logs, can be successful, but the database restarts with an error

sql> shutdown Immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

Sql>

Sql> Startup
ORACLE instance started.

Total System Global area 3340451840 bytes
Fixed Size 2232960 bytes
Variable Size 2046823808 bytes
Database buffers 1275068416 bytes
Redo buffers 16326656 bytes
Database mounted.
Ora-03113:end-of-file on communication channel
Process id:32731
Session id:1 Serial Number:5


Sql>

Sql> Conn/as SYSDBA
Connected to an idle instance.
sql> Shutdown Abort
ORACLE instance shut down.
Sql>

Workaround, the database boots to mount, and the corrupted log file is purged from the log group:

Sql> Startup Mount
ORACLE instance started.

Total System Global area 3340451840 bytes
Fixed Size 2232960 bytes
Variable Size 2046823808 bytes
Database buffers 1275068416 bytes
Redo buffers 16326656 bytes
Database mounted.
Sql>

Sql> ALTER DATABASE clear logfile Group 1;

Database altered.

sql> ALTER DATABASE open;

Database altered.

sql> shutdown Immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
Sql> Startup
ORACLE instance started.

Total System Global area 3340451840 bytes
Fixed Size 2232960 bytes
Variable Size 2046823808 bytes
Database buffers 1275068416 bytes
Redo buffers 16326656 bytes
Database mounted.
Database opened.
Sql>

Sql> Select member from V$logfile;

MEMBER
--------------------------------------------------------------------------------
/u01/oracle/oradata/yoon/redo03.log
/u01/oracle/oradata/yoon/redo02.log
/u01/oracle/oradata/yoon/redo01.log

Non-archive mode, the database is closed, not the log file being used is corrupted, as in the workaround.

Oracle-redo corrupt or deleted processing methods

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.