DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Restore script

Threaded View

  1. #2
    Join Date
    Nov 2002
    Location
    New Delhi, INDIA
    Posts
    1,796
    for restoring the tablespace

    Code:
    run {
    allocate channel c1 type 'SBT_TAPE';
    recover tablespace "XOVOLT01X";
    release channel c1;
    }
    or

    Code:
    run {
    allocate channel c1 type 'SBT_TAPE';
    restore (datafile number);
    recover tablespace "XOVOLT01X";
    release channel c1;
    }
    well if you have a full database backup all you need to do is

    Code:
    run {
    allocate channel c1 type 'SBT_TAPE';
    recover databse;
    release channel c1;
    }
    RMAN will see what all you need to recover and all your headach is gone :-) (of course if you want to have full control then you can use the other options as well)


    in the event of a failure do I have to specify each individual one.
    depends on how many you loose together...
    what you can do is

    Code:
    run {
    allocate channel c1 type 'SBT_TAPE';
    recover tablespace "XOVOLT01X";
    recover tablespace "XOVOLT02X";
    recover tablespace "XOVOLT03X";
    recover tablespace "XOVOLT04X";
    release channel c1;
    }

    HTH
    Last edited by adewri; 02-25-2003 at 11:20 AM.
    Amar
    "There is a difference between knowing the path and walking the path."

    Amar's Blog  Get Firefox!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width