Backup/restore using Stored porcedure

Hi,
Can any one tell how to backup/restore using stored procedure from schema....
becoz this script will be used by front end application..
How to do that?

I "guess" you are trying to create some sort of ERP application which does everything inside-the-box. The reason for this guess is that few months back, I got a similar kind of request from a friend who runs an ISV and wanted me to write a code doing the same for his VB app. Well, my answer was same which you have got just now from other members. Backup/Recovery shouldn't be based on some home grown application , atleast as long as that app is not as robust as APPS or SAP or some thing like that. If you want to do some backup/recovery thing in a script, better you write it in some shell/batch script and run it. Don't try to push it in the some procedure which being tied to your application.
Sybrand mentioned two techniques, RMAN and DB Console, both will do your work excellently.
Just my 2 cents.
Aman....

Similar Messages

  • Commom errors while DB Backup & Restoration  using SQL server 2005

    Hi all,
    Thanks for your support,
    Please let me know what are the common errors during Backup and Restore using MS SQL Server 2005, Please let me know atleast 3 for Backup and 3 for Restoration, hope that you will help me
    Regards
    Raj

    Ehhhh.... Noone is going to paint you the scenarios.... check the Backup and Restore guide both have troobleshoot areas.
    Regards
    Juan

  • Backup/Restore using Clonezilla

    We have an old server that we are running Clonezilla on to do Backups.  The old server was simple and didn't have Active Directory or Hyper-V installed.  The Clonezilla backup is not the server edition.  The old server has Windows 2008 R2.
    Our new server is a failover cluster (2 nodes) using Hyper-V, and had to have Active Directory to be up to Security standards of our company.  It uses live migration also.  We are worried that if we use Clonezilla on the new servers that we will
    get caught by Active Directory upon restores from our Clonezilla Backups.  Maybe the GUID will be an issue, but we're not sure.  We are worried to test our Clonezilla backup/restore on the new server because we might run into an issue with using
    this method to restore.  The new server has Windows 2008 R2 also, and has a SAN to store the VM's and database.
    So my question is, can we expect our Clonezilla backup/restore to work on our failover server nodes with the added Active Directory?
    I was reading these links that refer to Clonezilla, but the setup is different. 
    http://techjournal.318.com/tag/windows/,
    http://community.spiceworks.com/topic/440193-windows-7-cloning-what-does-everyone-use . 
    We aren't your typical IT people, and don't have a lot of experience with this.
    Thanks!
    Michele Cleary

    Hi,
    you should turn to CloneZilla support to check whether they support this scenario.
    Note that Microsoft only supports cloning servers (especially DC's) in very specific circumstances, and backup and recovery software should comply with a lot of requirements to provide a fail-safe backup and recovery.
    My best advice would probably be to seek advice from someone who is 
    a typical IT person to design your disaster recovery scenario. it might cost some, but it will be not comparable with the costs of a failing dister recovery plan.
    MCP/MCSA/MCTS/MCITP

  • Backup/restore using RMAN with no catalog

    Hi all,
    Can someone tell me if this is correct:
    I have two identical machines, same configuration and same file structure, everything is the same.
    On machine A, I have a 9.2.0.7 database running. I take a hot backup and try to restore it on machine B.
    Note: I am using RMAN for backup/restore whith no catalog.
    This is how I perform backup on machine A:
    ALLOCATE CHANNEL C1 TYPE DISK;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP INCREMENTAL LEVEL=0 CUMULATIVE format '/backup/level0_%u' BACKUP CURRENT CONTROLFILE format '/backup/control_primary' FORCE;
    SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    BACKUP ARCHIVELOG ALL format '/backup/archivelogs_%s_%t';
    On machine B, here is how I perform restore:
    SET DBID 1221334455;
    RESTORE CONTROLFILE FROM '/backup/control_primary';
    ALTER DATABASE MOUNT;
    RESTORE DATABASE VALIDATE;
    RESTORE DATABASE;
    Recover database;
    Thanks,

    You forgot to restore the spfile or pfile on the second node to go to nomount state.
    OR
    You can use RMAN Duplicate to do this.
    Regards
    Message was edited by:
    Singh

  • How to backup/restore files stored in the local copy of my iDisk using time

    I have a MobileMe account and thus I am using the iDisk. I configured it to have a local copy. Thus I imagine that Time Machine is making an hourly backup of it.
    However, when I enter Time Machine to restore a file, I cannot open my iDisk (it goes to the current version, not the historical ones).
    This is particularly worrying for me, as all my important files (except images, movies and music)are stored on my iDisk such that I can access them from my multiple computers.

    From this PCWorld article:
    [Back up IDisk With Time Machine|http://www.pcworld.com/businesscenter/article/190738/backup_idisk_with_timemachine.html]
    This local copy is stored as a sparse image bundle, which you can find on your Snow Leopard Mac by moving to your user folder and then following this path: Library/FileSync/incomprehensibly-named-folder where incomprehensibly-named-folder bears a name made up of letters and numbers. Inside this folder is the file you're after--yourmobilemename_iDisk.sparsebundle.
    Unless you've configured Time Machine to exclude your user folder and its contents, this is where you'll point Time Machine to look for a backup. Note that when you travel back in time and restore this file, you'll be warned that there already exists a file with that name and offered a choice to keep the original, keep both, or replace the original. I'd suggest keeping both. Here's why.
    I'm going to assume that people would want access to their old iDisk because they've lost something from it between then and now. If you keep the original, you can't get to your old stuff. If you replace the current sparse image bundle with the old one, your iDisk and Mac are now out of sync and you won't have the files you added since the restore point until they're synced again. If you keep both, you have everything you need.
    Move the restored file to your Desktop, double-click it to mount it, and grab the content you want. Leave the original where it was, remove the (original) that now appears in its name, and your Mac and iDisk can go back to syncing where they last left off.
    ------------------------------

  • Backup / Restore using Disk Utility

    Hello,
    I have a G4 Quicksilver 2002 with two internal hard rives:  one cofigured for Mac OS X 10.4 and the other (my main) configured for Mac OS X 10.5.
    I've created a backup image of the 10.4 HD using Disk Utility which is stored on an external USB drive.
    My question is this - if I need to restore the 10.4 HD from the backup image, will it be bootable?  The directory for the 10.4 HD appears to be corrupted, and I'll likely need to reformat the drive and attempt a restore from the archived image.
    I would like to avoid the hassle of rebuilding the 10.4.11 system from scratch.
    --Bill

    Hi Bill,
    In theory that should work.

  • Restore using Time Machine to new hard drive, but last "full" backup was 2012.  how do I restore the rest of the Time Machine backups, particularily IPHOTO libraries for each user?

    Restore using Time Machine to new hard drive, but last "full" backup was in 2012.  How do I restore the rest of the Time Machine backups, particularily IPHOTO libraries for each user? 
    I entered Iphoto for my user and only photo up until 2012 were in the library.  I thought the restore would do the incremental Time Machine backups too.....
    Running 10.8.2

    It usually means you are running Mavericks but have an earlier version of iPhoto. Open the App Store and upgrade your version of iPhoto to the Mavericks version.
    The iWork apps are free with a new iOS device since 1 SEP 2013. They are free with a new Mac since 1 OCT 2013. They are also free with the upgrade to OS X Mavericks 10.9 if you had the previous version installed when you upgraded.The iWork apps are free with a new iOS device since 1 SEP 2013. They are free with a new Mac since 1 OCT 2013. They are also free with the upgrade to OS X Mavericks 10.9 if you had the previous version installed when you upgraded.
    iWork and iLife for Mac come free with every new Mac purchase. Existing users running Mavericks can update their apps for free from the Mac App Store℠. iWork and iLife for iOS are available for free from the App Store℠ for any new device running iOS 7, and are also available as free updates for existing users. GarageBand for Mac and iOS are free for all OS X Mavericks and iOS 7 users. Additional GarageBand instruments and sounds are available for a one-time in-app purchase of $4.99 for each platform.

  • Problems with Full restore using Time Capsule backup???

    For some reason my MacBook Pro recently crapped out completely, and I am trying to do a complete restore of the OS via a full backup I made with using Time Machine onto my Time Capsule disk, but I am running into some problems doing so and I was hoping someone might have some insight as to how I should deal with things at this point...
    Here's where things get messy...
    - I insert my Mac OS X 10.5 Installation DVD into my Macbook and boot from the drive, and I immediately choose the menu option to 'Restore from Time Capsule Backup'...
    - After logging into my Time Capsule and then choosing the proper .sparseimage file to restore from, I click 'continue' and it brings me to the screen where I choose where I want to restore to (which in my case, is the one and only internal HD inside my Macbook Pro)
    - The bottom of this window tells me that it's "Calculating space required to restore data..." but it simply hangs at the point with a spinning wheel indicating its still doing the calculating, but never actually presents me with the space required, not does it allow me to click continue to perform the restore?? I've allowed it over an hour to calculate the space required and it still just spins its status wheel...
    This is where I am stuck at this point, and I have no idea how to get it to proceed to the next step to allow me to perform the restore??
    Any suggestions would be greatly appreciated, as I will have no choice but to do a complete reinstall (including all apps and data) if I can't get the backup restored... Thanks!

    I had the same problem when installing a new HDD in my Macbook. The solution I found was to reinstall Leopard onto the new HDD from the install CD, then reboot off the install CD once I had done this. I was then able to choose the 'Restore from Time Capsule' option and get my HDD to show up in the window.
    A word of warning, once you have reinstalled Leopard and it starts asking you for all you info, as if for the first time to set up your computer, there is an option at the end of that process to restore your data from a Time Capsule backup. While this did restore all my files and so forth, it did not update any of the 'Apple' apps, i.e. iTunes, iPhoto, Quicktime, or the operating system itself, suggesting a 500Mb download via 'Software Update' to update the system. It was faster for me to reboot of the install CD and restore via the process outlines above. That way you get all your system updates included.
    Not sure if this is the 'approved' method but it worked for me! The restore process took about 75 minutes for about 100Gb of data from my external backup drive connected to my Macbook via a Firewire cable.
    Hope this helps!

  • 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

  • RMAN parameters - to use more CPU for Backup & Restore

    Hi Friends,
    I am using RMAN backup on 11g database on windows.
    RMAN is taking almost 1 hr to restore the database and i could see the CPU usage is very less - less than 10% during restore.
    so how can i make the RMAN backup and restore faster by using more CPU on windows.
    Regards,
    DB

    839396 wrote:
    Hi Friends,
    I am using RMAN backup on 11g database on windows.
    RMAN is taking almost 1 hr to restore the database and i could see the CPU usage is very less - less than 10% during restore.
    so how can i make the RMAN backup and restore faster by using more CPU on windows.Where is your bottleneck? ... On Storage? If yes, your CPU available are useless during backup/restore operation.
    Even better, check the wait events in your database and you'll know why the backup / restore is not as expected.
    See this example:
    http://levipereira.wordpress.com/2012/08/09/what-is-slow-rman-or-media-management-library/
    Regards,
    Levi Pereira

  • How to do oracle  backup,restore,recovery using php?

    Is there anyone know how to do oracle backup,restore and recovery using php? any tips... is there any ways to do that?

    Are you referring to performing RMAN backup operations via the OSB web tool? RMAN operations are managed, not via the web tool, but through RMAN command line or Oracle Enterprise Manager (EM)
    Donna

  • Restore using incremental backup with noarchivelog mode

    Hello experts,
    We are running SAP on Oracle databse(IN NOARCHIVELOG MODE) for which we are having full offline backup on every sunday and post which incremental backups on rest of the days. We have scenario to do restore db to the state till last friday's incremental backup.
    Please let us know the procedure for restoring till that point. If possible using brtools utility(which is SAP specific).
    Thank You
    Regards,
    Venkateshwar

    If you do not want to read the whole doc This is the snippet for you.
    Recovering a NOARCHIVELOG Database with Incremental Backups
    Restoring a database running in NOARCHIVELOG mode is similar to restoring a database in ARCHIVELOG mode. The main differences are:
    Only consistent backups can be used in restoring a database in NOARCHIVELOG mode.
    Media recovery is not possible because no archived redo logs exist.
    You can perform limited recovery of changes to a database running in NOARCHIVELOG mode by applying incremental backups. The incremental backups must be consistent, like all backups of a database run in NOARCHIVELOG mode, so you cannot make backups of the database when it is open.
    When you are recovering a NOARCHIVELOG database, specify the NOREDO option on the RECOVER command to indicate that RMAN should not attempt to apply archived redo logs. Otherwise, RMAN returns an error.
    To recover a NOARCHIVELOG database with incremental backups:
    After connecting to the target database and the recovery catalog, place the database in a mounted state:
    STARTUP FORCE MOUNT
    Restore and recover the database.
    For example, you can perform incomplete recovery with the following commands:
    RESTORE DATABASE
    FROM TAG "consistent_whole_backup";
    RECOVER DATABASE NOREDO;
    Open the database with the RESETLOGS option.
    For example, enter the following command:
    ALTER DATABASE OPEN RESETLOGS;

  • Using Lenovo's Enhanced Backup & Restore Questions

    Hi all,
    I am wondering if anyone has any experience in using Lenovo's Enhanced Backup & Restore.
    My situation is that I am thinking of updating the firmware on my MyDigitalSSD 128GB mSATA SSD to the latest version. However, from what I read, the update will wipe the mSATA SSD. Also, at the moment, I have been backing up my C:\ to an external HDD weekly using Lenovo's Enhanced Backup & Restore software.
    My question is if my steps below are workable and if the Enhanced Backup & Restore program will restore my system back to the latest backup?
    1. Use Enhanced Backup & Restore program to backup the latest image of my system.
    2. Update firmware on my mSATA SSD. All data will be wiped.
    3. Use my Recovery Discs to restore the mSATA SSD to Lenovo's factory image.
    4. Use Enhanced Backup & Restore program to restore the latest image.
    Any comments, anyone? Thanks in advance!

    You can only restore to the same hub, as the serial numbers have to match.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • System copy using oracle backup/restore - sapinst does not restart after re

    I am performing a system copy of a BW3.5 system, using the system copy procedures and Oracle backup/restore. on the target node, I have installed the CI. I have run sapinst to install the database up to the point when it tells me to install the Oracle Server software, then restore the backup, and choose 'OK' in the dialog box. As I did not want to leave this dialog open, I chose 'cancel'. I have now installed Oracle, and restored the database, but when I try restarting sapinst I get the following error, and sapinst quits:
    FKD-00049  XML - Parser error: error: invalid symbol '' in literal 'SAPSYSTEM_DB
    indind_ind_ind_ind_0_SAPSYSTEM_ind_ind_ind_ind_ind_0_SAPComponent_ind_ind_ind_
    ind_ind_0_SAPComponent_Accounts_ind_ind_ind_ind_ind_0_SAPCompon' in line 1, 1
    in file
    ERROR      2007-08-20 15:06:13 [iaxxcsihlp.hpp:208]
               main()
    FCO-00031  An error occurred during the installation of component Problem: error
    in persistency subsystem.. Press the log view button to get extended error info
    rmation or press OK to terminate the installation.
    Has anybody ever experienced this before, or have any clues as to what the problem is? This is a production system, and it is supposed to be available by the end of the week....

    Hi Angie,
    You should always mention OS details while drafting message.
    First, CHeck you must selected same SID as earlier while installation or Oracle and DB.
    Secondly, you can skip this phase in SAPInst, bit technical for you.
    Alternatively,
    Recommendations
    - Set parameters as per SAP Note 356370
    - Change the swap mode from 'intermediate' to 'deferred' as described in
      SAP Note 97179.
    - Add /usr/sbin to the path of the user <sapsid>adm in the file
    .cshrc, .login, .profile in the user's home directory. Enter the
    following command(s) at the end of .cshrc, .login, .profile:
      a) If using a csh, enter:
           set path=(/usr/sbin $path)
      b) If using a sh, enter:
           path=/usr/sbin:$path
           export path
    Br,
    Amit Lal
    Reward suitable pts.

  • HT1766 I backed up to my PC and attempted restore but I keep getting an error message that "iTunes could not restore the iPhone because not enough free space is available." I have a 32GB iPhone; only 13GB used!!!  HELP!  iCloud backup/restore did not work

    I backed up to my PC and attempted restore but I keep getting an error message that "iTunes could not restore the iPhone because not enough free space is available." I have a 32GB iPhone; only 13GB used!!!  HELP!  iCloud backup/restore did not work either! How can I resolve this problem to restore from back up.

    If you're not a developer then you really should not have upgraded.
    I'm unsure how you can fix this as you have already done a back-up on iOS 7 and apple don't support firmware downgrades.

Maybe you are looking for

  • Multiple ipads on one iTunes account

    If a classroom has multiple ipads synced to 1 account (say 20) does that mean they only need to purchase 1 copy of a IBA textbook to have it on all 20 ipads?

  • Condition / Exception

    Have you ever used a condition / Exception based on the selection screen of a query? This is what i'm trying to do. In my query, I have: Service Order (CHAR1) (Actual Time) KF1 Planned time KF2 Deviation (KF1 -KF2) My requirement is to highlight serv

  • ITunes authorization f** up

    I bought an album off of iTunes (it is up to date) and there are two songs on said album that it is telling me need authorization. when i type in my apple id and the password iTunes freezes. *** iTunes.

  • Address Book or Contacts button no longer in Mail toolbar

    I realize the Address Book app has been renamed to Contacts but it used to be very convenient to have an icon for it in the Mail toolbar. I can't seem to find a way to do that now. Anyone have any tips on this? Thanks

  • Reg: sync doesn't show recent changes

    Hi All, I have been facing this issue since a while but never found a solution. I am using NWDS 7.0.15 I have imported a DC long back to my workspace. After that it had undergone many changes and all those changes are checked in. Actually now i am tr