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
Categories: ORA errors
Really helpful article!
Thanks Adityanath 🙂
Welcm Mayur!!
Really a very helful article.. I got stuck in same problem.. Your solution fixed it.. THanks for sharing..
Hey Raj Mohan,
Thanks for visiting and appreciate your feedback. 🙂
I had this same issue and your blog entry guided me to fix it. Thanks.
Thanks for visiting and appreciate your feedback. 🙂
Thanks, it works for me 🙂
Thanks for visiting and appreciate your feedback. 🙂
Wow… Adit… this is one of the blogs that solved my problem straight away. Thanks and keep n=blogging.
Thanks for visiting and appreciate your feedback. 🙂
thanks a lot….
Thanks for visiting and appreciate your feedback. 🙂
Thank you.. Was very helpful
Thanks for visiting and appreciate your feedback. 🙂
Thanks a lot and happy new year
Thanks for visiting and appreciate your feedback. 🙂 & happy new year 🙂
Thanks! You saved me some time!
Thanks for visiting and appreciate your feedback. 🙂
Wow because this is great work! Congrats and keep it up
Thanks for visiting and appreciate your feedback.:-)
Regards,
Adi
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!
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
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.
Thanks for visiting and appreciate your feedback.:-)
Regards,
Adi
thanks you.
Regards,
Naga
Hello There,
Thanks for visiting and appreciate your feedback.:-)
Regards,
Adi
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!
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!
Hello There,
Thanks for visiting and appreciate your feedback.:-)
Regards,
Adi
Way to go!
Don’t ever change a thing about this site. I enjoy it so much.
Hello There,
Thanks for visiting and appreciate your feedback.:-)
Regards,
Adi
Keep up the fantastic work. I can wait to read the next article.
Hello There,
Thanks for visiting and appreciate your feedback.:-)
Regards,
Adi
Like!! I blog frequently and I really thank you for your content. The article has truly peaked my interest.
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.
Very good write-up. I absolutely appreciate this website.
Thanks!
Excellent, what a website it is! This website gives
valuable data to us, keep it up.