Some days before when I was cloning one of the production database into UAT box, step to open database with resetlogs option failed due to insufficient space in one of the diskgroup.


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-00344: unable to re-create online log '+RADACTL1'
ORA-17502: ksfdcre:4 Failed to create file +RADACTL1
ORA-15041: diskgroup "RADACTL1" space exhausted

So I checked for the diskgroup with sufficient free space for creating redo logs and changed parameter accordingly.

SQL> alter system set db_create_online_log_dest_1='+RADA';
System altered.
SQL> alter system set db_create_online_log_dest_2='+RADA';
System altered.
SQL> sho parameter online
NAME TYPE VALUE
----------------------------------- ----------- ------------------------------
db_create_online_log_dest_1 string +RADA
db_create_online_log_dest_2 string +RADA
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string

Now once again I tried opening database with resetlogs option. This attempt once again failed but giving different error.


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-00392: log 12 of thread 1 is being cleared, operation not allowed
ORA-00312: online log 12 thread 1: '+RADACTL1'
ORA-00312: online log 12 thread 1: '+RADACTL2'

I checked for status of redo log group 12:

 SQL> select status from v$log where GROUP#=12;
STATUS 
----------------
CLEARING_CURRENT

I decided to clear this group manually:

SQL> alter database clear unarchived logfile group 12;
Database altered.

Now once again I attempted opening database with resetlogs option & it worked without issues. 🙂

SQL> alter database open resetlogs;
Database altered.

Hope so u will find this post very useful 🙂

Cheers

Regards,

Adityanath

Advertisements

38 responses to “ORA-00392: log X of thread X is being cleared, operation not allowed”

  1. Mayur Deshmukh Avatar
    Mayur Deshmukh

    Really helpful article!

    Thanks Adityanath 🙂

  2. Raj Mohan Avatar
    Raj Mohan

    Really a very helful article.. I got stuck in same problem.. Your solution fixed it.. THanks for sharing..

    1. Adityanath Dewoolkar Avatar

      Hey Raj Mohan,

      Thanks for visiting and appreciate your feedback. 🙂

  3. Amol Avatar
    Amol

    I had this same issue and your blog entry guided me to fix it. Thanks.

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  4. Naseer Arif Avatar

    Thanks, it works for me 🙂

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  5. Kenneth Igiri Avatar

    Wow… Adit… this is one of the blogs that solved my problem straight away. Thanks and keep n=blogging.

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  6. Ajay Avatar
    Ajay

    thanks a lot….

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  7. Dhanasekaran Avatar
    Dhanasekaran

    Thank you.. Was very helpful

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  8. Khalid Avatar
    Khalid

    Thanks a lot and happy new year

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂 & happy new year 🙂

  9. Dave Avatar
    Dave

    Thanks! You saved me some time!

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  10. CSGO Avatar
    CSGO

    Wow because this is great work! Congrats and keep it up

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  11. willsnotes Avatar

    Hello Adi,

    This blog post solved my problem with clearing the LOG files out from a CLEARING_CURRENT state and was able to ALTER DATABASE OPEN RESETLOGS after.
    SQL> select status from v$log where GROUP#=’39’;

    STATUS
    —————-
    CLEARING_CURRENT

    Elapsed: 00:00:00.01
    SQL> alter database clear unarchived logfile group 39;

    Database altered.

    My question is, if you know, how did my DB get into this state, CLEARING_CURRENT? This happened when I was restoring the DB from an image.

    Thanks!

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback.:-)

      Your redo log will be in status CLEARING_CURRENT when current log is being cleared of a closed thread. The log can stay in this status if there is some failure in the switch such as an I/O error writing the new log header.

      In my case, I tried to open resetlogs database just after recovering & my diskgroup for FRA was 100% full, due to which it was not able to update log headers.

      Regards,
      Adi

  12. Webmaster Avatar
    Webmaster

    Thank you for every other informative blog. The place else may just I get that kind of info written in such an ideal way? I have a mission that I am simply now operating on, and I’ve been at the glance out for such information.

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  13. naga Avatar
    naga

    thanks you.
    Regards,
    Naga

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  14. Johanna Avatar
    Johanna

    You actually make it seem so easy with your presentation but I find this matter to be actually something that I think I would never understand. It seems too complicated and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  15. Linh Avatar
    Linh

    Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is excellent, as well as the content!

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  16. Blogs Avatar
    Blogs

    Way to go!

  17. Long Car Avatar
    Long Car

    Don’t ever change a thing about this site. I enjoy it so much.

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  18. Tasty Waffles Avatar
    Tasty Waffles

    Keep up the fantastic work. I can wait to read the next article.

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  19. ปั้มไลค์ Avatar
    ปั้มไลค์

    Like!! I blog frequently and I really thank you for your content. The article has truly peaked my interest.

  20. Florian Avatar
    Florian

    Generally I don’t read article on blogs, but I would like
    to say that this write-up very pressured me to try and do so!
    Your writing style has been amazed me. Thank you, very great article.

  21. Valentina Avatar
    Valentina

    Very good write-up. I absolutely appreciate this website.

    Thanks!

  22. Brooke Avatar
    Brooke

    Excellent, what a website it is! This website gives
    valuable data to us, keep it up.

Leave a reply to Adityanath Dewoolkar Cancel reply

Advertisements
Blog Stats

560,806 hits

Advertisements
Advertisements