Yesterday I was recreating DR database with production database backup, when restore database command failed with error: ORA-19693


RMAN> restore database;
Starting restore at 05-AUG-15
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to G:\OPDB\REPOSITORY\DATABASE112_SE_X64\ORADATA\OPDB\SYSTEM01.DBF
channel ORA_DISK_1: restoring datafile 00015 to G:\OPDB\REPOSITORY\DATABASE112_SE_X64\ORADATA\OPDB\IFLOWDB_3.ORA
channel ORA_DISK_1: restoring datafile 00017 to G:\OPDB\REPOSITORY\DATABASE112_SE_X64\ORADATA\OPDB\IFLOWDB_2.ORA
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/05/2015 17:19:34
ORA-19693: backup piece G:\BACKUP\RMAN\OPDB_DBF_7829_1_886892410 already included

Before proceeding with restore, I had cataloged all backuppieces that have been copied using command : catalog start with ‘G:\BACKUP\RMAN\’;

After searching on metalink and google I got different solutions, none of which worked for me.

Some suggested to catalog backuppieces using “catalog start with” (which I had already done), while other suggested to uncatalog backuppiece.

So I tried following command to uncatlog one of the backuppiece:


RMAN> change backuppiece 'G:\BACKUP\RMAN\OPDB_DBF_7829_1_886892410' uncatalog;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of uncatalog command at 08/05/2015 17:19:52
RMAN-20261: ambiguous backup piece handle
RMAN-06092: error while looking up backup piece

After concentrating on error “RMAN-06092: error while looking up backup piece”, as per my understanding though “catalog start with” command was successful haven’t cataloged any of the backuppieces.

So instead of command “catalog start with”, I preferred cataloging individual backuppieces using following command:


RMAN> catalog backuppiece 'G:\BACKUP\RMAN\OPDB_DBF_7829_1_886892410';
cataloged backup piece
backup piece handle=G:\BACKUP\RMAN\OPDB_DBF_7829_1_886892410 RECID=7851 STAMP=88
6958466
And so on.....

After cataloging all backuppieces individually, I was able to restore database without any issues.

Hope so u will find this post very useful 🙂

Cheers

Regards,

Adityanath

Advertisements

32 responses to “RMAN restore database fails with ORA-19693: backup piece XXX already included.”

  1. jodigladys@freenet.de Avatar

    Hi there very coօl Ьlog!! Man .. Excellent ..
    Amazing .. I will bookmark yoսr sіte and take the feeds also?

    I am happy to find so many useful information here in the post, we’d likе
    work out more techniԛues in this regard, thank you for sharіng.
    . . . . .

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  2. murielfarrelly Avatar
    murielfarrelly

    If some ߋne desires expеrt view on the topic of blogging afterward i
    rеcommend him/her to visit this web site, Keep up the pleаsant work.

  3. leliahuynh@fastmail.co.uk Avatar
    leliahuynh@fastmail.co.uk

    Spot on with tɦis write-uρ, I honestly think this website needs fɑr more attentіon. I’ll probably be returning to read more, thanks for the info!

  4. kelliegrullon Avatar
    kelliegrullon

    Hello there, You’ve done an excellent job. I’ll definitely digg it and personally recommend to my friends.
    I’m sure they will be benefited from this web site.

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  5. chesterfidler@gmx.de Avatar
    chesterfidler@gmx.de

    Hi to all, it’s genuinely a fastidious for me to visit this web
    site, it contains useful Information.

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  6. melvina.waldrop@mailsent.net Avatar
    melvina.waldrop@mailsent.net

    I’m amazed, I have to admit. Rarely do I encounter a blog that’s both equally educative and
    engaging, and without a doubt, you’ve hit the nail on the head.
    The problem is an issue that too few people are
    speaking intelligently about. Now i’m very happy I
    found this during my search for something relating to this.

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback. 🙂

  7. Alessandro Grillo (Brazil) Avatar
    Alessandro Grillo (Brazil)

    Man, thanks a lot you just saved my life!!!!!! I was running round and round with the same issue and your way out worked just fine for me! THanks a lot!!!!!

    1. Adityanath Dewoolkar Avatar

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  8. Abhishek Khanna Avatar
    Abhishek Khanna

    HI Man,

    Excellent suggestion. It worked perfect for me.

    1. Adityanath Dewoolkar Avatar

      Hello Abhishek,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  9. TieraTDyke Avatar
    TieraTDyke

    Appreciation to my dad who informed me concerning this weblog, this webpage
    is actually awesome.

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  10. Mayur Deshmukh Avatar
    Mayur Deshmukh

    Thanks a lott Adi!

    That worked 🙂

    1. Adityanath Dewoolkar Avatar

      Hello Mayur,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  11. Ramachandra Heroorkar Avatar
    Ramachandra Heroorkar

    Thanks A lot !!

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  12. Pedro Ximenes Avatar
    Pedro Ximenes

    Thank you! This post help me so much!!!

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  13. Vasant Avatar
    Vasant

    Hi Aditya, Thank you . This was very helpful for me to move forward.

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  14. minecraft Avatar
    minecraft

    It’s really a cool and useful piece of info.

    I am satisfied that you shared this useful information with us.
    Please keep us informed like this. Thank you for sharing.

  15. Muhammad Syafie Avatar
    Muhammad Syafie

    thaks bro it start restoring now

    1. Adityanath Dewoolkar Avatar

      Hello There,

      Thanks for visiting and appreciate your feedback.:-)

      Regards,
      Adi

  16. http://tinyurl.com/yy7zwj5v Avatar
    http://tinyurl.com/yy7zwj5v

    Hello everyone, it’s my first pay a quick visit at
    this web page, and article is in fact fruitful in support of me, keep up posting these types of articles or
    reviews.

  17. minecraft Avatar
    minecraft

    These are actually fantastic ideas in on the topic
    of blogging. You have touched some pleasant points
    here. Any way keep up wrinting.

  18. minecraft Avatar
    minecraft

    Remarkable! Its really remarkable piece of
    writing, I have got much clear idea regarding from this paragraph.

  19. fischerfelipe (@fischerfelipe1) Avatar

    Thank you very much! Still a problem… has just made me able to restore my database.

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

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

Leave a reply to Pedro Ximenes Cancel reply

Advertisements
Blog Stats

559,737 hits

Advertisements
Advertisements