Today one of our developer accidentally dropped some of application base tables from development instance instead of uat environment. So there was a request re-clone development database from one month old backup which was used for cloning earlier.

Simple!! everything was in proper place including datafile backups, archivelog backups, controlfile backups & cloning scripts too 🙂

I was using following clause for point in time recovery:

SET UNTIL TIME “to_date(’22-07-2014 02:10:00′,’DD-MM-YYYY HH24:MI:SS’)”;

While restoring backup I got following error:

RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time 😦

As error suggests until time was definitely before last resetlogs which was done on 24th July. But from where its getting that information , as I restored controlfile which was definitely before last resetlog.

So definitely database incarnation is the issue:


RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 FIN1 3024510604 PARENT 2704716842 07-JUL-14
2 2 FIN1 3024510604 PARENT 2704717919 07-JUL-14
3 3 FIN1 3024510604 CURRENT 6007342103534 24-JUL-14

So we need to set earlier incarnation in my case ‘2’ to proceed with the restore 🙂


RMAN> reset database to incarnation 2;
database reset to incarnation 2
RMAN> list incarnation;
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1 1 FIN1 3024510604 PARENT 2704716842 07-JUL-14
2 2 FIN1 3024510604 CURRENT 2704717919 07-JUL-14
3 3 FIN1 3024510604 ORPHAN 6007342103534 24-JUL-14

So here restore proceeded without any issues.

Hope so u will find this post very useful 🙂

Cheers

Regards,

Adityanath

Advertisements

14 responses to “RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time”

  1. Qazi Avatar
    Qazi

    It helped thanks a lot.

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  2. Lorette Haga Avatar
    Lorette Haga

    I visited a lot of website but I conceive this one has something extra in it in it

    1. Dave Zeidman Avatar

      bookmarked!!, I like your site!

  3. Leonardo Lauriano Avatar
    Leonardo Lauriano

    some really interesting info , well written and broadly speaking user genial.

  4. google Avatar
    google

    Hi there, I enjoy reading through your article. I like to write a little comment
    to support you.

  5. Matilda Avatar
    Matilda

    Appreciating the hard work you put into your blog and detailed information you present.
    It’s awesome to come across a blog every once in a while that isn’t the same old rehashed
    information. Fantastic read! I’ve bookmarked your
    site and I’m adding your RSS feeds to my Google account.

  6. Aaron Osheroff Avatar
    Aaron Osheroff

    Thank you so much for this! This helped me out. I had done a restore (incomplete recover) on a DB, and then needed to do it again. I got the error, and found this blog, and it solved the probem. Thank you!
    Aaron

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Appreciate the feedback!!!

      Regards,
      Adi

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

    Like!! Thank you for publishing this awesome article.

  8.  Avatar
    Anonymous

    Hi there mates, its enormous post about educationand fully explained, keep it up all the time.

    1. Oren Pudenz Avatar

      Greetings! Very helpful advice in this particular post! It’s the little changes which will make the largest changes. Many thanks for sharing!

  9. Viola Avatar
    Viola

    Hello there! Do you use Twitter? I’d like to follow
    you if that would be ok. I’m undoubtedly enjoying your blog
    and look forward to new posts.

  10.  Avatar
    Anonymous

    I appreciate you sharing this post.Really thank you! Awesome.

Leave a reply to Aaron Osheroff Cancel reply

Advertisements
Blog Stats

560,124 hits

Advertisements
Advertisements