How does recovery work after an online backup

Hello,
While trying to conceptually understand how backup and recovery works, I came accross a question concerning hot (online) backup.
This is a conceptual question (I am trying to understand how things work), it is not a "how should I proceed/ what should I do step by step" question.
As far as I understand, an online backup of a tablespace can be performed by copying the OS files making up a tablespace while the database is up and being used (i.e. transactions are modifying data in the database). Before the copying of the OS files starts, the Oracle RDMS must be notified that an online backup is being taken via "ALTER...BEGIN BACKUP" (such that some additional information is written to the Redo Log, which may be required for subsequent recovery using the online backup). During recovery the Oracle RDBMS uses the copies of the OS files together with the online and archived redo logs in order to reconstruct all committed transactions and it further uses the UNDO tablespace to rollback open (uncommitted) transactions.
Thinking about this, it seems to me, that in order for this to work in all possible scenarios the undo information from the time the backup was taken may be required. Therefore backup of the UNDO tablespace should be taken as well (see the explanation for this assumption below). However browsing the internet (including the Oracle online documentation) I did not find any statements concerning the backup of the UNDO tablespace when an online backup is taken. Moreover I couldn't figure out when exactly such a backup of the UNDO tablespace must be done, to ensure that the database can be recovered in all scenarios.
I believe that undo information from the time the hot backup was taken may be required e.g. in the following scenario:
Assume we are taking a hot backup of a given tablespace, i.e. we are copying all OS files that make up this tablespace, while the database is potentially being used. Let D1 be one of the datafiles in our tablespace and let transaction T1 modify datafile D1. Let transaction T1 further be uncommitted while the copy of datafile D1 is being made and let (at least some of) the changes from T1 be included in the backup copy D1' of D1 (because DBWR has already written the modified blocks at the time they were being copied to the backup). Let transaction T1 be rolled back after the copy is completed. D1' will thus contain modifications from T1, while D1 will not.
Now some time later the datafile D1 is lost. When recovering D1 from the copy D1', the (archived) redo logs will be applied to D1'. Before that, transaction T1 should be rolled back in the copy D1', because modifications from T1 must not appear in the recovered version of the database.
I do however not understand, where the information to rollback transaction T1 exactly comes from. It may still be in the current UNDO tablespace. I do however assume that rollback information is not kept in the UNDO tablespace forever. I see three possible answers to this
(a) There are some requirements which I missed so far to backup the UNDO tablespace whenever a hot backup is made.
(b) Since the Oracle "RDBMS" has to be notified that an online backup is being done, it might store all relevant undo information (e.g. write it to the redo log) when the tablespace is put in backup mode.
(c) There are situations when recovery is not possible due to "missing old UNDO information".
Answer (b) seems the most plausible to me. I did however not find any confirmation of this and if (b) really is the answer, I would be interested to understand what information is stored where by the Oracle RDMBS and how it is used for recovery.
To summarize I have the following questions:
(I) Is there any requirement to backup the UNDO tablespace together with an online backup of a tablespace, and if so, where is this stated in the Oracle documentation?
(II) What mechanisms ensure that uncommitted transactions can be cleared from the online copy of a tablespace (potentially a long time after the copy was taken)?
(III) Do you know any links (Oracle documentation or other online resources) explaining these datails?
Thank you for any hints and answers
kind regards
Martin

Its a highly technical question and I can be completely wrong due to my very less knowledge but I would attempt to answer still. Hope I say something sensible so bear with me.
As far as I understand, an online backup of a tablespace can be performed by copying the OS files making up a tablespace while the database is up and being used (i.e. transactions are modifying data in the database).Correct. But it would depend on the tool you are going to use to do so.Using o/s level commands like CP and all would require you to manually copy the files to the backup location. Using RMAN, it would be lot easier and RMAN would take care of everything.
Before the copying of the OS files starts, the Oracle RDMS must be notified that an online backup is being taken via "ALTER...BEGIN BACKUP" (such that some additional information is written to the Redo Log, which may be required for subsequent recovery using the online backup). Again, this is a requirement only in the case of user-managed backup . In that case, because of the fractured block issue , its important that the corresponding older information/image of the buffer is also copied in the redo stream and that's done when the begin backup command is used. Using RMAN, this is not needed as RMAN can read the consistent image which it would store in the backup piece, exactly in the same way in which select request is fulfilled by oracle for a dirty buffer which is yet to be made consistent.
During recovery the Oracle RDBMS uses the copies of the OS files together with the online and archived redo logs in order to reconstruct all committed transactions and it further uses the UNDO tablespace to rollback open (uncommitted) transactions.Correct!
Thinking about this, it seems to me, that in order for this to work in all possible scenarios the undo information from the time the backup was >taken may be required. Therefore backup of the UNDO tablespace should be taken as well (see the explanation for this assumption below). >However browsing the internet (including the Oracle online documentation) I did not find any statements concerning the backup of the UNDO >tablespace when an online backup is taken. Moreover I couldn't figure out when exactly such a backup of the UNDO tablespace must be done, to >ensure that the database can be recovered in all scenarios.The reason that its not a must to do so is that if the transaction is yet active, there is no way that Oracle would overwrite the Undo information of it, even if you may come after 100 years, it would be there. The Undo segment would mark those blocks as active undo blockswhich contains the information of that transaction whose status within the transacton table of that undo segment is still marked as active. So its there all the time in the undo tablespace. Now, for an instance, let's assume that the undo is not there as well( it would be but let's assume), the changes made to the undo segment's blocks are also recored in the redo as its just a change happening to any other segment like EMP,DEPT except with the difference that its not done by you but by oracle. So using that information, in the future , if there would be a need to replay those changes, necessary information to do so can be brought up from the redo blocks stored in the redo/archive logs. Yes, if there would be pending transactions that would require Undo information to get them rolled back and you have lost Undo tablespace and have no backup of it , you wont be able to bring back the database as it would be inconsistent and oracle would not let you to do it. In that case, you may require to use hacks to get it up and that would be really tricky situation.
(I) Is there any requirement to backup the UNDO tablespace together with an online backup of a tablespace, and if so, where is this stated in the Oracle documentation?As I said above, it must be there if you are anticipating loss of Undo tablespace. If you have lost it, you would need a backup and all the archive logs and redo logs to recover and get it back to the point where the current database is . Rest, oracle would take care as it would reapply the redo contents of the undo segments over the undo segment and get it consitent.
(II) What mechanisms ensure that uncommitted transactions can be cleared from the online copy of a tablespace (potentially a long time after the copy was taken)?As I said , pending transaction's undo is never overwritten by Oracle. Its always kept and marked as active undo . Only a transaction end would make it elgible to get overwritten and that too won't happen immediately(undo_retention would kick in) .
(III) Do you know any links (Oracle documentation or other online resources) explaining these datails?I have to see if its there some where step by step mentioned and I shall update the reply once I shall find the link. Hoep someone else in the meantime finds it .
HTH
Aman....

Similar Messages

  • "F11 System Recovery" during boot does not work after Cloning hard drive.

    Problem: “F11 System Recovery” during boot does not work after Cloning hard drive.
    HP Envy m6-1125dx UEFI Notebook Computer with GPT hard drive.
    Original Seagate Hard Disk GPT 700GB with Window 8.0_64 upgraded to Windows 8.1_64
    Startup Menu (F11 System Menu works properly) only on original hard drive.
    Following obtained from Disk Management & diskpart in Command Prompt.
                                     GPT Disk <700GB>
    Partition 1 WINRE NTFS Primary 235MB/400MB [Recovery]
    Partition 2 EFI System FAT32 (LBA) Primary 108MB/260MB [System]
    Partition 3 (NONE) Unformatted Primary 128MB/128MB [Reserve]
    Partition 4 Main NTFS Primary 90GB/195GB [Primary “C”]
    Partition 5 (NONE) NTFS Primary 372MB/450MB [Recovery]
    Partition 6 Data NTFS Primary 7GB/475GB [Primary “E”]
    Partition 7 NTFS Primary 26MB/350MB [Recovery]
    Partition 8 Recovery NTFS Primary 24GB/26GB [Recovery “D”]
    I have Cloned the original hard drive to a new HGST 1TB Hard Drive using four different methods (sector by sector):
    Acronis True Image 2015
    Acronis Backup for PC
    AOMEI Backupper Professional
    Macrium Reflect
    Each time the cloning process completes successfully and has the same original partition arrangement. The computer works properly except when trying to use the “F11 System Menu” key during boot. It gives the following error message:
    “Recovery
    Your PC needs to be repaired
    A required device isn’t connected or can’t be accessed.
    Error code: 0xc0000225
    You need to use the recovery tools on your installation media. If you don’t have any installation media (like a disc or USB device), contact your system administrator or PC manufacturer. “
    Any suggestions why the F11 System Recovery does not work during boot and how to fix the problem would be appreciated. I have does various disk checking and file checking on both the original and new hard drive with no errors.
    Thank you in advanced.

    Hi,
    How did you clone the HDD ? One-for-one or different method ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My camera does not work after I restored the system, how can I use it again?

    My camera does not work after I restored the system, how can I use it again?
    Thank you for your help!

    Did try to restore "as new device" without using the backup after that?
    Did you try to reset the phone by holding the sleep and home button until the Apple logo coes back again?

  • How does UEFI work

    Hi,
    I have a P875, and need to upgrade to W8 Pro.
    I would prefer to do a clean install, in fact I would prefer to install a fresh 1Tb HDD ( £56 on Amazon ) and put Pro on that.( full version, not upgrade )
    I think I understand that I will lose all the Tosh backup/recovery tuff, but thats ok.
    But what Im unsure about is this new UEFI system. I understand BIOS in CMOS, and flashing it, but how does UEFI work, and is it HDD based. Will replacing HDD with a blank have any effect ???
    I remember when....... and arent Policemen getting younger !
    Denniswie
    Solved!
    Go to Solution.

    Satellite P875-31P (PSPLFE-00P008EN)
    I bet that the necessary files are not already on the HDD, and it will involve visiting MS site to download the necessaries once upgrade license is received.
    The process is painless. It goes like this.
    Point to the upper-right corner of the screen and click Search. Enter add features in the search box and then click Settings. Click Add features to Windows 8 and then click I want to buy a product key online. You will be prompted through the steps to buy a product key from there.
    Let us know whether additional files are downloaded.
    -Jerry

  • Apple TV does not work after trying to update software. Main light keeps blinking and on the screen shows itunes icon and a usb cable. What does that means?

    My Apple TV does not work after trying to install the new software update. The main light keeps blinking rapidly and on the screen it shows the itunes icon and a USB cable. What does that mean?

    The Apple TV is in recovery mode. Try to restore the Apple TV. Follow the link for instructions on the restore process.
    http://support.apple.com/kb/HT4367

  • TS1425 My co worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    My co-worker has given me his iPod to take home and transfer his music to my laptop, however, I am unable to access his music to download it to my computer.  How does this work?

    You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
    You can't transfer the full iTunes Library from the iPad back to iTunes.
    There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before.

  • I would like to know which app/software in MAC gives us the same feature that is provided by System Restore in Windows, and how does that work

    I would like to know which app/software in MAC gives us the same feature that is provided by System Restore in Windows, and how does that work.

    Time Machine is one such program, although it is a recursive backup program which offers limited archive capability, based on the capacity of the backup destination, and it requires you set it up before you start editing your files.   Some programs are also Versions aware, which offers a kind of restore capability by file.  Again needs to be setup before you start editing.
    Just a for-your-info:
    Mac is not an acronym, it is a nickname for Macintosh.

  • Itunes 11.1.5 will not sync new apps with iPhone 5 iOS 7.0.6 and gives grayed out "install" no message?  How does one work around this?

    Itunes 11.1.5 (MacBook Pro,OS 10.6.8) will not sync new apps with iPhone 5 iOS 7.0.6 and gives grayed out "install" no message?  How does one work around this?

    Just reboot your laptop... While its rebooting try to reboot your phone also by holding the home and power buttonn for 10-15 seconds...When your phone is turned off try to connect it to iTunes and it will recognize your phone in recovery mode.
    If you have the .ipsw file for iOS 7.0.6 saved in your desktop then in itunes press shift and click on Restore.
    Select the ipsw file and let it restore.
    If you dont have it downloaded then simply click on restore.
    I hope it works
    Cheers !

  • Getting my laptop fixed , how does it work?

    I know it may sound really basic but how does it work if I want to get my laptop fixed? Do I just walk into the store and find a random assistant or what?

    You'll want to set up an appointment online before going to the store.  They are typically too busy to see walk-ins within any reasonable period of time:
    http://www.apple.com/retail/geniusbar/
    They'll have a display showing the appointments and your place in line. 

  • af:statusIndicator how does it work?

    <af:statusIndicator> how does it work?
    i want, call a function javascript when <af:statusIndicator> changed icon from ""reconnecting"" to "connected".
    where do javascript functions change icons?
    please help me
    Edited by: Mehdi Jalali on Dec 31, 2012 10:31 AM

    yes, i know.
    but i want add my js and update my style pagecontent after partial-refreshed (completed ajax)
    Edited by: Mehdi Jalali on Dec 31, 2012 11:01 AM

  • What is UMA exactly? How does it work?

    What is UMA exactly? How does it work?
    I have T Mobile but am not subscribed to Hotspots at Home.  I do pay for the BB unlimited internet package.
    When I am connected to my router at home, it goes to UMA.  But other times, it just says wifi and is still connected to my router -- but NO UMA.  I haven't made any changes.
    What is this?

    Here is a KB that discusses UMA:
    http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=KB11735&slic...
    Hope that helps!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • What is iTunes Match and how does it work?

    What is iTunes Match and how does it work? I have several tunes on my computer that do not show complete. The source of these tunes are from my own CDs.

    iTunes match - http://www.apple.com/itunes/itunes-match/ - see FAQ at end too
    Basically it looks at the music you have in iTunes.  If it sees the equivalent on the iTunes Store site it does nothing, but it makes that copy accessible to you to download.  If you have music  it doesn't it will upload a version from your computer to the site that only you can access from anywhere online.
    In your case if you have incomplete tracks it will not fix them.  It does some kind of audio fingerprinting to make sure you aren't just feeding it a bunch of 60s demonstration cuts and trying to get whole tracks back.

  • How does autoFS work?

    How does it work? I guess on a more technical aspect. Why do some of my samba shares not show up? Would they show up better if they were afp or ftp or something? And why do they then show up after I go to server and put in the ip address? I've added a share to my login items but I guess that only means when I boot up and not when I login from sleep. I even have an alias to a folder on the share on my desktop hoping that would create the link needed but it doesn't really work. How can I make the Finder/AutoFS scan the network for shares?

    AirPlay is a means to wirelessly stream audio from your iTunes host device to an AirPlay-Ready one. Both the AirPort Express and the Apple TV are examples of AirPlay-Ready devices.
    Please see the following Apple Support article for more information: Using AirPlay

  • How does Iterate work inside an Action

    I'm having trouble figuring out how does <Iterate > work inside an <Action> in a workflow. My <Action> is to call a subprocess that takes several arguments and initiates an approval. Since I need to fire-off several approvals at the same time instead of chaining them I use <Iterate> that loops over a list variable.
    Now the subprocess being an approval the workflow gets suspended and divided into multiple parallel paths. My question is that how do these parallel paths assimilate together after approval or they don't assimilate at all and process in separate parallel lines or otherwise whichever approval returns first takes precedence and proceeds with rest of the activities.
    TIA,
    AndyDev

    Thanks for the reply. But this doesn't answer my question completely.
    Say within <Iterate> I specify **for='var_name' in='list_name'** will it continue to run after it has run once for each element in the list. If yes, doesn't it trigger the sub-process multiple times, something I don't want. If no, what happens next ? (that was actually my original ques).
    Say if list_name had 5 elements, it triggers one sub-process (which is a multiapproval) for each of them. What happens next ? Does it transition to next activity? Does it wait for all approvals to finish approve/reject?

  • How does it work? SuperDrive with double-layer support

    Hi,
    Can anyone help me? I own a macbook with SuperDrive with double-layer support. I want to try to burn a dvd with the dual layer, how does this work? Which applications do i need? I have been searching for info on this subject but havent succeeded so far..

    Any standard burning application such as Toast (or OS Xs built in burning) will burn a dual layer disk. You don't need to do anything special... it will just see the disk with double the capacity. What you do need to do is get dual layer DVDs. They're not all that easy to find at many retail stores, but they're pretty easy to find online.

Maybe you are looking for

  • Autorun Download of Photos on the Desktop - Possible?

    I'm on Windows 8.1 Pro now. There seems to be some automatic "Import Photos" capability tied to Metro/Modern in Windows 8.1.  I don't have any use for Metro/Modern apps, and in fact I can't use them because I've disabled UAC. When I had Windows 7, I

  • Deleting duplicates in library

    II've noticed over time I've got a few duplicates in the library but want to is there a easy way of deleting them all or do I have to do the tracks one at a time ! I know through view I can show duplicates but is there a way iTunes will do it for you

  • What Oracle version for XML Parser for java

    Is the XML Parser for Java only available for use with Oracle 8i? Is it possible to use with Oracle 8.05 null

  • How do I determine a message was sent by a proxy user?

    Any ideas? I looked through the object, but could not find reference to the proxy user. Is there somewhere in the message object that says that the message was sent by a proxy user? Thanks Andrew

  • UMB and GBB-BSA after run material ledger

    Hi guys, Last month the user changes in some materials standard-price by MR21. So the user had a debit balance in the 501002002 account (because MR21 uses UMB key of OBYC). After that the user run CKMLCP process and so he checked the balance in the 5