Recovering a datafile from backup in different server

Hi All,
I usually take hot backup of datafiles to different server like this because i dont have enough space in same server. I
SQL> alter tablespace XXXX begin backup;
host scp /bu1/oradaTA/XXXXX/XXXXX [email protected]:/db1dw/oradata/backup/dec2010/XXXX
alter tablespace OPS end backup;
If i want to recover the datafile can i normally do the offline drop of that datafile and copy the datafile from backup which is in differnet server thorugh scp and make the datafile online??? and the database is in archivelog mode but i dont care abt the log files. i just need to recover the datafile as it was from last backup.
or do we need to use any recover datafile commands?? if need to use any recover datafile command from where it will recover the datafile??
i dont have any scripts for backup or recovery , i just take manual scp of the datafiles.
Help plzz, thanks in advance.....

SQL> alter tablespace XXXX begin backup;
host scp /bu1/oradaTA/XXXXX/XXXXX [email protected]:/db1dw/oradata/backup/dec2010/XXXX
alter tablespace OPS end backup;What is the version you are using? is it 9i if not you can peform backup at database level instead of tablespace level.
If i want to recover the datafile can i normally do the offline drop of that datafile and copy the datafile from backup which is in differnet server thorugh scp and make the datafile online??? and the database is in archivelog mode but i dont care abt the log files. i just need to recover the datafile as it was from last backup.Why offline drop to recover? Are you sure what are you doing?
or do we need to use any recover datafile commands?? if need to use any recover datafile command from where it will recover the datafile??1) alter system switch logfile;
2) select max(sequence#) from v$archived_log;
For Ex:
Sequence -- 100
3) alter database begin backup;
4) copy all the datafiles to another server(bcoz you not have space in same server)
5) alter database end backup;
6) select max(sequence#) from v$archived_log;
For Ex:
Sequence -- 110
Then copy these generated 10 archives to new server also.

Similar Messages

  • Recover safari bookmarks from backup of different Mac

    My iMac running Snow Leopard died. Electricuted in one of those Florida lightening storms. I will miss you.
    My back up machine is a fine old MBA also running Snow Leopard.
    I want to replace the Safari 5.1.7 bookmarks from the iMac onto my MBA.
    I had several backups of the iMac just prior to the rath of Zeus including TM, CCC and Mozy. So I have the file(s) that have the iMac Safari bookmarks. But where are they and what do I need to copy over to the MBA. I suspect the CCC disk is the easiest place to look. Not sure what will happen if I connect this MBA to Mozy or TM. I am looking on the used market for a replacement 27 iMac that is running Snow. 
    iMac was nearly full 500GB hard drive
    MBA is very nearly full 80GB hard drive.

    Boot from the CCC backup then open Safari and go to the file menu and export the Bookmarks to the desktop. then copy the Safari Bookmarks.html file to a thumb drive followed by transfer to the desktop of the MBA. Use the Import Bookmarks choice when booted in the MBA.

  • Spfile restore from RMAN Tape backup to different server

    Hi All,
    First of all let me thank you to the forum from which I keep updating my knowledge on oracle.
    I am having issues when trying to restore spfile from controlfile autobackup to different server. Problem and other details are below:
    Target version : 10.2.0.2
    Netbackup : 6.5.6
    Taken the tape backup through rman on server ABC and trying to restore the spfile from controlfile autobackup to server XYZ. Tape backup has been taken today morning and trying restore now.
    Both servers ABC and XYX have been added (as clients) to netbackup policy.
    Below is the syntax I used for restoring spfile and getting error as mentioned.
    RMAN> run {
    2> set controlfile autobackup format for device type 'SBT_TAPE' to '%F';
    3> allocate channel ch00 device type 'sbt_tape'
    4> parms='ENV=(NB_ORA_SERV=Mediaserver,NB_ORA_CLIENT=XYZ)';
    5> restore spfile to pfile '/oracle/product/10g/dbs/inittest.ora' from
    6> autobackup maxseq 5 maxdays 3;
    7> }
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    allocated channel: ch00
    channel ch00: sid=36 devtype=SBT_TAPE
    channel ch00: Veritas NetBackup for Oracle - Release 6.5 (2010042405)
    Starting restore at 03-AUG-2011
    channel ch00: looking for autobackup on day: 20110803
    channel ch00: looking for autobackup on day: 20110802
    channel ch00: looking for autobackup on day: 20110801
    channel ch00: no autobackup in 3 days found
    released channel: ch00
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 08/03/2011 14:03:26
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Not sure where I am doing wrong. The same can be restored onto same host (I.E ABC) without any issues .
    Request your help and guidance.
    Thanks,
    SSS

    I don't know whether you can restore to a different server. The easier way should be
    RMAN> restore spfile to pfile 'YOUR_PFILE_NAME' from autobackup;
    then copy this to the new host.
    Check this link
    restore spfile to another host
    Hope this helps

  • Recovering a table from backup

    Hi,
    I have a full back up of rman back up / normal back up.
    I wanted to recover a particular table from the back up without disturbing the current activities on DB/User.
    DB:11.2.0.1.0
    OS Windows 2003 Server

    Tippu wrote:
    Hi,
    I have a full back up of rman back up / normal back up.
    I wanted to recover a particular table from the back up without disturbing the current activities on DB/User.
    DB:11.2.0.1.0
    OS Windows 2003 ServerYou can:
    1) Take/copy your rman backup to remote server
    2) Restore/recover database there
    3) Take the logical backup of table through EXPDP/EXP
    4) Scp that .dmp file to Target
    5) Import that .dmp file into target
    But flashback is on? and did you tried to recover from recycle bin? Hope above steps help

  • (URGENT) How to recover tablespace/datafile from an old backup ?

    Hello,
    I'm in charge of installation of IBM Websphere Commerce with an Oracle DB.
    When I installed this software I do a "shutdown immediate" and copy all the files (data, ctl & redo) in an other directory a month ago.
    I have some issues on a specific tablespace and I'd like to recover this tablespace so that my tablespace will be in the same state a month ago.
    When I try "recover automatic tablespace data" Oracle restored and reload all the logs.
    How can I restore with that old tablespace and find the content of september or is it possible to restore a tablespace without reload the redo logs ?
    Thanks for any precious help.
    Guillaume

    If it was a complete set of files after shutdown immediate, you can mount that database on some other server with same structure and check the data in the tablespace. I dont see a need to load the old tablespace in the current database just to see some values.
    By restoring the old tablespaces, you might even run into some referentials (if any) problem.

  • Step By step guide to recover lost datafiles from RMAN

    Hi All
    I am new to RMAN recovery.
    I tried searching internet but I cannot find the detail steps for "How to restore datafile using RMAN when we have backup on tape and How to then apply archive logs" .
    Can anyone please explain the steps .
    I will really appreciate that.
    Thanks

    Thanks All I really appreciate your help :)
    So as far as I understand here is my scenario and here are the steps I will follow please correct me if I am wrong.
    I have last night backup of all datafiles and archivelog files on tape.
    I lost one of datafile in morning.
    Here are the steps I will perform to recover datafile
    Restore the backup(including archive files) from tape to OS directory.
    Mount the database
    RMAN> run{
    restore datafile 6;
    RMAN > recover datafile 6;
    RMAN> alter database open;
    The RMAN will apply all the archivelog file and datafile will be available again.
    I also have some additional question:
    1) do I have to take datafile offline?
    2) are these steps same for tablespace restore ? Do i have to take tablespace offline?
    3) How will I confirm if all the archivelogs were applied to data file and data is upto date?
    Thanks

  • Recover missing datafile (no backup exists)

    hi, m having a problem. when i try to start oracle at a clients site, i get the following error. and they do not have any backup datafile at all.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 3003121664 bytes
    Fixed Size 2079976 bytes
    Variable Size 843244312 bytes
    Database Buffers 2147483648 bytes
    Redo Buffers 10313728 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 14 - see DBWR trace file
    ORA-01110: data file 14: '/mantasDB/oradata/mantasde/bus2_data_file01.dbf'
    please, what can be done to fix this.
    thanks

    Hello,
    You wrote:
    hi, m having a problem. when i try to start oracle at a clients site, i get the following error. and they do not have any backup datafile at all.Please, I have a doubt in which case you are.
    Do you have a Backup of the database (before adding a datafile) and the archived log from this Backup, or you haven't any backup of the all
    database ?
    In the first case. By applying the archived log you'll have the following error:
    ORA-00283: Recovery session canceled due to errors
    ORA-01244: unnamed datafile(s) added to controlfile by media recovery
    ORA-01110: data file 14: '/mantasDB/oradata/mantasde/bus2_data_file01.dbf'Then, you'll have to create manually your datafile, for instance, as follow:
    select name from v$datafile where file#=14;
        NAME
        UNNAMED0014
    alter database create datafile 'UNNAMED0014' as '/mantasDB/oradata/mantasde/bus2_data_file01.dbf';Afterwards, you could restart the recovery.
    But, if you don't have backup at all, the situation is very bad, you may lost the datafile.
    Hope it can help.
    Best regards,
    Jean-Valentin

  • Recover photos only from backup

    Hello, first time posting to this forum. I hope you can help with the following situation I'm in. My wife recently semi-broke her Verizon iPhone 4 16gb, she dropped it and while the phone itself worked, the screen did not. My contract was up for renewal so I got the new iPhone 5s and gave her my iPhone 4 32gb. Prior to the exchange of phones I did a full backup of her semi-broken phone. I deleted all content from my old 32gb phone and restored this phone from the original full backup. All was well until a week later when she accidently dropped the currrent iPhone 32gb (my old phone) in a bucket of water where it remained submerged for 5 minutes until she heard a muted ringing and found it at the bottom of the bucket! So, she orders a new iPhone 4 8gb online from Verizon, when received I attempted to restore from that original backup (local to my hard drive via iTunes, the full backup that was originally on her old iPhone 4 16gb). iTunes throws up a dialog indicating that there isn't enough storage capacity on the new iPhone to do the restore? It makes sense going from 16gb to 8gb. The problem is she wants all of the photos which are contained in the original backup. Is it possible to recover only the photos? I don't believe iTunes can do that however I think there are programs out there that can do what I'm asking. Can anyone offer suggestions in recovering these photos? Can anyone provide a link to some type of extraction utility which would allow you to do this from a backup? I'm hopeful someone can assist.
    Much appreciated!

    Thank you Kappy, but I am trying to avoid (in the setup process) restoring from a backup, as others have had success with battery life setting the phone up as a new device.
    So I am essentially trying to merely be able to access the photos from the backup?!
    More than likely a futile task, but thought I would try!

  • ORA-19723: while restoring datafile from backup

    I am getting ORA-19723: Cannot recreate plugged in read-only datafile ... while restoring datafles. All datafiles are online and in read_write mode on the database. Tablespaces are also online.
    This same backup has worked before.
    This most be a misleading error...
    Please comment/advise
    Thanks

    These particular files were not restored/copied to the specified location with set newname.
    All the files have plugged_in=0 as stated below
    +USADBP_DATA_01/usadbp/repl_mgr_data01.dbf                                                                                                                                                             
    0

  • Recovering Mail data from backup

    I lost my Mail data when my Library folder was unexpectedly nuked. I've just done a clean reinstall of Leopard and I want to restore my Mail data - all the emails in my Inbox, Sent items etc. I have a Time Machine backup. I only want the Mail data, not bothered about the old Library data as I'm quite happy to have a new install of the OS and applications, I just want my Mail back.
    Can anyone please advise me on how to get it all back?
    Many thanks for your advice.

    Take a look here:
    http://docs.info.apple.com/article.html?path=Mail/3.0/en/15172.html
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/11422.html
    You could also try to take a look into the ~/Library/Mail folder on your Time Machine device and copy the data from there to the ~/Library/Mail folder on your local harddrive (while Mail is not running).

  • Updating with XML datafiles from Database or Applications Server

    Our Environment: One database server running 10g with multiple application servers.
    My Question: Am I correct in saying that if you want to update a database with XML files using a bfilename and a directory object, that the physical data files must always reside on the Database server?
    Thanks and kind regards
    Adrian

    Thank you very much for the reply.
    Our systems all operate under Unix and I was wondering whether you or anyone else knows if anyone has successfully tried to use 'soft links' to span the file systems to other machines.
    There's obviously a performance downside, but what we are trying to accomplish is leaving all 'data files' on our individual application servers.
    Thanks again
    Adrian

  • Extract datafile from rman backup

    Hi
    I want to search when logical corruption occurs in my database, so i want to extract my rman's backup and test one file with db_verify.
    But i don't want to recover database. How to extract one file without recovery and destroing working database?
    thnx
    Podkov

    podkov wrote:
    Hi
    I want to search when logical corruption occurs in my database, so i want to extract my rman's backup and test one file with db_verify.
    But i don't want to recover database. How to extract one file without recovery and destroing working database?
    thnx
    PodkovWhy don't you use VALIDATE command to check for corruption without restoring the original file?
    VALIDATE BACKUPSET 4;Instead backupset number, write correct backupset number where datafiles resides. VALIDATE command will check that datafile in that backupset against physical or logical corruption and will update V$DATABASE_BLOCK_CORRUPTION view
    Additionaly, you should know that you can restore any datafile from backup and not recover it. Restore is the operation where you get database files from backup, Recover is the operation when you apply archived redo log files to restored datafiles and synchronize all files in the database
    Edited by: Kamran Agayev A. on Aug 28, 2009 1:18 PM

  • Taking data from two different server in a single table

    Hi All,
    can u plz tell me i want take a data from a two different server in a single table
    Thanks,
    Bell.

    Again, you have written the same sentence. I have 2 servers Server1 and Server2 and one table called my_table (You or God knows where this table is).
    Now tell us what you want to do ?
    Sidhu
    http://amardeepsidhu.blogspot.com

  • Restore controlfile from backup location

    Hi All,
    I have a RMAN backup and want to recover my data from backup. RMAN backup has taken by someone but during restore to another DB server I am confused at controlfile point. I can see two controlfile in RMAN backup. Do I need to add both controlfile in restore command or any one controlfile would be okay? Please suggest.
    I run below command - rman > restore control file from '<backup location>';
    Thanks...
    Edited by: user12115 on Jun 15, 2012 5:23 AM

    I have a RMAN backup and want to recover my data from backup. RMAN backup has taken by someone but during restore to another DB server I am confused at controlfile point. I can see two controlfile in RMAN backup. Do I need to add both controlfile in restore command or any one controlfile would be okay? Please suggest.
    I run below command - rman > restore control file from '<backup location>';In you log file one of backup set contains of data files another backup set contains Controlfile + SPFILE(optional)
    Or else you can check from source database
    RMAN> list backup of controlfile;
    Note that backup piece according to date, and you can use that piece name to restore controlfile.

  • Recover corrupted datafile

    I created database from cold backup and db is up and running. After recovery identified some datafiles has corruption with dbfsize.
    Could anybody please help me how to recover corrupted datafile from cold backup?

    sorry in my first message I mentioned I verified with dbfsize. It is not dbfsize it is dbv than I found some files has corruption. I db verified original backup datafiles those file are fine no corruption. The problem is while copying the files to the new location some corruption happened. Now I will try to copy original file and dbv first. Now I to recover bad datafiles? I need some steps. Thanks in advance.
    Please provide your Oracle version, OS , the actual ORA- errorsOracle version is 9.2.0.7.0
    OS SunOS 9
    when I run dbv I got big list of errors copied portion of it....
    $cat DEEFF.log |more
    DBVERIFY: Release 9.2.0.7.0 - Production on Fri Feb 27 00:20:14 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    DBVERIFY - Verification starting : FILE = /u01/oracle/DEEFF.dbf
    Page 1024 is marked corrupt
    Corrupt block relative dba: 0x1f400400 (file 125, block 1024)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1ac580dd
    last change scn: 0x0004.f72fdb41 seq: 0x1 flg: 0x04
    consistency value in tail: 0xdb410601
    check value in block header: 0xb656, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1025 is marked corrupt
    Corrupt block relative dba: 0x1f400401 (file 125, block 1025)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1dc6d021
    last change scn: 0x0002.f8bcf84b seq: 0x1 flg: 0x06
    consistency value in tail: 0xf84b0601
    check value in block header: 0x5983, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1026 is marked corrupt
    Corrupt block relative dba: 0x1f400402 (file 125, block 1026)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1e415f13
    last change scn: 0x0004.3e23e1dd seq: 0x1 flg: 0x04
    consistency value in tail: 0xe1dd0601
    check value in block header: 0x502f, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Message was edited by:
    Gud

Maybe you are looking for

  • Context menu's in Alv Report (Grid)

    hello, what i have done- i have created a ALV report  by using the function modlue REUSE_ALV_GRID_DISPLAY. what i want-  When  user clicks with Right mouse button on some cell.                           context menu should get displayed. a list of me

  • Noob Needs Help - Importing Html Pages into "My Site"

    Greetings I am sure this is a noob question that may have been asked, but I couldn't find it by searching so here goes. I jumped right into Dream Weaver, following an online tutorial... and have a decent webpage but I must have skipped some steps or

  • Roll out requirements of SAP in European countries

    Dear All, We are in the process of rolling out SAP to our client's European business units based on our US based global template. Is there any documented procedural steps one must follow so that we do not miss any of the statutory/Legal requirements

  • Problems of setting values% with 2 decimal places in any graphics. What sho

    Guys, I have the xcelsius 2008 and can not make it work chart with values % and 2 decimal places. Already set up everything that I know the spreadsheet and graphics. Someone knows what can I do? Thanks Anderson - Sao Paulo - Brazil.

  • Exp XML Schema (.xsd) to another schema on same instance

    Hello, I hope someone on this forum can help me or point me in the correct direction. I want to export a schema which contains a table (EQUIPMENT) which has a XMLType column defined against a registered .xsd. I would then like to restored this schema