Hot Backup & Restore Files.

Hi Team ,
I am new to the RMAN. Working on HOT backup & restore operation.
I want to know while taking backup which are the files i.e DataFiles , ControlFiles, Snapshot files , password files & archive log files we needed.
Also same for the restore operation.
Thanks.

RMAN can backup:
Datafile
Controlfile
SPFile
Archivelogs
If you want to backup anything else like ini.ora, password file etc then you have to do it manually.
Daljit Singh

Similar Messages

  • RMAN Hot backup Restore in new Server

    Hi,
    Our Current Environment:
    Source: Current Production
    Database: 11.1.0.7
    OS: Windows server 2003 R2
    Target Environemnt:
    Database 11.2.0.1
    OS:windows server 2008 R2
    Here my scenario is  need to take RMAN Hot backup in Prod Instance and need to restore in New Server with smae SID which is going to use as Prod instance.
    Please suggest the detailed steps in order to achive the goal.
    Waiting for your thoughts.
    Thanks
    Shaik

    RMAN can make it easy to restore a database to a new host.
    Notice that: Using RMAN RESTORE and RECOVER commands to move a database permanently to another host, will keep the original database identifier (DBID) and will therefore cause a conflict in the RMAN repository, because the restored database with the same DBID will be considered the current target database.
    Below you may find the steps:
    Preparing the New Host
    Record the DBID of the source database.
    Copy the initialization parameter file from the source database to the new host.
    Make sure that all source database backups are available to the new host. Do not connect to the recovery catalog.
    Restoring and Recovering on the New Host
    Configure environment variables on the new host.
    Connect to the new target database with NOCATALOG.
    Set the DBID.
    Start the instance with NOMOUNT.
    Restore the SPFILE from backup.
    Shut down the new instance.
    Edit the PFILE.
    Start the instance with NOMOUNT (again).
    Create an RMAN RUN block to restore the control file.
    Create an RMAN RUN block to restore and recover the database.
    Open the database with RESETLOGS.
    Regards,

  • 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.
    ------------------------------

  • OS 2.0.0.7971 modifying backup/restore file

    OK, I'll update this post as I progress. This might be a long process.
    Reason for doing what I am doing:
    1. Updated to official OS 2.0 and browser will not start
    2. Through my troubleshooting found out it has to do with the "application data" restore file. Here is my post with all the details: http://forums.crackberry.com/blackberry-playbook-f222/os-2-0-browser-bridge-messages-not-starting-70...
    3. Would like to be able to restore all my game profiles/saves and be able to have the browser working. With the restore process I am only able to have one or the other.
    I have taken one of my backup files. Extracted it. individually gone through each folder. Yes, there are hundreds (maybe 1000). And located the folders that seem to hold files associated with the browser native app.
    Two folders I found are:
    gYABgFX7ZKaP5vqkK1khM4zoP0A
    gYABgJYFHAzbeFMPCCpYWBtHAmo
    I am thinking about two options:
    1. Removing the two folders completely (might remove the whole app, maybe not a good idea)
    2. Deleting individual files that in the folder that I deem might not be needed. Yes I would be guessing what ones are needed and not.
    I would then have to recompress the files back into the backup file and restore them on the playbook and see what happens. It is a lot of work and a lot of time. But for some stupid reason it seems fun to me. LOL
    Any ideas from the forum friends? Anyone played with altering the backup files? I was actually quite surprised that the backup are so easy to view and that I could potentially alter them.
    I will wait for responses and suggestions prior to advancing. and will update this post with my process along the way.
    THANKS!!
    Update 1:
    I will be doing the backup "customization" tonight and then the restore. Wish me luck!
    If anyone has any knowledge or has tried anything let me know. All advise is appreciated.
    I think I am going to start by creating a restore file with most of the files deleted. I am able to see what each folder pertains to (ex. calendar, modern combat, angry birds). I'll remove most of the apps/games and do a restore and see what happens (that way it is a small restore and not 6gigs).
    I'll update as I go.
    Brian
    Update 2:
    Didn't have the time the other night to do the restore. I am compressing the backup file right now and will restore it tonight. Wish me luck!!
    Brian

    Hi, I like to add some of my issues with the new OS.
    1. Wifi not as robust as before - it now keeps dropping connection.
    2. Screen seems less sensitive and gestures less responsive - it now takes several attempts to get gestures to work.
    3. The PlayBook seems to be generally slower and less responsive than before update.
    It's not all bad though, new keyboard is much better than the old one. New layout (after getting used to it) is quite good too.
    Guy

  • Backup/Restore - File Source Not Found

    I'm having trouble restoring a .bak file while moving it from laptop A to laptop B. First, on A, I backed up the 'Staging' db, creating the Staging.bak file which I transferred to laptop B. I restored (or thought I did) the .bak on B but it doesn't show
    up on my list  of B's Databases even after refreshing and restarting SQL Server.
    Second, I then tried with T-SQL as below and got the error shown. I'm specifying a path with '\Program Files' and the error msg refers to 'Program Files (x86)' which, on my machine, doesn't have the subdir's listed in the err msg. Those dir's are part of the
    \Program Files path (and this is also the 'Data Path' listed in SQL Server Config Mgr).  I'm running SQL Server 2014 Express on Windows 8.1.
    RESTORE DATABASE Staging
    FROM DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\Backup\Staging.bak' ;
    Msg 5133, Level 16, State 1, Line 1
    Directory lookup for the file "C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\Staging.mdf" failed with the operating system error 3(The system cannot find the path specified.).
    Msg 3156, Level 16, State 3, Line 1
    File 'Staging' cannot be restored to 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\Staging.mdf'. Use WITH MOVE to identify a valid location for the file.
    Msg 5133, Level 16, State 1, Line 1
    Directory lookup for the file "C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\Staging_log.ldf" failed with the operating system error 3(The system cannot find the path specified.).
    Msg 3156, Level 16, State 3, Line 1
    File 'Staging_log' cannot be restored to 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\Staging_log.ldf'. Use WITH MOVE to identify a valid location for the file.
    Msg 3119, Level 16, State 1, Line 1
    Problems were identified while planning for the RESTORE statement. Previous messages provide details.
    Msg 3013, Level 16, State 1, Line 1
    RESTORE DATABASE is terminating abnormally.

    When you take a backup all information including the file path(.mdf/ldf) is included as part of the backup. As you found out if you just run restore database it will try to restore to the exact same location(C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\).
    Looks like you dont have this path(C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\) on target server where you are performing this restore.
    To know the files and locations from backup file, you can use RESTORE FILELISTONLY option allows you to see a list of the files that were backed up and their original path.  So for example if you have a full backup you will see all of the data files
    (mdf) and the log file (ldf) and their path.
    RESTORE FILELISTONLY FROM DISK = 'C:\AdventureWorks.BAK' WITH FILE = 1
    The result set would like the following.  The things that are helpful here include the LogicalName and PhysicalName.
    ColumnName
    Value
    Value
    LogicalName
    AdventureWorks_Data
    AdventureWorks_Log
    PhysicalName
    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf
    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Log.ldf
    So as suggested please use WITH MOVE option while restore to provide the valid path.

  • Recovery using Hot Backup

    We have to create a new enviornment(pre-prod) using Hot backup (restore from tape of last week) of the current prod DB, we have installed the same version of software as in prod and prepared init file but i am not sure about how we are going to do the recovery from last week backup,it would be a incomplete recovery as they want data till last week only,to my knowledge..we will create a new control file and open the DB using resetlogs...please can somebody help/guide me more on this...please share the steps required.
    Thank You

    We have to create a new enviornment(pre-prod) using Hot backup (restore from tape of last week) of the current prod DB, we have installed the same version of software as in prod and prepared init file but i am not sure about how we are going to do the recovery from last week backup,it would be a incomplete recovery as they want data till last week only,to my knowledge..we will create a new control file and open the DB using resetlogs...please can somebody help/guide me more on this...please share the steps required.If you have backup of one week older, then
    1)startup instance in nomount status
    2) check the logfile of RMAN for controlfile backup piece
    or from Production give below command and check for the backup of the last week controlfile.
    RMAN> list backup of controlfile;
    note the backup piece
    3) again back to pre-prod
    RMAN> restore controlfile from 'backup piece';
    5) SQL> alter database mount;
    6) RMAN> Restore database;
    after restore database open database with resetlogs, If you see any inconsistency apply archives 1/2 or as needed for consistency. and open database with resetlogs.
    Here duplicate from active database wont work as you want 1 week older data.

  • How to Restore datas in Oracle 10g using hot backup?

    I did Hot backup things (On-line backup) in Oracle 10g (Windows environment)
    Now backup files are stored in physical location..
    How to restore the datas to original location..
    Can any one give the url or command for recovery in ora 10g for hot backup
    Thanks

    Please do not dump all of your work in this forum, and expect volunteers to do it for free!!!
    Dear Great Senior DBA Sybrand Bakker
    What are Oracle Discussion Forums?
    Oracle Discussion Forums is an interactive community for sharing information, questions, and comments about Oracle products and related technologies. Most forums are moderated by product managers, and all of them are frequently visited by knowledgeable users from the community
    oracle forums is not your place for showing “bossing” it is a place where junior to seniors share there knowledge and advices, it means helping and sharing….. Knowledge is for giving ….giving only it will increase… don’t discourage any one like this ……
    There are my Great Seniors (not like u) mainly respected Mr. Jonathan Lewis, Mr. Don Burleson and a lot of oracle nominated ACE members are all giving patiently replay to jr. to sr.
    Obeasley oracle doubts are mostly related to practical issue only……
    Pls try to learn the word meaning of “volunteers”

  • Failure when trying to open db with resetlogs after restore of hot backup

    Hello,
    i know that ora-600 errors should be directed to oracle instead of here, but as i have no access to oracle support you may be able / willing to give me some hint anyway. here is what i tried to do:
    1. Make a Hot Backup of an Oracle DB running on Win2003, Version 9.2.0.5
    2. Trying to restore this backup on a new host, running WinXP, Oracle 9.2.0.5
    I can create the new controlfile and do a recovery with the syntax
    "recover database using backup controlfile until cancel"
    However, after this i'm trying to open the DB with the following syntax:
    "alter database open resetlogs"
    This takes a few seconds, then the instance gets terminated, showing an ora-600 error in the alert.log (i guess its useless to show the specific ora-600 error here, or am i wrong at this point?)
    now i'm wondering if the difference in the operating system could be the reason ? I also have to mention that the database files from the hot backup were transfered over a WAN line, could a damage to this files, happened during the transfer cause something like this ?

    These are from Howard
    When you re-create a controlfile using a script or command that says 'create controlfile...', that command will require you to spell out the path to all the datafiles and online redo logs. It is a simple matter for your server process to visit each of the files mentioned in the create controlfile and read the SCN stored in the datafile header. It can also read the online redo logs and read the latest checkpoint change number stored there.
    If all those numbers agree, that is obviously the age to which the rest of the database had gotten before the controlfiles were lost, and it's OK to create the new controlfile with that agreed-upon SCN forced in to the controlfile as its new SCN. Therefore the entire database is consistent and the database can be opened without recovery.
    This sort of thing is what happens when you close your database down nicely and then delete all controlfiles as part of a recovery demo on a training course!
    If those numbers don't agree, then it doesn't really matter. Logically, the highest number found, whether that be in one or more of the datafiles or one of the online logs, must be the age the database had reached before disaster struck. Your server process then writes that highest number into the new controlfile as its new SCN, and therefore your new controlfile agrees with the age of the latest bit of your database. The bits which were found to have smaller SCNs than that are therefore obviously in need of recovery -and because your new controlfile knows the SCN at which recovery should stop, recovery can be performed without trouble.
    When the datafiles are inconsistent the control file has the latest SCN on it and it tries to bring the entrire database consisent with respective to its SCN..if something does not matches it says it is consisten
    SO the recovery is done mainly based on the Controlf file..but the term backup..assume we have binary backup or the created new controlfile will have the scn to bring the DB to consistent state
    Message was edited by:
    Maran Viswarayar

  • How do I restore backup swm files created during system recovery from external hard drive

    Good day,
    I was facing some problems with my laptop (HP Envy 17 3D Notebook with windows 7 home premium, 64 bit) and I had to return it back to its original state using system recovery.
    During the process I was asked if I want to back up my data. I have chosen to backup my data in the flash drive. Once the process has completed and my laptop is to the original state, I tried to recover my backup but it tells me:
    The version of this file is not compatible with the version of windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
    If i click run as administrator it tell me:
    Windows cannot find 'F:\Backup_2015-04-29 143842\Restore.exe'. Make sure you typed the name correctly, and then try again.
    there are files labeled like backup.swm, backup1.swm, backup2.swm. I can't open these files or do anything with them. In a text document it lists all the files it apparently copied. It is only a list of text, nothing else.
    any help will be greatly appriciated.

    Hi @Jef35,
    Welcome to the HP Forums!
    It is a superb  place to find answers and information!
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I understand that while doing the recovery back to factory you opted to backup your personal files  and would now like to know how to restore them .
    Here is a link to  HP PCs - Restoring Files that were Backed Up Using HP Recovery Manager (Windows 7)
    If you appreciate my responding, please click the kudos button below to say thanks.
    If this resolved your difficulty please select solution provided to enable other posters to locate this information more easily.
    I hope this helps
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • I am trying to restore files created using Backup in Tiger.  How do I do this on a Snow Leopard machine which is connected to the Tiger external drive?

    I have an external disk that was used on Tiger iMac. I used Backup to save files. Now that I have this external drive connected to a new IMac running SnowLeopard, how do I restore files?

    Backup 3.2 is still usable if you have a MM account and can download the upgrade.  Otherwise you'll need to restore them via Tiger.
    If the backup is not archived, then the individual files may be accessible directly.

  • Restoring files from time machine backup made using Mountain Lion

    Hi Guys
    I have trawled through the Internet and found many sources of help for some of my headaches but still can't help the problem. So here I am.....
    I have an early MacBook Pro 13" that came with snow leopard. I immediately updated to lion which was a disaster being so slow etc. Then I upgraded to mountain lion which was pretty good. I always upgraded and never clean installed.
    I have been running time machine on a Qnap nas (model 212) which I must add has been a headache to get going in itself.
    Anyways I recently upgraded to mavericks which made my MacBook grind to a halt. I mean even the beachball was struggling. To the point after 2 weeks I couldn't get anything done on it!
    So I decided to do a clean install.  Did that and then tried to do restore files using migration assistant at first log in. Turns out my back is corrupted!
    Now I know I have a good complete backup of my mountain lion system just 2 weeks old on my nas. Only problem is that mavericks won't let me get to that when I try to upgrade from that drive as it just says no OSX backup available.
    Now I am trying to install snow leopard cleanly and the try and upgrade to mountain lion hoping that it would recognise the mountain lion backup on my nas.
    Can you please let me know if I am going in the right direction?
    Any help appreciated guys.
    Thanks

    Everything since the fresh install, has to be done manually from my Backup drive. Wasn't, or isn't TM supposed to do that automatically (for example restoring iTunes, is it supposed to restore just the application or all the folders with it as well?). Why, when I select a folder with many subfolders in it (and eventually the files I want within) does it say that the original whatever doesn't exist anymore at that location, then I have the option to choose a new location or to recreate the enclosing folders? I Click on recreate but when I do, just the top level shows (the first folder, for example, garageband). No more folders are shown inside, despite there being plenty of files in my backup version. Am I misunderstanding TM's powers/capabilities here? Is it supposed to be this frustrating and difficult?
    Everything that I want has to be done manually it seems. I don't understand it. The other thing is that it denies me access (I don't have the privileges or whatever it says) to move the files directly via the mounted disk on the desktop rather than entering TM. So, I can't go into TM and click restore, I can't manually open the mounted drive and drag files (denies me permission). The only way I've been able to do anything successfully is to archive the **** folder/s or files.
    Any help or direction, or a manual on how to use or tutorial on Time machine would be great. Someone point me in the right direction please, this is highly annoying and I am debating switching back to Leopard (having issues with iChat in Snow Leopard).
    Thanks

  • How can I restore files from my old iMac to this new purchased MacBook Air? I am using time machine backup in my old imac.

    How can I restore files from my old iMac to this new purchased MacBook Air? I am using time machine backup in my old imac.

    Hi,
    Try Target Disk Mode
    OS X Yosemite: Transfer files between two computers using target disk mode
    There is also Migration Assistant.
    OS X Yosemite: Transfer your info from a computer or storage device

  • Disk Utility can't repair this disk...disk, and restore your backuped-up file.

    Computer got uber slow.
    I started to worry.
    Now computer won't start.
    VERY worried.
    Tried to repair disk. Received error message above.
    Any help would be greatly appreciated.

    sulaver wrote:
    Computer got uber slow.
    I started to worry.
    Now computer won't start.
    VERY worried.
    Tried to repair disk. Received error message above.
    Any help would be greatly appreciated.
    You can't have received an error message "Disk Utility can't repair this disk...disk, and restore your backuped-up file." since that is pure gobbledegook and isn't even good English.
    What may have happened is that
    (a) your hard drive has become so full that the operating system can't find any space in which to.... operate.
    (b) as macjack says, it has crashed - possibly as a result of (a).
    (c) you have been allowing Time Machine to back up to your internal hard drive instead of to a backup disk, which has caused (a) to happen.

  • Exposé hot keys disabled after Time Machine "Delete all backups of file"

    I have been having the same problem that was initially mentioned in this topic:
    http://discussions.apple.com/thread.jspa?messageID=5850265#5850265
    Namely, sometimes after I restart all of my Exposé and Dashboard hot keys have been turned off (but not the Spaces hotkey, just F9-F12). My hot corners for turning off or on the screensaver work just fine, but I have to manually go in and turn back on my Exposé hot keys. Some people said it was associate with WoW, but I am not running World of Warcraft. This last time it happened (this morning), I had removed all backups of a few files in Time Machine (what's the point of having a backup of a rented movie after the 24 hour viewing period has expired?). I have been looking for a way to report this to Apple, but have been unable thus far.
    I just tested it to see if you have to restart, and you do not. About thirty minutes ago I turned all the Exposé hot keys on, and just a minute ago I deleted a backup of a file on my Desktop in Time Machine (by selecting, "Delete all backups of file ______") and the hot keys had been disabled again.
    Does anyone know if there is a way to fix this?

    Mechanist wrote:
    At some point I told Time Machine to get rid of backups of a particular file using the "Delete all backups of ..." option. Time Machine duly deleted the backups of the file and stopped making new ones.
    Not exactly.  It did delete the existing backups, but didn't make any new ones because the file hasn't changed since then.
    The easiest way to get it to back it up is to make a minor change to it (the name or something in the contents), then change it back.  Time Machine should back it up on the next backup.
    Alternatively, you need to force a "deep scan," where Time Machine compares everything on your system to the backups.  Usually, just starting up from your Recovery HD will do that, although sometimes you have to start from it and Repair your internal HD to trigger it. 
    If you're not sure how to do that, see Using the Recovery HD and/or #6 in Using Disk Utility.

  • Upgrading to V4 has lost all of my Bookmarks, I still have the restore files in my profile data but they will not load, I have tried importing the html backup file too but it didn't work either. How can I get them back?

    Upgrading to V4 has lost all of my Bookmarks, I still have the restore files in my profile data but they will not load, I have tried importing the html backup file too but it didn't work either. How can I get them back?

    Ok this is bizzare!
    Thank you for your response, I went throught each and every step without any luck, even got the recovery programme, and painstakingly tried to sift through all that mumbojumbo to find what i needed. finally found the bookmark bit, but it had been fully overwritten :(, so on reading about previous ff versions, found the sqlite thingys, and they were relatively unscathed(partly written over, but saveable apparently TG), saved them to adiff drive, amongst other possibly good folders. Then looked up how to install them, and it said to close FF, and install to profile folder.
    So i tried to close FF, and the original problem from a few days ago, where it asked me if 'i was sure i wanted to close this window as it has X tabs open', popped up again. This is where 'open blank page' selection was set, over 'open previous tabs'. Wanting to save that info on how to sort out these friggin files, I reset the Option to 'open previous tabs', and closed FF. After unsucessfully searching for the profile folder on my laptop, i opened FF intending to search online for where i could find said folder.
    AND BANG, surprise surprise, the FF I had just closed with only tabs open about finding out what the heck to do, had disappeared, and instead my original saved tabs were up, and my bookmarks are there..... I am gobsmacked! what the heck just happened there???
    I have made 3 back up in different folders now, of those friggin bookmarks. I am weary now tho of shutting it all down.... what if its back to the other pages I had with no bookmarks, tomorrow :(

Maybe you are looking for