Schedule the daily backup from Monday to Saturday?

Dear all,
I am the first time to scheduling the daily backup, I have following questions:
1) My daily backup scripts in what format? for example: in sh format
Run
     CONFIGURE CONTROLFILE AUTOBACKUP ON;
     CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
     allocate channel ch1 type disk format '/u02/db/backup/RMAN/backup_%d_%t_%s_%p_%U.bck';
     backup incremental level 1 cumulative database plus archivelog delete all input;
     delete noprompt obsolete;
     delete noprompt archivelog all backed up 2 times to disk;
     backup current controlfile;
     backup spfile;
     release channel ch1;
2) I am not familiar with to using schedule job, I know following structure.
Minute hour [Day of Month] [Month] [Day of Week]
Minute (0)
Hour (24)
Day of month (??)
Month (every month)
Day of week (0-6) 0 = Sunday, 1 = Monday, ... or Sun, Mon, etc)
Command to execute (how to execute the command)
Best Regards,
Amy

Hi,
Firstly, if you are using recovery catalog, then create rman scripts and In case you dont have recobery catalog, then add the backup script in the .sh file .
Then create .sh file and not to forget add environment variable for oracle in that .sh file.
Then schedule that file with cron and format you know for the cron.
Make sure cron is started on the machine.
Example for .sh file is
export ORACLE_SID=<ORACLE_SID>
export path=<ORACLE_PATH>
rman<<EOF
connect target sys/<password
run{
body
but the best way is to go for rman backup scripts using recobery catalog
THanks,
Navneet

Similar Messages

  • Require backup script which deletes the daily backups after weekly backup

    Hi,
    I am new to Oracle administration. I require a backup script which will delete the daily backups (incremental) after weekly backup is taken (full database backup).
    Currently I use Oracle 10g for one of my production server.
    My backup strategy is given below.
    I would like to take full database backup weekly(online). To be precise, on Saturday.
    I need to have daily incremental backup and they should get deleted on Saturday after the weekly full database backup is taken.
    Also I would like to keep 4 weeks full backups. After that one by one we need to delete the backup.
    For example, if I have 4 weeks fullbackup of February, after taking full backup for first week of March, the backup of first week of February should get deleted.
    Kindly help with your suggestions.
    Thanks & Regards,
    Rafnas

    Hi,
    Thank you for pointing to the blog. It was very much useful.
    I was testing the backup strategy using your script. It worked fine for first set of daily backups.
    After weekly backup is taken, the daily backup script fails for taking the backup from next day onwards.
    It gives the following error stack.
    Starting backup at 05-MAR-09
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 03/05/2009 01:47:55
    ORA-01455: converting column overflows integer datatype
    Could you please let me know why integer datatype comes into picture while taking backup?
    Please advice.
    Thanks & Regards,
    Rafnas
    Edited by: user10698483 on Mar 5, 2009 3:38 AM

  • HT4847 I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do.

    I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do                             

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • HT5927 im trying to update my iphone 4 and in order to complete the restore backup from itunes i need to turn off the find my iphone on the iphone but i cant get passed the restore backup stage - what should i do?

    I'm trying to update my iphone 4 and in order to compelte the restore backup from itunes i need to turn off the 'find my iphone' but i cant get passed the restore backup stage - what should i do?

    Hi beckiewinter!
    I have some information for you that may help you understand your iPhone's Activation Lock more thoroughly:
    iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    So in order to update your iPhone, you may need to turn off Find My iPhone. This can be done through the iCloud settings, and more information on those settings can be found right here:
    iCloud - iPhone User Guide
    http://help.apple.com/iphone/7/#/iph3c79652c
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Hi - My ipad 2 automatically backed up this morning. After which I stupidly updated it to ios7.1. Can I erase the ipad and redownload the last backup from this morning from icloud?

    Hi - My ipad 2 automatically backed up this morning. After which I stupidly updated it to ios7.1. Can I erase the ipad and redownload the last backup from this morning from icloud?

    No, there is no way to down level the iOS .

  • What happens if I click "delete backup" in order to delete the iCloud backups from my sisters phone off my device. Will it delete everything on her phone?

    So a while ago when I got my phone I started a new Apple ID account/ iCloud.. Then when my sister got a new iphone I gave her my id to use too. In settings-general-usage it says that my storage is almost full. I then click on manage storage and it shows my phone and my sisters phone and how many gb or whatever. Also it says "last backup failed" and other stuff that's Irrelevant. Now when I click on my sisters phone I have an option to "delete backup" MY QUESTION is if I click the delete backup button will it just delete the iCloud backup off my phone OR will it totally delete everything involving the backup off my sisters phone forever??? Please help! Thank you so much!!!!!

    Deleting a backup deletes the backup only from the iCloud storage, not anything on the iPhone.
    The iPhone's iCloud backup will be updated at some point - automatically when the iPhone is connected to an available wi-fi network while connected to a power source unless the iCloud backup is turned off on the iPhone.

  • How do i delete the previous backups from HP surestore PD5000z?

    I have been using the HP PD5000z to backup my main hard drive for a couple of years.
    I now receive the error that the back up is too large and need to either reduce the files being backed up or delete files from the PD5000z.
    How do i know which files to delete from the previous back ups on the PD5000z?
    The amount of space used on the main drive is 476GB versus a back up drive size of 500GB, so there is enough total space.  The previous backups are taking up too much space?
    Thanks
    HP pav , windows 7 professional

    Hello flyinghull,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you are having issues with your HP PD5000z giving you the error "There is not enough space on your HP SureStore drive. You need to reduce the projected size or remove existing files from your HP SureStore drive." To deal with this I am providing you with the HP Support document: Downloading, Installing, and Using HP SureStore Software which should give you the guidance you require to resolve this issue.
    I hope I have answered your question to your satisfaction. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • How to restore file system of the previous backup from OSB using webtool?

    Dear all,
    I have some problem regarding to the file system restoration.
    For example, I have backed up some files yesterday and today those files have been made change.
    So tomorrow I am planning to restore the files from the yesterday backup (the original files before made changes) to other host for testing the data.
    Is it possible to do that, since when i restore i can see only the latest ones and search options during restoration are not working well (as date, date range,.....) ?
    Your reply to me is very important.
    Thanks and regards,
    Rasmey

    There is no recovery partition on drives which haven't had 10.7 or 10.8 installed. You need to use a Mac OS X install DVD to restore the backup.
    (82545)

  • How would I move the iphone backup from a mac to a pc and do a full restore so I don't lose my settings?

    Hello,
    I am moving from a mac to pc (i know, not many people do this, but it's for work) and I would like to transfer my itunes library with all of the iphone backups, playlist, playcounts, etc. over.  Can I restore my iphone backups from the mac on the pc?  How would I do that?  How would I make sure all of my metedata for itunes is transferred properly as well?
    Thanks much,
    Colin Lancaster

    It shlould. here is a link to a comment from someone who seems to know a bit more about it than me ;-) https://discussions.apple.com/message/15674328#15674328

  • I accidentally restored the wrong backup (from a year ago as opposed to a day ago) how do I restore the correct one?

    So I had my macbook fixed and when I restored from my time machine there were two options and I accidentally clicked the wrong one which restored it to my settings from a year ago. I know I have the backup from a few days ago on my external hard drive but when I go into time machine and click restore it says there is not enough free space available. I think that is because it is trying to restore the new backup on top of the old settings. Is there a way to erase my computer and restore the new backup? I know you can do that with the CD but I don't have it and I'd prefer not to have to go back all the way to the apple store to get them to do it there. Any help would be appreciated!

    Mac OS X 10.6 Help: Recovering your entire system

  • Daily backup from plannning area

    Hi,
    Iam trying to take the backup from planning area to ODS,
    Iam getting all of the records correctly,but last month data is not getting correctly....
    Kindly help me..
    Regards,
    Shiva

    Hi,
    Sorry about that,
    Iam taking the backup from PA to ODS ,then ods to cube.
    In the ods update rules keyfigures->overwrite.
    I have all history data in my PA and i have taken the backup of that PA to ods and all 17 months results are same as in the PA,but last months data is not same .Its different in ods and PA.
    But when iam taking teh same backup from PA to Cube directly ,iam getting all months data correctly.

  • Can I use the timemachine backup from my desktop on my laptop

    ok - I have installed Maverick on my laptop and am not happy with it
    I  transfer files to my laptop from my desktop when I travel - (including email - by copying the Mail folder from desktop to laptop)
    Given that Mavericks has deleted all the emails from my laptop (including important ones I didn't have a copy of grrrr) I don't think thsi simple way of copying will work anymore
    I now just want my Latop to be a mirror of my desktop (with less files as the hard drive on the laptop is smaller)
    so - can I do a Comand R restart on the laptop and go ahead and back up from the desktops timemachine backup (which is running osx 10.8.5)

    Of course. If you have got a Mid 2010 or newer MacBook Pro, I recommend you to start up in Internet Recovery by holding down Command, Option and R keys while your computer is starting. Then, choose the option to restore a Time Machine backup and follow its steps.
    If you have got an older MacBook, you shouldn't have any problem by starting with Command and R keys. I tell you this because Internet Recovery includes the OS X Lion or Mountain Lion's Recovery image instead of Recovery HD, which includes the OS X Mavericks' Recovery image. In both cases, your hard drive will be formatted automatically before restoring your Time Machine backup

  • I have an iphone 4 and iphone 5 and i set up the iphone 5 using the icloud backup from the iphone 4 and i forgot to disconnect the icloud before i deleted the contacts on the iphone 4 which then deleted them from the iphone 5 is there anyway of restoring

    I have an iphone 4 and iphone 5 and i have set up the 5 with a backup from the icloud. But i didn't disconnect the old phone (iphone 4) form the icloud and deleted some contacts which also deleted them from the 5. I have restored them from a previous back up but after i did that i deleted the iphone 4 from the icloud which also deleted the conatcts from the 5 again as i didnt back up. Is there anyway of restoring the conatcts now?

    If you still have the same back up you can restore from back up again. Unfortunately you will have to do something fast and unusual in the process of restore. As soon as you have access to your phone - you need to go to settings - icloud and turn off your contacts sync. You need to do that fast enough so your icloud will not have time to sync "0" contacts back to the phone. That way when your restore is completed you get your contacts. You will have less then 1 minute to complete what I told you. If the contacts are gone anyway, either you were not fast enough, or your back up was overwritten already.

  • HT4623 can't use the iclould backup from i pad 2 to i pad air

    i have i pad 2 and i cant use the icloud backup to the new ipad air what should i do

    Why not... What happens when you try... any Error messages or Alerts ?
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • Hi. Regarding iphoto and creating a calendar, I want to change the start day from monday to sunday. Can this be done?

    Hi. I want to create some calenders in iphoto. But I want the weeks to start on a Sunday as opposed to the default Monday currently operating  in my computer in both iCal and iphoto.  Can this be changed??  If so, how?  Thanks for looking.  Currently running Snow Leopard on a 24 imac.  Mark

    Hey baby birch
    You are able to sync purchased content from your iDevice to a new computer as long as the comptuer is authorized
    To authorize the computer follow these steps
    At the topi of the screen next to File- Edit -View, click store then Authorize this computer.
    Enter in your appleID email address and password and click authorize
    **If you do not see the File Edit View option, At the very top left corner you should see a little square click the square and click show menu bar.
    Now that your computer is authorized click the file menu button, then click Devices, then go to your iPhones name and then click Transfer purchases this will allow you to transfer all of your purchased content to the computer
    Now if you want to transfer your non purchased content to the computer you can do so if you have wif and the previous computer on the same network as the new computer with home sharing
    Understaning home sharing - http://support.apple.com/kb/HT3819
    Setting up Home sharing - http://support.apple.com/kb/HT4620

Maybe you are looking for

  • How do I update to Pages 5.0 is I got Pages through the Mac Box Set they used to have?

    I do not want to buy iWork or iLife just because the new update came out. How do I update to Pages 5.0 is I got it through Apple's old Box Set deal?

  • Bank Details data IT0009

    Dear all, Who configures the bank key in IT0009? HR people or FICO? If it's our work, dindly let me know the process. Otherwise I can ask FI people. Regards ET

  • Can't see files in folders

    I have one user who cannot see any files in folders on Sharepoint. She can see the folders themselves, and any file not in a folder, but gets a 'page cannot be displayed' when she clicks on any folder. We have granted her full access but still the pr

  • Moving an entire selection in the timeline, keeping selection in tact?

    Hello, is it possible to make a selection and that lock the length of the selection in place while you move it to another location on the timeline? Or if not, is it possible to set a marker range and lock that in place then drag the marker range to a

  • UIX BC4J Java

    How could I transfer the information from UIX site in my Java class and work it on. My Scenario: Each employee works in a departmebt. Now I want to change the department of a employee. I show all departments,that I have and I select the current one,