Automated Backups using Intervals

Greetings!
I am seeking for an automated backup solution.
I want to schedule a backup task on the following pattern.
1.     On Every Monday:     Full (Level 0) bakup
2.     From Tuesday-Friday:     Incremental (Level 1 – Differential) Backup
3.     Saturday-Sunday:     No Backups
I want to make sure that all the above mentioned backup tasks must be taken automatically, through the scheduler.
I have tried to schedule it, but I don’t know how to use the rman script in the job-scheduler section in oracle.
Your advice and solution are solicited...
Best Regards
Zeeshan

You didn't mention your database version.
If your database is 10g you can use job scheduler.
Go to this link. It will be helpful.
http://www.oracle-base.com/articles/10g/Scheduler10g.php
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/scheduse.htm
Regards
Asif Kabir

Similar Messages

  • Automated backup using rsync!

    I'm running the following command:
    rsync -aE --delete /Users/MacBook/Desktop/me/ /Volumes/HD/ 2>>~/rsyncErr.txt || echo -n
    and its working fine, but my problem is the volume HD when i drag it to terminal sometimes it shows HD, sometimes it shows HD-1 and sometimes HD-2 or HD-3, im really confused .. cause if its hd-1 and its written in the command as hd-2 it will not take a backup.
    I went to the finder and then "go to folder" and i typed /Volumes/ i found the following HD and HD-1 and HD-2 and HD-3, but all of them are alias kind and it keeps on creating these aliases !
    I even tried to erase and format the client machine first two days it was one HD, two days after it shows another HD-1 , and so on .. is this problem related to the server itself!?
    note that HD is a folder located in the Xserve raid and its connected to my computer through the ethernet network!
    how can i avoid this problem!
    thanks

    Last login: Sat Mar 3 15:03:50 on ttyp1
    Welcome to Darwin!
    shahuds-power-mac-g5:~ Shahud$ sudo ls -al /volumes
    Password:
    total 24
    drwxrwxrwt 7 root admin 238 Mar 3 15:42 .
    drwxrwxr-t 30 root admin 1122 Feb 27 12:52 ..
    -rw-rw-rw- 1 Shahud admin 6148 Feb 28 12:50 .DS_Store
    lrwxr-xr-x 1 root admin 1 Feb 27 12:52 Macintosh HD -> /
    drwxr-xr-x 4 Shahud Shahud 136 Dec 17 10:24 shahud
    drwxr-xr-x 5 Shahud Shahud 170 Dec 18 10:37 shahud-1
    drwxr-xr-x 4 Shahud Shahud 136 Jan 27 11:35 shahud-2
    shahuds-power-mac-g5:~ Shahud$ df -h
    Filesystem Size Used Avail Capacity Mounted on
    /dev/disk0s3 233G 26G 206G 11% /
    devfs 94K 94K 0B 100% /dev
    fdesc 1.0K 1.0K 0B 100% /dev
    <volfs> 512K 512K 0B 100% /.vol
    automount -nsl [163] 0B 0B 0B 100% /Network
    automount -fstab [172] 0B 0B 0B 100% /automount/Servers
    automount -static [172] 0B 0B 0B 100% /automount/static

  • UC560 - Nightly automated backup - Possible?

    Hi,
    I have an UC560 system. I would like to schedule a nightly backup job to backup all configuration and voice mails. Is it possible? Configuration doesn't change much on daily basis but the voicemails do and need a way to back them up unattended.
    Please point me to right direction if you have figured out a good work around or solution.
    Thanks,        

    Hello,
    This is not possible through CCA, but you can use CLI and the CUE web gui to do this. There are also 3rd party tools you can use to do the automated backups.
    See this post for the more info about backups: https://supportforums.cisco.com/thread/2155698
    Here is an example how you would do this in CME:
    kron occurrence monthly at 01:23 june 20 recurring
      policy-list save-config
    kron policy-list save-config
      cli copy system:/running-config tftp://192.168.1.2/router-confg.txt
    In the CUE web GUI under Administration you need to define the backup server. Then you can create a scheduled backup.
    You will need FTP and TFTP servers running somewhere to backup the configurations and data to.
    Hope this helps.
    Thanks,
    -john

  • Incremental and Full backups using WBADMIN and Task Scheduler in Server 2008 R2

    I'd like to create an automated rotating schedule of backups using wbadmin and task scheduler, which would backup Bare Metal Recovery; System State; Drive C: and D: to a Network Share in a pattern like this:
    Monday - Incremental, overwrite last Monday's
    Tuesday - Incremental, overwrite last Tuesday's
    Wednesday - Incremental, overwrite last Wednesday's
    Thursday - Incremental, overwrite last Thursday's
    Friday - Incremental overwrite last Friday's
    Saturday - Full, overwrite last Saturday's
    I need to use the wbadmin commands within the Task Scheduler and do not know any of the required Syntax to make sure everything goes smoothly, I do not want to do this through the CMD.

    I know each backup for the previous corresponding day will be replaced, how do you figure I wont be able to do incremental backups...
    Because incremental backup is based on Volume Shadow Copy (VSS) feature and due to Windows Server 2008 R2 limitations (this limitation is resolved in Windows 8) only one version of backed up data can be stored in a shared folder. So the
    result is that every time you back up some data on a shared folder, you actually creating a full backup of them.
    is it not supported through task scheduler?
    The Task Scheduler is only a feature that does the tasks that you have defined for it. Actually it runs the
    wbadmin command that runs on an operating system with the mentioned limitation.
    I know you can do Incremental backups through Windows Server Backup, but my limitation using that is I cant setup multiple backups.
    Yes, you are right. Windows Server Backup feature in Windows Server 2008/2008 R2 has not this functionality (although
    ntbackup in Windows XP and Windows Server 2003 had this functionality). So, the only workaround to this limitation is through using Task Scheduler feature with wbadmin command. For more information see the following article:
    http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx
    So are you saying that even though I want each backup to go to a different place on the Shared Folder that it will replace the previous backup anyways?
    No and because of this I said in my previous post that with some modifications and additions you can do the scenario. For example, you back up to a shared folder with the name of Shared1 on Mondays. You also have been configured the backup feature to back
    up data on another shared folder, named Shared2, on Wednesday. When you repeat the backup operation in Shared1, only the backed up data that resides on it will be affected, and the data on Shared2 remains intact.
    Please feel free to let us know if you have any question or concern.
    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.
    Hi R.Alikhani
    Then do you know if wbadmin supports incremental backup in Windows 8? As you said the VSS issue is fixed in Win8. However, the wbadmin has less options then in windows server. I tried a bit but it seems it only supports full backup? ps, I use a network share
    - will the incremental backup works if I define a ISCCI then? My remote backup PC is also running Win8.

  • Automated Backups failing since V12 Update

    Hi,
    I recently upgraded my database server to the V12 (GA in my region). I have 3 servers running and configured for an automated backup at 12:00 AM every day.
    This morning I discovered we had 20 additional SQL Servers running, each one with an hourly time stamp from the last which I can only imagine is a re-try of the original export. When trying to delete these databases the portal said "An error occurred
    whilst existing this request, please re-send". I did try to re-send several times for each database and they all failed. Approximately 20 minutes later all the databases started to just disappear on their own (After I had turned off the automated backup
    in the settings).
    I checked over the upgrading documentation and couldn't find any details of problems with the Automated backups post upgrade so I am unsure if this is a bug in the system or a problem on the particular databases?
    I have manually run the backups as indicated in the error email and that worked fine.
    Thanks

    Hello CAWeb,
    My name is Eli Fisher and I am a Program Manager on the SQL DB team. We are aware of the issue you have stated above and there is work being done to fix the issues.
    I would be glad to look into your specific issue for more details. If you would like, you could send your database name and server name to my email address and I could look further into what is happening. My email alias is elfish at Microsoft dot com.  
    Additionally, if you are using automated export for backup purposed, we have built in backups for all Basic, Standard, Premium databases. You can use these backups to restore up to any point in time within your database's backup retention period. Additionally
    a daily backup is made geo-redundant so if there is a regional disaster you would be able to restore your database. If you would like to learn more about these capabilities look here:
    Point in Time Restore Blog http://azure.microsoft.com/blog/2014/10/01/azure-sql-database-point-in-time-restore/
    Geo-Restore Blog http://azure.microsoft.com/blog/2014/09/13/azure-sql-database-geo-restore/
    How-To use the Restore capabilities:
    Geo-Restore: http://azure.microsoft.com/en-us/documentation/articles/sql-database-geo-restore-tutorial-management-portal/
    Point in Time Restore: http://azure.microsoft.com/en-us/documentation/articles/sql-database-point-in-time-restore-tutorial-management-portal/
    Restore a deleted database: http://azure.microsoft.com/en-us/documentation/articles/sql-database-restore-deleted-database-tutorial-management-portal/
    Hope this helps!

  • Time Machine fails during automated backups

    I use a 1.5Tb external drive connected by USB as my backup drive for Time Machine. I reformatted it, and the first backup Time Machine did was successful. However, it can never do the regular automated backups, it keeps saying "Unable to complete backup. An error occurred while creating the backup folder." I tried going into Disk Utility and "repairing disk" and it doesn't help. The only way it works again is if I eject the drive (which it has to be forced to do every time), turn off the drive, and turn on again. It can then usually do an initial backup, and then again it fails the automated backups. I'm beginning to think it is the drive's issue. It is an internal drive that's housed in a external enclosure.

    thatweskid wrote:
    I have a Mac Pro running Mac OS 10.6.4 that freezes during incremental time machine backups. The initial backup will run fine, but during a subsequent backup the machine will always lock up and need to be restarted.
    I've tried repairing the permissions looking for trouble in log files, but haven't had any luck.
    Try verifying your internal HD, per #A5 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum). If that fails, you'll have to use your Install disc to repair it, per the yellow box there.

  • HT3275 Timemachine is making backups at intervals much less than hour?

    Tie machine is attemptint to make backups at intervals of about 10 minutes and getting itself into a right knot. The backups themselves take only a matter of minutes.
    Being backed up to an external hard dricve over wifi.
    Tonight for example

    Welcome to the Apple Support Communities
    First, reset Time Machine > http://pondini.org/TM/A4.html
    If it doesn't work, use TimeMachineEditor to set up the intervals manually

  • Automated backups of OSX Server 10.5 with Time Capsule (TC)

    I am running OSX 10.5 Server on a G5. The server is working well. I have the server plugged into a TC. I would like to do automated backups from the server to the TC.
    I can read and write to the TC disk fine from the server.
    When I try to configure Time Machine to do automated backups of the server to the TC it does not work. I set the preferences in TM. It seems to accept them. But the configuration never gets saved, and so TM always complains "Time Machine Error - No backup volume has been selected. To select a backup volume, open System Preferences and choose Time Machine."
    This is of course is what I have just done, but the changes are not getting saved.
    Any ideas?
    Thanks
    A

    jp6940 wrote:
    I only have 16gb of my 120gb? hard drive left to use. Will the Time Capsule "mirror" my hard drive or can I "move" some of my large files (iTunes and iPhoto) over to the TC to free up space on my G4's hard drive?
    If you use Time Capsule with Time Machine, almost all of your computer's disk drive contents (except what you exclude) will be backed up to the Time Capsule disk. If you don't use Time Machine, you can put whatever you want to on the Time Capsule disk.
    You can also attach an external USB drive to your Time Capsule and move anything you want to that.
    I also have an Apple TV. Will this be a problem being connected too?
    No.
    I am a little confused as to how to do this. My G4 is getting pretty sluggish, and I want to clean it up some. What program can use to help get rid of the old programs I have that are not using and trash them? Do I just drag them to the trash?
    For the most part, dragging programs to the trash will eliminate all but "preference" files. To locate those, look in <yourhomefolder>/Library/Preferences.

  • Automated Backup and Backup Jobs

    While I install oracle 11g release 2 the installer asked me :-
    if I want to enable or disable automated backups for my database. if enabled, then the backup jobs uses
    the specified recovery area storage
    Please help me to get knowledge about
    1- the automated backups
    2- the recovery area storage
    Thanks a lot.

    1)If you configure automated backups, oracle will run rman daily backup to backup all datafiles to flash recovery area
    http://docs.oracle.com/html/B14399_01/install_overview.htm
    2)configure flash recovery area using db_recovery_file_dest and db_recovery_file_dest_size.
    Flash recovery area is the area where you can store permanent and transient files (like backups)
    http://docs.oracle.com/cd/B19306_01/backup.102/b14192/setup005.htm

  • Any recommendations for an automated backup application?

    Hi,
    A company that I work for is looking for an automated back up solution.
    Currently, they have Intel iMacs running 10.4.10. They want to have automated backups to their Windows server. The protocol used is Samba, if I am not mistaken. They do not want to back up their entire hard drives, only certain files.
    The dot mac Backup application is not what they want.
    I am not familiar with automated back up solutions in an office environment.
    Any recommendations are appreciated!

    I'm not sure if they want to spend the money on an Enterprise level solution, but if they do then there's one outstanding product: BRU.
    If they are looking for something mainly client oriented but that can backup to a network device then my choice is Synchronize! Pro X because it provides an almost complete backup solution. About the only thing it cannot do is backup across multiple optical media. It supports backup to network devices and will even mount a network device if required. It also supports a fairly easy method of creating backup sets consisting of selected files and/or folders.

  • Backup using backint fails for maxdb

    Hi All, I have configured backint for backup of maxdb for content server 640. I configured it as per the documents available, created the configuration fiale and the parameter file. Created the backup medium in dbmgui. Now when i try to run the backup using the pipe am getting the above mentioned error. Please find below the dbm.ebp log for the same...
    more dbm.ebp 2009-10-22 02:06:08 Setting environment variable 'TEMP' for the directory for temporary files and pi pes to default ''. Setting environment variable 'TMP' for the directory for temporary files and pip es to default ''. Using connection to Backint for MaxDB Interface. 2009-10-22 02:06:08 Checking existence and configuration of Backint for MaxDB. Using configuration variable 'BSI_ENV' = '/sapdb/CFC/lcbackup/apoatlas.env' as path of the configuration file of Backint for MaxDB. Setting environment variable 'BSI_ENV' for the path of the configuration fil e of Backint for MaxDB to configuration value '/sapdb/CFC/lcbackup/apoatlas.env' . Reading the Backint for MaxDB configuration file '/sapdb/CFC/lcbackup/apoatl as.env'. Found keyword 'BACKINT' with value '/sapdb/CFC/db/bin/backint'. Found keyword 'INPUT' with value '/tmp/backint4sapdbCFC.in'. Found keyword 'OUTPUT' with value '/tmp/backint4sapdbCFC.out'. Found keyword 'ERROROUTPUT' with value '/tmp/backint4sapdbCFC.err'. Found keyword 'PARAMETERFILE' with value '/sapdb/CFC/lcbackup/param.cfg' . Found keyword 'TIMEOUT_SUCCESS' with value '1800'. Found keyword 'TIMEOUT_FAILURE' with value '1800'. Finished reading of the Backint for MaxDB configuration file. Using '/sapdb/CFC/db/bin/backint' as Backint for MaxDB program. Using '/tmp/backint4sapdbCFC.in' as input file for Backint for MaxDB. Using '/tmp/backint4sapdbCFC.out' as output file for Backint for MaxDB. Using '/tmp/backint4sapdbCFC.err' as error output file for Backint for MaxDB . Using '/sapdb/CFC/lcbackup/param.cfg' as parameter file for Backint for MaxD B. Using '1800' seconds as timeout for Backint for MaxDB in the case of success . Using '1800' seconds as timeout for Backint for MaxDB in the case of failure . Using '/sapdb/data/wrk/CFC/dbm.knl' as backup history of a database to migra te. Using '/sapdb/data/wrk/CFC/dbm.ebf' as external backup history of a database to migrate. Checking availability of backups using backint's inquire function. Check passed successful. 2009-10-22 02:06:08 Checking medium. Check passed successfully. 2009-10-22 02:06:08 Preparing backup. Setting environment variable 'BI_CALLER' to value 'DBMSRV'. Setting environment variable 'BI_REQUEST' to value 'NEW'. Setting environment variable 'BI_BACKUP' to value 'FULL'. Constructed Backint for MaxDB call '/sapdb/CFC/db/bin/backint -u CFC -f back up -t file -p /sapdb/CFC/lcbackup/param.cfg -i /tmp/backint4sapdbCFC.in -c'. Created temporary file '/tmp/backint4sapdbCFC.out' as output for Backint for MaxDB. Created temporary file '/tmp/backint4sapdbCFC.err' as error output for Backi nt for MaxDB. Writing '/sapdb/CFC/lcbackup/pipe1 #PIPE' to the input file. Writing '/sapdb/CFC/lcbackup/pipe2 #PIPE' to the input file. Prepare passed successfully. 2009-10-22 02:06:08 Creating pipes for data transfer. Creating pipe '/sapdb/CFC/lcbackup/pipe1' ... Done. Creating pipe '/sapdb/CFC/lcbackup/pipe2' ... Done. All data transfer pipes have been created. 2009-10-22 02:06:08 Starting database action for the backup. Requesting 'SAVE DATA QUICK TO '/sapdb/CFC/lcbackup/pipe1' PIPE,'/sapdb/CFC/ lcbackup/pipe2' PIPE BLOCKSIZE 8 NO CHECKPOINT MEDIANAME 'BACKINT_ONLINE1'' from db-kernel. The database is working on the request. 2009-10-22 02:06:09 Waiting until database has prepared the backup. Asking for state of database. 2009-10-22 02:06:09 Database is still preparing the backup. Waiting 1 second ... Done. Asking for state of database. 2009-10-22 02:06:10 Database is still preparing the backup. Waiting 2 seconds ... Done. Asking for state of database. 2009-10-22 02:06:12 Database has finished preparation of the backup. The database has prepared the backup successfully. 2009-10-22 02:06:12 Starting Backint for MaxDB. Starting Backint for MaxDB process '/sapdb/CFC/db/bin/backint -u CFC -f back up -t file -p /sapdb/CFC/lcbackup/param.cfg -i /tmp/backint4sapdbCFC.in -c >>/tm p/backint4sapdbCFC.out 2>>/tmp/backint4sapdbCFC.err'. Process was started successfully. Backint for MaxDB has been started successfully. 2009-10-22 02:06:12 Waiting for end of the backup operation. 2009-10-22 02:06:12 The backup tool is running. 2009-10-22 02:06:12 The database is working on the request. 2009-10-22 02:06:14 The backup tool process has finished work with return co de 2. 2009-10-22 02:06:17 The database is working on the request. 2009-10-22 02:06:27 The database is working on the request. 2009-10-22 02:06:42 The database is working on the request. 2009-10-22 02:07:02 The database is working on the request. 2009-10-22 02:07:15 Canceling Utility-task after a timeout of 60 seconds ela psed ... OK. 2009-10-22 02:07:17 The database has finished work on the request. Receiving a reply from the database kernel. Got the following reply from db-kernel: SQL-Code :-903 The backup operation has ended. 2009-10-22 02:07:17 Filling reply buffer. Have encountered error -24920: The backup tool failed with 2 as sum of exit codes. The database request was canceled and ended with error -903. Constructed the following reply: ERR -24920,ERR_BACKUPOP: backup operation was unsuccessful The backup tool failed with 2 as sum of exit codes. The database request was canceled and ended with error -903. Reply buffer filled. 2009-10-22 02:07:17 Cleaning up. Removing data transfer pipes. Removing data transfer pipe /sapdb/CFC/lcbackup/pipe2 ... Done. Removing data transfer pipe /sapdb/CFC/lcbackup/pipe1 ... Done. Removed data transfer pipes successfully. Copying output of Backint for MaxDB to this file. -
    Begin of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)- -
    Data Protection for mySAP(R) Interface between BR*Tools and Tivoli Storage Manager - Version 5, Release 4, Modification 0.0 for Linux x86_64 - Build: 303 compiled on Nov 16 2006 (c) Copyright IBM Corporation, 1996, 2006, All Rights Reserved. BKI0008E: The environment variable BI_CALLER is not set correctely. The current value is "DBMSRV" usage: backint -p  [-u ] [-f ] [-t ] [-i ] [-o ] [-c] where:  backint utility user  backup | restore | inquire | password | delete  file | file_online  parameter file for backup utility  name of a text file that defines the objects default: STDIN  Pool for processing messages and the results of the executed function. default: STOUT BKI0020I: End of program at: Thu 22 Oct 2009 02:06:14 AM EDT . BKI0021I: Elapsed time: 01 sec . BKI0024I: Return code is: 2. -
    End of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)- - Removed Backint for MaxDB's temporary output file '/tmp/backint4sapdbCFC.out '. Copying error output of Backint for MaxDB to this file. - Begin of error output of Backint for MaxDB (/tmp/backint4sapdbCFC .err) - End of error output of Backint for MaxDB (/tmp/backint4sapdbCFC.e rr)--
    Removed Backint for MaxDB's temporary error output file '/tmp/backint4sapdbC FC.err'. Removed the Backint for MaxDB input file '/tmp/backint4sapdbCFC.in'. Have finished clean up successfully.
    Also, is there any specification about the user permissions and about how the backup should be run?

    Hi Lars,
    I understand that its a clumpsy over here, but i already have raised an OSS message and SAP said, that they cannot support this issue with backint. If you can provide me with an email id, i can send you the log files which would be easy to read.
    My issue is that am not able run backup for maxdb of content server 640 using the backint tool.
    I have created the configuration file and the parameter file as per the specifications from http://maxdb.sap.com/doc/7_7/a9/8a1ef21e4b402bb76ff75bb559a98a/content.htm and http://maxdb.sap.com/doc/7_7/50/075205962843f69b9ec41f34427be7/content.htm.
    THe server is registered to the TSM server. Now when i run the wizard to take the backup using the backint tool, it gives the error "Begin of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)- -
    Data Protection for mySAP(R) Interface between BR*Tools and Tivoli Storage Manager - Version 5, Release 4, Modification 0.0 for Linux x86_64 - Build: 303 compiled on Nov 16 2006 (c) Copyright IBM Corporation, 1996, 2006, All Rights Reserved. BKI0008E: The environment variable BI_CALLER is not set correctely. The current value is "DBMSRV" usage: backint -p  [-u ] [-f ] [-t ] [-i ] [-o ] [-c] where:  backint utility user  backup | restore | inquire | password | delete  file | file_online  parameter file for backup utility  name of a text file that defines the objects default: STDIN  Pool for processing messages and the results of the executed function. default: STOUT BKI0020I: End of program at: Thu 22 Oct 2009 02:06:14 AM EDT . BKI0021I: Elapsed time: 01 sec . BKI0024I: Return code is: 2. -
    End of output of Backint for MaxDB (/tmp/backint4sapdbCFC.out)- - Removed Backint for MaxDB's temporary output file '/tmp/backint4sapdbCFC.out '. Copying error output of Backint for MaxDB to this file. - Begin of error output of Backint for MaxDB (/tmp/backint4sapdbCFC .err) - End of error output of Backint for MaxDB (/tmp/backint4sapdbCFC.e rr)--
    Removed Backint for MaxDB's temporary error output file '/tmp/backint4sapdbC FC.err'. Removed the Backint for MaxDB input file '/tmp/backint4sapdbCFC.in'. Have finished clean up successfully."
    I think this should be fine to read...
    Krishna KK

  • How to Restore Full Offiline Backup using BRTOOLS from a Tape

    Dear all,
    I want to recover PRD Full Offline Backup using BRTOOLS from a tape in a new machine.
    I have Install SAP in the new machine.
    Now I want to restore the PRD Full Offiline Backup taken through BRTOOLs in tape in the new machine.
    1. I have shutdown the SAP.
    2. I have shutdown the database Oracle 10g.
    3. I have inserted the backup tape
    4. Through user ORASID I have executed BRTOOLS
    I got the following options: -
    BRTools main menu
    1 = Instance management
    2 - Space management
    3 - Segment management
    4 - Backup and database copy
    5 - Restore and recovery
    6 - Check and verification
    7 - Database statistics
    8 - Additional functions
    9 - Exit program
    I selected Option 5 Restore and recovery
    And got the Following Options
    Restore and recovery
    1 = Complete database recovery
    2 - Database point-in-time recovery
    3 - Tablespace point-in-time recovery
    4 - Whole database reset
    5 - Restore of individual backup files
    6 - Restore and application of archivelog files
    7 - Disaster recovery
    8 - Reset program status
    1. Now which option do I need to select and then what all other options do I need to select.
    2. Whether the database should be a mount state or shutdown ?
    Kindly help.

    Dear Mark,
    Thanks.
    As suggested I tried both the options however face some difficulties please suggest
                                       brrestore -u / -c -b <backup_log.ext> -p init<SID>.sap -m full
    hinrnddev:oradev 1> brrestore -u / -c -b bedflluv.fft -p initDEV.sap -m full
    BR0401I BRRESTORE 7.00 (32)
    BR0405I Start of file restore: redhafeh.rsb 2010-05-22 11.55.55
    BR0484I BRRESTORE log file: /oracle/DEV/sapbackup/redhafeh.rsb
    BR0252E Function fopen() failed for '/oracle/DEV/sapbackup/bedflluv.fft' at location BrbLogRead-1
    BR0253E errno 2: No such file or directory
    BR0121E Processing of log file /oracle/DEV/sapbackup/bedflluv.fft failed
    BR0406I End of file restore: redhafeh.rsb 2010-05-22 11.55.55
    BR0280I BRRESTORE time stamp: 2010-05-22 11.55.55
    BR0404I BRRESTORE terminated with errors
    When I used the brrestore command I got the above error message.
    Then I tried the next option Complete database recover
    BRRECOVER options for restore and recovery
    1 * Recovery type (type) ............. [complete]
    2 - BRRECOVER profile (profile) ...... [initDEV.sap]
    3 ~ BACKINT/Mount profile (parfile) .. []
    4 - Database user/password (user) .... [/]
    5 - Recovery interval (interval) ..... [30]
    6 - Confirmation mode (confirm) ...... [yes]
    7 - Scrolling line count (scroll) .... [20]
    8 - Message language (language) ...... [E]
    9 - BRRECOVER command line (command) . [-p initDEV.sap -t complete -i 30 -s 20 -l E]
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    C
    Complete database recovery main menu
    1 = Check the status of database files
    2 * Select database backup
    3 * Restore data files
    4 * Restore and apply incremental backup
    5 * Restore and apply archivelog files
    6 * Open database and post-processing
    7 * Exit program
    8 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    C
    Complete database recovery main menu
    1 + Check the status of database files
    2 # Select database backup
    3 # Restore data files
    4 # Restore and apply incremental backup
    5 # Restore and apply archivelog files
    6 + Open database and post-processing
    7 = Exit program
    8 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    the + sign got changed to +
    and the * got changed to #
    then it is getting in loop please suggest what do I do now.

  • V12 (GA) switch issues. DB is stuck in creation state, automated backup issues, no monitoring data 1h

    Hi,
    On Friday we have switched databases to V12 version as it was announced that they are now generally available, but I have doubts that everything was tested by Microsoft, as immediately we have several issues:
    1. We had automated backups scheduled on all DB. On Sunday everything started to not work properly. There were more than 10 backup databases created like AutomatedSqlExport_X_20150201T050000Z and emails send that backup cannot be created. We had to
    remove them manually except one.
    2. One of the backup database is still in creating state from yesterday so we cannot remove it.
    3. We have turned off all automated backups in Azure Portal, but I'm not sure if they can be turned on again. I do not want to have 20 DB billed every week as autometed scripts are not working properly.
    4. After switch in Management Portal only last hour metrics are available. Switching to 24h or more returns all zeroes. When do we count on the fix?
    PS. tracking ID of db that is in creating state: 44530DC6-B174-4FAA-A4D6-2C01CA20CB85
    Regards,
    Rafal

    Hi Gluwer,
    Thanks for posting here.
    I suggest you to open a support case as this needs more back-end information which cannot be discussed over the forum.
    Refer: http://azure.microsoft.com/en-us/support/options/
    Girish Prajwal

  • Date-wise backup using expdp

    Dear Friends ,
    I am using Oracle database 10g . Every week I take full export backup using 'expdp' . Beetween the days of the week, I dont take any backup . Now I need backup of two days ago . In this moment , is it possible to take backup using datapump (expdp) before two days ago ?
    i.e., Is there any facility in oracle 10g datapump to take export backup using date-wise ?
    My another question ,
    Is there any incremental backup procedure available in oracle 10g datapump ?
    Waiting for kind reply ... ...

    Hi,
    Dear Friends ,
    I am using Oracle database 10g . Every week I take full export backup using 'expdp' . Beetween the days of the week, I dont take any backup . Now I need backup of two days ago . In this moment , is it possible to take backup using datapump (expdp) before two days ago ?
    i.e., Is there any facility in oracle 10g datapump to take export backup using date-wise ?
    My another question ,
    Is there any incremental backup procedure available in oracle 10g datapump ?
    Waiting for kind reply ... ...You must not use or treat Expdp or logical backup as the Backup which can be used for future purpose. Please search forums their are so many links you lan find out and so many people told many time.. even ORACLE suggest that.
    Go for Custom backups and RMAn backups.
    - Pavan Kumar N
    - Pavan Kumar N

  • [b]Tutorial:[/b] Simplify Developing OLE Automation Code Using VBA

    INTRODUCTION
    Automating Office applications from Oracle Forms can be a tedious, frustrating, and time-consuming process. Because the OLE2 and CLIENT_OLE2 built-ins do not validate the automation commands that they relay, code that compiles without errors often dies at runtime with a not-so-helpful error code. This tutorial will demonstrate how to simplify the development of automation code using a tool that ships with all Microsoft Office editions -- the Visual Basic for Applications (VBA) IDE.
    The VBA IDE, a core Office component, is a full-fledged development environment featuring code completion, basic syntax highlighting, context-driven help and a runtime debugger. Its Object Browser provides a convenient means of browsing the Word object model, as well as searching by keyword.
    For those who may not interested in following this tutorial in detail, I would like to stress the usefulness of the Object Browser as a tool for inspecting the functions supported by OLE server applications and, perhaps more importantly, valid values for function arguments. Whether/not anyone buys the assertion that starting with VBA prototypes is far more productive than pounding out OLE2 code from the very start, they will find the Object Browser invaluable as a reference -- I rely on it exclusively for this sort of documentation.
    A BRIEF INTRODUCTION TO THE VBA IDE & THE OBJECT BROWSER UTILITY
    Try this:
    1. Open Word
    2. Launch the VBA IDE by pressing <Alt><F11>
    3. Open the Object Browser by pressing <F2>
    The Object Browser allows you to visually navigate Word's class hierarchy. Its user interface is a bit crowded, so controls are unlabeled. Hovering the mouse cursor above a control will display a tooltip explaining that control's purpose. The browser's scope can be narrowed by using the Project/Library combo. Typing a keyword or substring in the Search Text combo and clicking on the Search button will cause all classes/members whose name contains the specified search text to be listed in the Search Results pane. Selecting an item from this list will update the two panes below it, showing the selected class, and its members. Beneath the Classes and Members panes is an untitled pane, gray in color, which displays details for the selected class/member, including hyperlinks to relevant information such as arguments, their types and allowable values. If Visual Basic Help is installed, pressing <F1> will display help on a selected class/member. (This feature can be installed from your Office install CD, if necessary.)
    NOTE: While it is possible to cut-and-paste the code examples that follow, I highly recommend that they be typed in by hand. Doing so will provide a better understanding of how the IDE's code completion behaves. Use code completion most efficiently by not using the mouse or <Enter> key when selecting from completion lists. Instead, just type enough letters to select the desired list element, then continue along as if you had typed the entire element, typing the next operator in your statement. It really is slick!
    HELLO WORLD - VBA-STYLE
    1. Open Word
    2. Launch the VBA IDE by pressing <Alt><F11>
    3. Select Module from the Insert menu.
    4. In the blank area that appears, enter the following code:
      Public Sub HelloWorld()
          Documents.Add
          Selection.TypeText ("Hello, world!")
      End Sub5. Press <F5> to run the code.
    If you switch back to Word by pressing <Alt><F11>, there should appear a newly-created document containing the text Hello, world!.
    A MORE AMBITIOUS EXAMPLE
    In this example, we will launch Word, type some text, and alter its formatting. For the purposes of this tutorial, consider it the process we wish to automate from within Forms.
    1. If Word is running, close it.
    2. Open any Office application except Word, such as Excel, Outlook or PowerPoint
    3. Launch the VBA IDE by pressing <Alt><F11>.
    4. Select References from the Tools menu -- a dialog should pop up.
    5. From within this dialog, locate and select Microsoft Word <version> Object Library, then click OK.
    6. Select Module from the Insert menu.
    7. In the blank area that appears, enter the following code:
    Public Sub LaunchWord()
        Dim app As Word.Application
        Set app = CreateObject("Word.Application")
        app.Visible = True                          '!!! IMPORTANT !!!
        app.Documents.Add
        With app.Selection
            .TypeText "This is paragraph 1."
            .TypeParagraph
            .TypeText "This is paragraph 2."
            .TypeParagraph
            .TypeText "This is paragraph 3."
        End With
        With ActiveDocument
            .Paragraphs(1).Range.Words(3).Bold = True
            .Paragraphs(2).Range.Words(3).Italic = True
            .Paragraphs(3).Range.Words(3).Underline = True
        End With
    End Sub8. Press <F5> to run the code.
    A new Word session should have been launched. Switch to it, to view the results of our handiwork!
    TAILORING VBA CODE INTENDED FOR OLE2 CONVERSION
    Now, things get a bit uglier. The code listed above gives a good idea of how concise VBA code can be, but With blocks and chained object references do not translate readily into OLE2 code. Here's the same process, rewritten in a more OLE2-friendly style. Note the numerous intermediate object references that have been declared.
    Public Sub LaunchWord()
        Dim app As Word.Application
        Dim doc As Word.Document
        Dim docs As Word.Documents
        Dim pars As Word.Paragraphs
        Dim par As Word.Paragraph
        Dim wrds As Word.Words
        Dim sel As Word.Selection
        Dim rng As Word.Range
        Set app = CreateObject("Word.Application")
        app.Visible = True                          '!!! IMPORTANT !!!
        Set doc = app.Documents.Add
        Set sel = app.Selection
        sel.TypeText "This is paragraph 1."
        sel.TypeParagraph
        sel.TypeText "This is paragraph 2."
        sel.TypeParagraph
        sel.TypeText "This is paragraph 3."
        Set pars = doc.Paragraphs
        'select third word of first paragraph and make it bold
        Set par = pars.Item(1)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Bold = True
        'select third word of second paragraph and italicize it
        Set par = pars.Item(2)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Italic = True
        'select third word of second paragraph and underline it
        Set par = pars.Item(3)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Underline = True
    End Sub
    TRANSFORMATION: CONVERTING VBA CODE INTO PL/SQL
    Here is the PL/SQL counterpart to our previous VBA routine. Compare printouts of the two and note their similarities. Notice the need for argument lists -- this causes the code to fluff up quite a bit, and really interferes with readability.
    PROCEDURE LAUNCH_WORD IS
      v_app OLE2.OBJ_TYPE;     -- Application
      v_doc OLE2.OBJ_TYPE;     -- Document
      v_docs OLE2.OBJ_TYPE;    -- Documents collection
      v_pars OLE2.OBJ_TYPE;    -- Paragraphs collection
      v_par OLE2.OBJ_TYPE;     -- Paragraph
      v_wrds OLE2.OBJ_TYPE;    -- Words collection
      v_sel OLE2.OBJ_TYPE;     -- Selection
      v_rng OLE2.OBJ_TYPE;     -- Range
      v_args OLE2.LIST_TYPE;   -- OLE2 argument list
    BEGIN
      /* launch Word and MAKE IT VISIBLE!!! */ 
        v_app := OLE2.CREATE_OBJ('Word.Application');
        OLE2.SET_PROPERTY(v_app, 'Visible', TRUE);
      /* initialize key object references */ 
        v_docs := OLE2.GET_OBJ_PROPERTY(v_app, 'Documents');
        v_doc := OLE2.INVOKE_OBJ(v_docs, 'Add');
        v_sel := OLE2.GET_OBJ_PROPERTY(v_app, 'Selection');
      /* type first paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 1.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      /* type second paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 2.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      /* type third paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 3.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
      /* set reference to Paragraphs collection */
        v_pars := OLE2.GET_OBJ_PROPERTY(v_doc, 'Paragraphs');
      /* select third word of first paragraph and make it bold */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 1);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Bold', TRUE);
      /* select third word of second paragraph and italicize it */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 2);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Italic', TRUE);
      /* select third word of second paragraph and underline it */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Underline', TRUE);
    END;
    REFACTORING FOR REUSABILITY AND READABILITY
    While the previous procedure runs without errors, it suffers from poor readability which, in turn, makes it difficult to maintain. Here, we address those issues by moving repetetive low-level operations into separate procedures.
      PROCEDURE LAUNCH_WORD IS
        v_app OLE2.OBJ_TYPE;    -- Application
        v_doc OLE2.OBJ_TYPE;    -- Document
        v_docs OLE2.OBJ_TYPE;   -- Documents collection
        v_sel OLE2.OBJ_TYPE;    -- Selection
        v_args OLE2.LIST_TYPE;  -- OLE2 argument list
      BEGIN
        /* launch Word and MAKE IT VISIBLE!!! */ 
          v_app := OLE2.CREATE_OBJ('Word.Application');
          OLE2.SET_PROPERTY(v_app, 'Visible', TRUE);
        /* create a new Word document */ 
          v_docs := OLE2.GET_OBJ_PROPERTY(v_app, 'Documents');
          v_doc := OLE2.INVOKE_OBJ(v_docs, 'Add');
          v_sel := OLE2.GET_OBJ_PROPERTY(v_app, 'Selection');
        /* add a few paragraphs */
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 1.');
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 2.');
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 3.');
        /* apply formatting */
          APPLY_FORMATTING(v_doc, 1, 3, 'Bold', TRUE);
          APPLY_FORMATTING(v_doc, 2, 3, 'Italic', TRUE);
          APPLY_FORMATTING(v_doc, 3, 3, 'Underline', TRUE);
      END;
      PROCEDURE APPLY_FORMATTING(
        v_doc OLE2.OBJ_TYPE,
        v_paragraph_num NUMBER,
        v_word_num NUMBER,
        v_attribute VARCHAR2,
        v_value BOOLEAN) IS
        v_pars OLE2.OBJ_TYPE;   -- Paragraphs collection
        v_par OLE2.OBJ_TYPE;    -- Paragraph
        v_wrds OLE2.OBJ_TYPE;   -- Words collection
        v_rng OLE2.OBJ_TYPE;    -- Range
        v_args OLE2.LIST_TYPE;  -- OLE2 argument list
      BEGIN
        /* set reference to Paragraphs collection */
          v_pars := OLE2.GET_OBJ_PROPERTY(v_doc, 'Paragraphs');
        /* get specified paragraph */   
          v_args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(v_args, v_paragraph_num);
          v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
          OLE2.DESTROY_ARGLIST(v_args);
        /* get words for specified paragraph */
          v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
          v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        /* apply formatting to word found at specified index */
          v_args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(v_args, v_word_num);
          v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
          OLE2.SET_PROPERTY(v_rng, v_attribute, v_value);
      END;
      PROCEDURE PRINT_PARAGRAPH(v_sel OLE2.OBJ_TYPE, v_text VARCHAR2) IS
        v_args OLE2.LIST_TYPE;
      BEGIN
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, v_text);
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      END;
    CONCLUSION
    It is my hope that this tutorial, despite it's introductory nature, has demonstrated the value of the VBA IDE, the ease with which automation processes can be prototyped using VBA, the noticeable similarity between VBA automation routines and their Forms PL/SQL counterparts, and the advantages of testing automation processes within the VBA IDE. Please feel free to follow up with any specific questions or concerns you may have.
    Thanks,
    Eric Adamson
    Lansing, Michigan
    FINAL NOTE: These examples use the OLE2 built-in, and will operate correctly when called from forms running in the Form Builder OC4J. Deploying them to an Oracle Application Server will launch Word on the server itself (if available), which is usually not the developer's intent! Automating Word client-side via web forms requires adding WebUtil support. Adapting the code for WebUtil is trivial -- just replace all instances of OLE2 with CLIENT_OLE2. Adapting forms for WebUtil and configuring OLE support into your Oracle Application Server, however, are beyond the scope of this tutorial.
    REVISION HISTORY
    This promises to be something of a 'living document'. I've snuck changes through without comment in the past, but in the future, I'll try to document significant changes here.
    2006-08-21
      * Prefaced boring subject line with text: 'Tutorial:' to clarify purpose
      * Added emphasis on value of Object Browser as a reference

    Thanks James, for your kind words. I do hope this information will help folks out. I honestly believe that tinkering around in the VBA IDE will prove highly gratifying for automation developers. It can be assured that learning to make Word jump through hoops is much more straight-forward in this environment. I'm not one for mottos, but if I were pressed for a cheesy motto, I would say: First, make it work. Then, make it work in Oracle!
    Once the idea has sunk in, that Visual Basic routines for automating Word are exact analogs to their OLE2 counterparts, we can remove keywords like Oracle and PL/SQL from our Google searches on Word automation which, at least in this context, are the proverbial kiss of death. Suddenly we find ourselves liberated by the possibility of steal-, ahem... borrowing ideas from the Visual Basic* community!
    As for links, my link of choice is invariably http://groups.google.com -- if you don't already use it at least ten times a day, you must try it. This is the venerable USENET archive, including the holdings of now-extinct DejaNews. Another possible site of interest is http://word.mvps.org/FAQs/MacrosVBA, which may serve as a good starting point for those who wish to learn how to do fancy tricks with Word using VBA.
    If these links don't prove immediately helpful, please feel free to give specifics on the sort of operations you are interested in automating, and I'll see if I can post an example that addresses it.
    Regards,
    Eric Adamson
    Lansing, Michigan
    PS: I do hope, as people read my posts, with every other acronym being VBA, that they are not mistakenly hearing a call to learn Visual Basic. I say this, not because I believe learning VB would be a Bad Thing, but because I assume that few of us feel we have the time to learn a new programming language. Despite having come to the Oracle camp already knowing VB/VBA, and having acquired a fair bit of experience with automating Office applications as an Access developer, I remain confident that what I am suggesting people attempt does not rise to the level of learning a language. What I am suggesting is that they learn enough of the language to get by.
    *VB vs. VBA
    Just a quick word on this, as readers may wonder why I seem to use these terms interchangeably. Visual Basic (VB) can refer to either a development platform or a programming language. Visual Basic for Applications (VBA) is a language -- more precisely, it is a subset of the Visual Basic language. One purchases VB, usually quite intentionally. VBA is included with Microsoft Office, as is VBA's development environment, the VBA IDE. The key distinction between VB and VBA is that VBA cannot be used to create self-contained executables. Rather, VBA relies on VBA-enabled applications, such as Microsoft Office applications, to serve as a container for VBA code, and to provide a runtime environment for that code. For the purposes of discussing OLE Automation, VB and VBA are quite interchangeable.

Maybe you are looking for