ORA-00312: online log 5 thread 1

I got ” ORA-00312: online log 5 thread 1 ”  error in Oracle database.

 

ORA-00312: online log 5 thread 1

 

Details of error are as follows.

SQL> alter database open resetlogs; 
alter database open resetlogs
*
ERROR at line 1:
ORA-00392: log 5 of thread 1 is being cleared, operation not allowed
ORA-00312: online log 5 thread 1: '/data/DEVECI/redologs/o1_mf_5_g11qrjms_.log'
ORA-00312: online log 5 thread 1: '/data/DEVECI/redologs/o1_mf_5_g11qrjoz_.log'

 

 

online log 5 thread 1

To solve this problem, you can clear related online log group like following.

You should change group number according to your environment.

SQL> alter database clear logfile group 5;

Database altered.

 

Or Sometimes you may need unarchive it, you can execute following script to solve.  You should change group number according to your environment.

SQL> alter database clear unarchived logfile group 1;

Database altered.


SQL> ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 1 UNRECOVERABLE DATAFILE ;

Database altered.


You should read the following post.

ORA-00283: recovery session canceled due to errors with ORA-00314 ORA-00312 via recover database until cancel

 

 

You should read the following post.

Managing Online Redo Log Files

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *