Restoring Incremental Backup using Netbackup

Hi,
Need your help. We have a backup of our Oracle 10g Database(one full backup and one incremental backup). The full backup (level0) is done by Netbackup and the incremental backup is done by local rman.
Now we want to restore the database. I have modified the script of Netbackup to restore the controlfile of incremental backup and allocate 2 channels for tape and disk. Our incremental backup resides in disk. Is the script we used below correct?
RUN {
ALLOCATE CHANNEL ch00 TYPE DISK;
send 'NB_ORA_CLIENT=prod01, NB_ORA_SERV=NAS';
RESTORE CONTROLFILE FROM '/rman/backup/incremental/ctl_PROD_c-86955024-20101221-
03';
ALTER DATABASE MOUNT;
RELEASE CHANNEL ch00;
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE DISK;
send 'NB_ORA_CLIENT=prod01, NB_ORA_SERV=NAS';
#SET UNTIL SEQUENCE 138730 thread 1;
RESTORE DATABASE;
RECOVER DATABASE;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
thanks,
Benjo

Hi benjo,
You cannot allocate two types of channels at the same time so you should try a three step approach.
(Every time create a new connection to the target.)
Restore controlfile
No need for:
send 'NB_ORA_CLIENT=prod01, NB_ORA_SERV=NAS';exit
Restore database from tape.
remove from your second run block
ALLOCATE CHANNEL ch01 TYPE DISK;
RECOVER DATABASE;
RELEASE CHANNEL ch01;exit
Than create a recover command with disk channels
basicly remove the tape channel and restore commands from your second run block and add
alter database open resetlogs;Regards,
Tycho

Similar Messages

  • Incremental Backup using "imsbackup"

    Dear every body,
    I have a trouble and need the help from you, please help me in this case if you can, thanks.
    I want to backup incrementally my mailboxes with "imsbackup" command. I have tested following below example but not succeeded:
    1. I send/receive email between 2 users in my domain at 08:00AM.
    2. I performed FULL backup the whole message store using imsbackup
    3. At 09:00AM I send/receive another email between 2 users in my domain
    4. I performed INCREMENTAL backup the whole message store using "imsbackup -d 20091217:083000....." but my backup file including the messages that I sent before 08:30AM
    I have done this several times and get the same result.
    Please kindly help me in this case, how can I use imsbackup to incrementally backup my mailboxes.
    Any help and advices from you is appreciated.
    Thanks all of you so much.
    huynq

    Hi Shane,
    Thanks so much for your response.
    The version of Messaging Server I am using is:
    {color:#ff0000}bash-3.00# ./imsimta version
    Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008){color}
    For your question:
    Does this problem occur if you incrementally back up a single mailbox e.g.
    ./imsbackup -d 20091217:083000 ... user/<uid>/
    My Answer is:
    I have not performed above step yet because I want to backup mailboxes of all users.
    For your question:
    Is the time/timezone set correctly on the server?
    My answer is:
    Yes, of courses. I already set time/timezone correctly. I also checked the time stamp of newly created email in message store in server, their date are correct.
    For your question:
    Are you in daylight savings time i.e. you shift the imsbackup incremental time back-forward an hour and get the correct result?
    My answer is:
    I already tried many times but got the same result. For example, At{color:#ff0000} 9AM Dec 16th 2009{color} I sent an email. At{color:#ff0000} 9AM one day later (Dec 17th 2009){color} I sent another email. I performed incremental backup using{color:#ff0000} "./imsbackup -d 20091216:120000 -f- / > /email_backup/incremental.120000".{color}
    The backup file I got contained the email I sent at 9AM Dec 16th.
    Any advice on this ?
    Anyway, thanks so much for your help. I am awaiting your response.
    huynq.

  • Restoring incremental backup in QAS_ECC6_Ora_10G_Unix

    Dear All,
    We have restored PRD data in QAS about 4 months back upto 2009. Now we wish to restore the production data for the months of Jan to Apri;2010 in QAS. We can not afford restoring PRD whole data in QAS as it is more than 1.5 TB and it will take at least 3 to 4 days. We have the incremental databackup for these months with us (RMAN backup). Even we do have archive logs for this period.
    Is it possible to apply archive logs in QAS (database open state), I believe we can not do this once we open the database.
    How to restore incremental backup in QAS?
    Thanks
    S@pm@n

    Hi,
    Is it possible to apply archive logs in QAS (database open state), I believe we can not do this once we open the database.
    Yes , you are right , you can not apply redo logs once database is open.
    For restoring incremental backup also you need 0 level database restore first(You can not restore incremental backup of PRD directly on QAS)  , so every case you need to restore almost 1.5TB of data.
    Regards,

  • Restore incremental backup with rman

    Dear Friends
    can u tell me how to restore an incremental backup with rman? i backup my rman with statement below :
    1. backup full database format '/oracle/PRD/sapbackup/%U';
    the results was :
    -rw-r----- 1 oraprd dba 19006996480 Jun 10 12:08 0ojiit4n_1_1
    -rw-r----- 1 oraprd dba 12746752 Jun 10 12:08 0pjiiu6b_1_1
    2. after that i do incremental backup :
    backup incremental level 1 cumulative database format '/oracle/PRD/sapbackup/%U';
    the results was :
    -rw-r----- 1 oraprd dba 173400064 Jun 10 13:44 0ujij2k0_1_1
    -rw-r----- 1 oraprd dba 12746752 Jun 10 13:44 0vjij3qc_1_1
    what statement i need to run for restore the incremental backup?

    run{
    ALLOCATE CHANNEL c1 DEVICE TYPE DISK;
    RESTORE DATABASE;
    RECOVER DATABASE;
    The above command will restore your database from the last good RMAN backup. Your last backup is incremental level backup as you posted. The above command will fullfill your requirements

  • I cannot restore my backups using Time Machine - please help!

    My iMac has been returned from repair and as part of this was reset to its factory settings, depeting everything.   I took backups using Time Machine to an external hard drive before it went off for repair, and after it came back I restored the data - so I thought.  It seemed to work for a long time, but on completion no files had been restored, and all the backups from before the iMac went for repair are now inaccessible in Time Machine.  However as far as I can see they are still on the hard drive however.
    The iMac has since been backing up the now empty machine to this hard drive, over-writing the data, but I have now switched Time Machine off.
    How can I restore my back-ups and recover my data please?
    John Wood

    'depeting' is a typo for 'deleting'.  I don't seem to be able to edit this out above

  • TimeMachine: Restore incremental backup

    When restoring from a TimeMachine backup to a new hard disk, only "full backups", which are a bit outdated, are shown. Are the incremental backups restored after the "full backup" restore?

    bbonn wrote:
    I'm in the same situation, and to clarify: Time Machine does, in fact, keep full vs. incremental backups, confirmed by the AppleCare support manager I am working with on this problem.
    No.  There's a misunderstanding.
    Time Machine only makes a full backup once; all thereafter are incrementals, of what's new or changed.
    But because of the way they're all linked together, every backup is, in effect, a full one.  Seems odd, but see the tan box in How Time Machine works its Magic for an explanation.
    However, it sounds like you may have been bitten by a bug we recently discovered, and Apple either doesn't recognize yet or hasn't told the Support folks about.  Something (we don't know what yet), is telling Time Machine not to back up several top level system folders.  Without them, of course, those backups aren't complete, so don't appear on the selection window.  See #D10 in Time Machine - Troubleshooting for details.
    if so, you should be able to get most of your stuff back, at least everything from your home folder.  We can help with that if necessary.
    What's definitely confirmed is that any local-only snapshots are lost when the hard drive is lost, which begs the question: Why would Apple choose to do that in the first place when a perfectly-good external backup location is connected?
    Those are made on laptops only, whether the external is connected or not, so you'll have access to them if necessary.   Think of them as temporary, expendable Versions for files that don't have regualar Versions.  See Time Machine - Frequently Asked Question #30 for details.

  • Restore incremental backups to new server

    Hello!
    I am trying to create my database on a new server using rman incremental cold backups.
    I have already restored my level 0 database, but i am not able to restore the level 1 backup because rman doesn't find it on the new server. I have transported the level 0 and level 1 backup in tar format from the old server to the new one. Also I have not executed recover copy of database with tag 'xxxx' after level 1 backup on the source server , because i want to transport only the incremental files. Can sb help me on this issue?
    Thanks in advance!

    Hi,
    Please follow the below process....
    1- Take Level 0 backup with archivelog from Primary machine.
    Note:- Auto Cotrolfile backup should be set in parameters setting of RMAN
    2- Ship this dackup to another machine(Directory Structure Should be same , If directory Strucuture is different then use set new name option while restore)
    3- STARTUP WITH NOMOUNT to second machine.
    4- connect rman
    5- RESTORE CONTROLFILE FROM AUTOBACKUP;(All backup files should be placed at same location as on primary server , if Location is different then use RESTORE CONTROLFILE FROM 'backup file'
    6- MOUNT THE DATABASE
    7- RESTORE DATABASE
    8 -RECOVER DATABASE
    After this go to primary machine do some updations and take INCREMENTAL LEVEL 1 BACKUP
    Move all files to New machine
    1-STARTUP NOMOUNT
    2- RESTORE CONTROLFILE FROM AUTOBACKUP;(All backup files should be placed at same location as on primary server , if Location is different then use RESTORE CONTROLFILE FROM 'backup file'
    Note:- This time controlfile should bw retored from New backup;
    3- MOUNT THE DATABASE;
    4- RECOVER DATABASE;( This time no need to restore database again).
    Hope this will help
    Thanks & Regards
    Rahul Sharma
    Database Administrator
    IndiaMART InterMESH Ltd.

  • Restore hot backup using RMAN?

    Hi,
    We are taking hotbackup using rman level0,leve1,level2. Now i want to restore level 0 first then level 1 and level 2.. how to restore like this
    Thanks in advance

    You don't have to explicitly restore each L0, L1 etc backup.
    When you specify a SET UNTIL, RMAN identifies the backups (starting with the latest L0 before the SET UNTIL) that are to be restored and attempts to restore them.
    If the backups were to disk and are no longer on disk (i.e. you have moved them to tape), you have to ensure that the backups are made available (by copying them back from tape to disk).
    You can use RESTORE DATABASE VALIDATE and RESTORE ARCHIVELOG VALIDATE to identify the backups that are required.
    See http://hemantoracledba.blogspot.com/2010/03/misinterpreting-restore-database.html
    Hemant K Chitale

  • Restoring from backup-used demo-do I have to buy to restore?

    I trashed the .sparseimage file from my home folder. and now of course I can't log in to that user. I've given up recovering it because it was encrypted with file vault and I didn't shut down right away. kept trying things. problem is the file is still lurking because boomerang found it. consequently, I haven't been able to turn off file vault because I don't have enough space. I want to turn off file vault, delete the user and then restore from a backup I have on an external drive. Do I have to buy the program I used to create the backup (memeo life agent) or is there another way to get those files from the external drive loaded on to my iMac's hard drive. should I reformat the drive first?

    I was advised by an Apple tech to do an erase and install. After that, I tried just dragging my files from the backup on the external drive but even as careful as I was to include everything, my applications have to be reinstalled from discs. I contacted Memeo this morning to see if I can restore from a backup created by the demo. I'll let you know when I have an answer. while I was moving files and doing software updates, my machine crashed twice. since my apple care is running out next week, I'm concerned. I talked to a tech last night who said I only have a 90-day warranty on the logic board Apple replace a couple of months ago. I'm thinking of taking it in this weekend to make sure everything is ok before apple care runs out.

  • [BPC 7.0 SP3] Issue to restore a backup using the server manager

    Hello,
    I'm faced with a contraignant issue. I'm trying to restore a previous back up done with the server manager but I get the following error message at the "fileDB" step :
    "Cannot find the Appset or cannot copy files" with a red cross "FileDB : Fail
    I checked the fileDB folder, no files in use by another process.
    I also tried to run a full optimize before running a new back-up, but the restore still failled.
    Has someone already been faced with this problem ?
    Kind regards,
    Lionel

    Thank you Petar for this reply.
    In the file DB I have just a temp file in each subfolder related to the applications, so yes it empty.
    So, I understand that you suggest to use the FileDB of the apshell in place of the second's, right ?
    On the other hand, I'm not sure to understand well when you talk about "blank copy". Do you mean I just have to create an empty folder and make a zip archive ?
    If so, do I have to create the subfolders and the temp files before making the archive ?
    Besides, what is the usefulness of these temp files located in each subfolders ?
    Thank you again for your very useful help.
    Lionel

  • HT1766 Restore  iCloud backup using IOS7.1.1

    I just receiver my new iPhone 5s and warnt to restere the content from my old iPhone 5 which i just udgravede to IOS 7.1.1 af we dat sagt.
    After udgravninger the new phonenumber to 7.1.1 from 7.0.4 and resetting it to start ALL over Alain, i cannot log in to the iCloud server what ever i do......... Whats wrong?

    A restore will automatically install the current version of iOS, so if you restore an iPhone with iOS 7.0.x, it will be upgraded to iOS 7.1 and the backup will then be copied over. Your new iPhone 5S, by the way, will come with iOS 7.1 unless it's old stock.
    Regards.

  • Complete (Non-incremental) Backup Using Time Machine

    When the Time Machine icon in the top bar of the desktop is clicked on and Back Up Now selected, does a complete backup starting from scratch result, or does Time Machine perform an incremental back up?
    JohnnyS

    It performs a backup as usually (minus the schedule). If it is the first backup, it is complete, otherwise the backup is incremental.

  • Incremental backups using Superduper

    Åm using paid Superduper software for backup. After I backup all files yesterday to my external LaÇie HD and look at the files on LaÇie HD today, I see files which were created only today. How is this possible and how do I know what files are really stored on external LaCie HD?
    iMac 20" monitor-computer   Mac OS X (10.4.8)  

    Hi cstonage, Welcome to Apple's Users Help Users Forums.
    First, read the help file. It is possible your settings were not for a full smart backup.
    A telephone number should be on the invoice or where the previous post sent you. They are well known for good service. You WILL get it figured out.

  • How to restore using increment backup after full backup restore in RMAN?

    Hi All,
    We have a files of full backup of database after turning on the Archive log.
    And after that, daily incremental backup is taken.
    Now, i want to restore the the database into a new machine using both files of full and incremental backups. Can anybody give me script for restore of full backup and after that restore of incremental backup?
    Thanks,
    Praveen.

    Praveen,
    >>
    In my case, i have 2 sets of backups. One is full backup and other is incremental backup. In order to keep the restored database upto date, i need to restore the full backup and then restore incremental backup. Now, i got any idea how to restore using full backup. My doubt is how to update the restored database with incremental backup also?
    >>
    Restore always looks for level 0 backup, not the incremental backups.
    Incremental backups comes in picture during recovery.
    During Recovery, Oracle looks for incremental backups, if exists, it will do the recovery with the incremental backups, if no incremental backups available, then, it will look for archived logs.
    Therefore, incremental backups never used during restore, they are used only during the recovery.
    Jaffar

  • How to flush apps from iPad2 using a "Restore from backup"

    When I receive an iPad back from loan (library environment) it frequently has additional apps loaded by the borrower, over and above the small set of apps that we provide when the iPad is checked out.
    If we reset the iPad (Settings/General/Reset/Erase All Content and Settings) and then restore from a canonical backup, the iPad is rendered "fresh" with no evidence of the previous borrower and ONLY the small set of apps that we provide.
    However,
    If we simply restore from the canonical backup, without the reset, the evidence of previous use is limited to just the additional apps that the previous borrower installed. In effect, the iPad contains the union of our standard set and the previous borrower's additions. All the data, media and settings (even defaults such as iCloud and Store IDs) are removed. The iPad is "fresh" except for the additional app or apps.
    The simple restore from backup is much faster than the reset+restore and would be preferred.
    Manual inspection and removal of borrower-installed apps is too time consuming.
    Looking for a procedure that would force the app list down to only the one in the backup...
    Any comments?

    => ex_spy_guy
    Thank you for your prompt and thoughtful comment.
    The library is institutional but is not publicly funded. Our policies are not traditional, therefore.
    We wished to give the early patrons the ability to experiment with apps of their own discovery that they provision using credentials that they already have or that they create for the purpose. We have no record of their credentials and they do not have the Library's credentials. We never attempt nor allow the iPads to be sync'd on our duplication station. I agree with almost everything that you are saying but:
    - we loan a "fresh" iPad that has been restored from a tightly controlled (never sync'd) backup
    - we are returned an iPad that contains the initial app set + user settings, media, bookmarks, history etc. + one or more apps that the user has installed using his own credentials
    - the iPad is connected to iTunes (on Lion) with automatic sync disabled
    - we control-click on the iPad device name and restore from backup using the virgin backup mentioned above
    - the restore takes 10 seconds or less since no new apps nor media is added
    - the resulting iPad contains no user settings nor data but does still contain the app(s) that the user added
    - if the iPad is reset to remove ALL non-firmware apps and then is restored from the same image, the users apps do not appear, just as one would expect. This takes 10-12 minutes with the app set that we currently provide. We find this burdensome for frequent use but it's perhaps necessary...
    It surprises me that the users' apps survive a "Restore from Backup" process.
    Unlike a traditional disk image (OS X .dmg for example) the iPad restoral "image" (~Library/Application Support/MobileSync/Backup/) contains no binaries. It's just a manifest of XML files in a folder and describes what .ipa binaries should be loaded from the iTunes library. iTunes does not, apparently, exclude (delete the encryption key of) binaries that are not provisioned in the manifest. Everything else gets zeroed-out of the iPads but not the foreign .ipa files. Is this a feature or a bug?

Maybe you are looking for