Can I plug in (restore) an RMAN tablespace backup into another DB ?

11.2.0.3/AIX 6.1
We accidently dropped a development DB without taking the latest expdp backup of an important schema. All the objects on this schema belonged to only one tablespace and we have the RMAN backup of that tablespace. Is there anyway we could recreate that schema by restoring the tablespace backup into another database ?

Yes.
Use the TRANSPORT TABLESPACE feature/method :
http://oracle.su/docs/11g/backup.112/e10643/rcmsynta2021.htm
Also check out sys.dbms_tts.transport_set_check
RMAN> transport tablespace emp_data, emp_data2
           tablespace destination '/u01/app/oracle/oradata'
           auxiliary destination '/u04/app/oracle/oradata';If you need to check your endian format use this query :
SELECT
  PLATFORM_NAME,
  ENDIAN_FORMAT
FROM
  V$TRANSPORTABLE_PLATFORM;http://www.fadalti.com/oracle/database/how_to_transportable_tablespaces.htm
http://husnusensoy.wordpress.com/2008/07/12/migrating-data-using-transportable-tablespacetts/
Best Regards
mseberg

Similar Messages

  • Restoring from RMAN tablespace backup ; Few questions

    11.2.0.3/RHEL 5.8
    We have a RAC DB which is used by more than 20 applications. One schema for each application and one tablespace for each schema.
    We have a schema with 130gb in size. All Objects in this schema use a single tablespace MCS_DATA.
    This weekend we are applying some changes involving DDL, Code and Data .Usually we take an expdp backup of the schema before the activity starts and later if something goes wrong with script deployment we'll revert to old state by dropping the schema and doing an impdp from the expdp backup.
    Question1.
    Can we do an RMAN tablespace only backup and if something goes wrong with script deployment can we drop the schema and the tablespace and then create an empty schema and then restore from the tablespace backup ?
    Question2.
    If the above is possible , can you explain how it is going to work out because we are essentially plugging (restore,recover) in a tablespace to the database. Any potential problems ?
    Question3. If the above (Question1) is possible, will restore/recover of this tablespace require a downtime for the entire DB ?

    Tom;
    If you are talking about RMAN TSPITR then yes you can. See - Purpose of RMAN TSPTIR in Backup and Recovery User's Guide E10642-03.
    The problem with TSPTIR is bulk. You need a lot of disk space to create a copy and then data pump the information out and back in. I just tested this on 11.2.0.3 and its slow. RMAN created a script which produced an AUX instance and did the data pump, but I had clean up afterwards. If it errors out you can have an AUX instance hanging out in the background.
    For TSPTIR you will need an area on the disk to server as an auxiliary destination large enough to hold what you are recovering plus the SYSTEM, UNDO and TEMP tablespaces.
    I would probably look at Transportable tablespaces as a possible option too.
    http://docs.oracle.com/cd/E25054_01/backup.1111/e10642/rcmttbsb.htm
    E10642-03 has a section for recovering a tablespace in chapter 2. The Tablespace must be offline, but the database can be up.
    This uses "restore tablespace" and "recover tablespace" commands. You would perform this type of recovery when you are say missing a datafile. You can recover any tablespace except SYSTEM and UNDO with this.
    Data Pump might be an option too, but given your tablespace size I would have worries about recovery time. Oracle lets you set compression
    and a limit to each file produced.
    expdp TABLESPACES=YOUR_DATA dumpfile=DATA_PUMP_DIR:ts_dumps_%U.dmp LOGFILE=DATA_PUMP_DIR:ts_dumps_log.log parallel=2 filesize=10G compression=ALL
    Given the size of your database a better option might be something like Data Guard as your recovery time would be brutal.
    Best Regards
    mseberg

  • Restoring a Rman Tablespace backup to noarchilog mode database

    Hi All,
    Is it possible to take a backup of a tablespace through rman from archivelog mode database and restore the same to noarchivelog mode database through rman ? Please suggest if it is not possible why it is not possible.
    We have a testing database from which a tablespace has been dropped. Can it be restored from the Prod database ?
    Please help. The database version is 9.2.0.8..

    Fabricio_Jorge wrote:
    I think it's possible to backup/restore a single tablespace:
    BACKUP TABLESPACE nome_tablespace [FORMAT 'path/bkp_file'];
    Being able to backup a single tablespace is NOT the same as grafting that TS into a different database.
    First, you are not really backing up a 'tablespace'. You are backing up files. In this case, just the files that implement the named TS, but files, nevertheless. And files belong to a database. Header info in each file defines, among other things, the dbid of the database the file belongs to. And the current scn. That will be a severe mis-match if you tried to 'restore' it to some other db.

  • TS4036 How do I restore from an iCloud backup into my iPad?

    I'm trying to restore an app, which was accidentally deleted, how can I do that?

    If it was on your iPad when you last backed up to iCloud, you can recover it by restoring to the entire backup (assuming it's still in the app store). 
    Restoring to an iCloud backup has to be done in the initial setup process.  If you have any data on your iPad now that is not in the backup that you want to save you'll need to do that first.  Then go to Settings>General>Reset and tap Erase All Content and Settings.  You will then go through the setup screens and when given the option, choose Restore from iCloud Backup.  Be sure you are connected to wifi and your charger as this will take some time to finish.
    Or, if you just want to get the app back and not the app data, just redownload it as a past purchase: http://support.apple.com/kb/ht2519.

  • Can I copy and paste a drop down list into another field?

    Can I copy and paste a drop down list into another field?

    You don't have to create a PDF, but it would be helpful to know what, exactly, you want to do with the ppt.
    You can export as a PDF which will keep vectors and text as PostScript (crisp) elements.
    You can also Save As from ppt in a variety of formats such as PNG or TIFF.
    These rasterize all the vectors and text, but are very useful if you're laying out a miniature gallery of the powerpoint presentation.
    However, if you want to make the InDesign file a replica of the ppt slides for print, PDF is probably the best way to go.

  • RMAN Restore using RMAN COLD Backup!!

    Hi All,
    I Need to restore a database using rman cold backup taken a month back.
    Can i use Duplicate database option until time/scn just like we do for hotbackup or is there any other procedure for cloning/refreshing the database using RMAN COLD BACKUP of source.
    Thanks & Regards,
    Pdev

    This may be used to clone db
    connect target sys/sys@<dba>
    connect catalog rman/rman@<dba>
    connect auxiliary sys/sys<new>
    run {
    set newname for datafile 1 to 'e:\oracle\oradata\giri\system01.dbf';
    set newname for datafile 2 to 'e:\oracle\oradata\giri\undotbs01.dbf';
    set newname for datafile 3 to 'e:\oracle\oradata\giri\users01.dbf';
    set newname for datafile 4 to 'e:\oracle\oradata\giri\indx01.dbf';
    set newname for datafile 5 to 'e:\oracle\oradata\giri\example01.dbf';
    allocate auxiliary channel dupdb1 type disk;
    set until sequence 2 thread 1;
    duplicate target database to dupdb
    logfile
    GROUP 1 ('e:\oracle\oradata\giri\redo01.log') SIZE 100k REUSE,
    GROUP 2 ('e:\oracle\oradata\giri\redo02.log') SIZE 100k REUSE;
    Message was edited by:
    Girishh

  • How to restore RMAN hot backup to another database on another server?

    I want to know how to restore RMAN hot backup from production server to another database on a testing server.
    The hot backup is from a database named PROD on the production server
    The database to be restored with the hot backup is TEST on the testing server. There is already a PROD database on the testing server and this PROD database must be kept.
    I have read some threads about changing initTEST.ora to PROD to restore such backup but (I think) will not work in my case since I already have a PROD database on the testing server.
    The version is 11gR2 on Linux but the compatible parameter is set to 10.2.0.1.0.
    Thanks for any help.

    Hi,
    Since you are on 11g, hope this helps you http://shivanandarao.wordpress.com/2012/04/28/duplicating-database-without-connecting-to-target-database-or-catalog-database-in-oracle-11g/
    881656     
    Handle:     881656
    Status Level:     Newbie
    Registered:     Aug 25, 2011
    Total Posts:     53
    Total Questions:      31 (31 unresolved)
    Looks like forum is of no help to you. To get better responses, consider closing your threads by providing appropriate points if you feel that they have been answered. Keep the forum clean !!

  • Can I move all data from time machine backup to another external drive & work from it?

    Hi all, the harddrive on my macbook died (2nd time in a year) & I had a new one put in that's much smaller than the old one.  Can I move everything from my time machine backup onto a seperate external drive and work directly from that on my laptop/imac?  At the mo. I don't think time machine will recognise my computer as it's a new drive etc.  Thanks Jenny.

    What exactly do you want to do?
    Is it that you wish to extract an older version of some documents to edit, but leave the original intact?
    You can Restore an older version from TM and choose not to replace the current one.
    Or, do you wish to install the OS on your new drive, and migrate all the information from the TM backup to the new isntallation?
    EDIT: Ok, re-reading your question, I think macjack probably has the right idea.
    However, see Pondini's Time Machine FAQ # 16

  • Is it possible to restore Windows server 2012 backup to another physical hardware or virtual machine?

    Hi
    I have windows server 2012 which is my domain controller. It has 2 hyper visor virtual machine that they are 2012 too. I have an additional domain controller in another location too.
    I want to know, how can I restore a bare metal or system state backup to another machine, to have a domain controller same as old one whit all the properties, rules and features.
    Thanks

    Hi Mehdi,
    Yes, it is possible to restore Windows backup to a different machine with different hardware. This article, although written for Windows Server 2008 still applies in 2012:
    https://support.microsoft.com/en-us/kb/249694
    Best regards,
    Please remember to mark the replies as helpful if they help, or as answers if they answer your question. Please also unmark the answers if they provide no help.
    Zach Roberts
    Independent Microsoft Community Support Advisor
    Disclaimer: I don't work for Microsoft. Any advice given is my own and does not represent Microsoft.
    Follow me on Twitter:
    @WindowsZach

  • Restore and recover tablespace(s) in another db using RMAN

    Hi,
    I'm using Oracle Standard edition 11gR2, actually that's why I'm posting this thread because I can't use TRANSPORT TABLESPACE feature.
    I need to restore and recover two tablespaces, backed up in source database in another database. The destination db has been duplicated from the source db a couple of days ago so the structure is identical.
    I cannot use Data Pump on this specific tablespace, because it causes some strange behavior in our application. So I took a backup from tablespaces and now I'm looking for a solution to restore and recover it in another db.
    Is there any command to restore a tablespace from a specific file? I googled a lot and no luck so far..
    Any ideas?
    P.S: I use controlfile instead of recovery catalog.
    Edited by: aLuViAn on Dec 2, 2012 11:55 PM

    I have a backup schedule to take daily full backups (twice) and hourly incremental backup. So yes, I have backup!
    P.S: I also tried the following:
    restore tablespace REG_DATA from  'temp_ERIS0_hjnru4ss_1_1.rman';
    Starting restore at 03-DEC-12
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/03/2012 12:10:36
    RMAN-06509: only SPFILE or control file can be restored from AUTOBACKUPIt's not an autobackup, why oracle thinks so?!
    Edited by: aLuViAn on Dec 3, 2012 12:45 AM
    Edited by: aLuViAn on Dec 3, 2012 12:47 AM
    Edited by: aLuViAn on Dec 3, 2012 12:48 AM

  • Restore RMAN tablespace backup...

    Hi All,
    I have a RMAN backup of entire database, it has all oracle default TBS, controlfile, spfile etc. Now, I want to restore only one schema's tablespace so my first question it is possible to restore only one schema's tablespace. If yes, can you please guide me here?
    Thanks in advance.

    user12115 wrote:
    Hi Hemant,
    I want to restore tablesapce back to another database server. Can I have any suggestion for this scenario?
    Thanks...You cannot restore backup of one database to another database. You have options as
    1) restore entire database but skip tablespaces whatever you don't want (or) while restoring mention all the mandatory tablespaces with extra what tablespaces you want
    Because two databases incarnations / SCN are completely different.
    2) perform scheme export usin exp/expdp & import it.
    >
    Handle:     user12115  
    Status Level:     Newbie
    Registered:     Aug 10, 2005
    Total Posts:     332
    Total Questions:     105 (93 unresolved)
    >
    Your almost all questions are unanswered, looks sad that no one helpful to you... Please consider closing your threads and keep the forum clean.
    Edited by: CKPT on Jun 15, 2012 2:22 PM

  • 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

  • Rman tablespace backup script required

    Dear Guru,
    Thanks a lot, it start working...as the policy has set to 7 days retention period...
    i have another issue if you can help me, i have whole apps running on only two tablespace docv,docvindex
    rest by using this script i have to take backup every day entire database that occupied unncessary space, can you help me to revised the script..thank you in advanced sir
    connect target sys/sys@ORCL;
    run
    allocate channel h1 type disk format="E:\bkup_orcl\%t_%u";
    allocate channel h2 type disk format="E:\bkup_orcl\%t_%u";
    backup database tag=dailybak;
    backup current controlfile tag=ctlbak;
    sql 'alter system archive log current';
    backup archivelog all ;
    release channel h1;
    release channel h2;
    regards,
    salim shahzad

    Kuljeet Pal Singh wrote:
    cat db_rman.sh
    <<all oracle environment variable>>
    CUR_DATE=`date +%d%m%y`
    export CUR_DATE
    DT=`date +%d%m%y_%H-%M`
    export DT
    LOG_DEST=/u02/backup/TAPE_Backup_Log
    export LOG_DEST
    rman target / catalog db_cat/password@rmanprod log=$LOG_DEST/RMAN_$DT.log <<EOF
    run {
    backup archivelog all to destination '/oracle/oracle/.Arch_bkp/';
    delete archivelog until 'sysdate-10';
    }I am in nocatalogue database.
    exit
    EOF

  • Help me, Can i plug TNT Riva 32MB 4x/2x card into AGP 2x mainboard? How?

    i have MSI Riva TNT 32MB 2x/4x, now i want to install it on my old computer. Mainboard just support AGP 2x. I heard from someone if i plug 4x AGP card into AGP 2x , it will burn mainboard. Thus i want to exactly what thing i need to do in order to plug my video card into 2x AGP mainboard.
    You can send email to me:
    [email protected]
    Thanks

    thats not true, because older video cards 2x use a different voltage than the newer 8x and 4x boards.  case in point: my a7n8x will only take 4x/8x cards... its keyed differently, but in his case I think it is fine because the card says "4X, 2X"

  • Restore 11g rman cold backup on same server.

    Hi All,
    I have a requirement , where we have to clone one development database's to other database's sitting on the same host.
    I have taken the cold rman backup and copy it different database's local folder.
    I changed the db_name in target pfile and did the nomount , but when I tries to restore the controlfile , it throws me below errors.
    Just to add to to it, I was ale to restore the controlfile to the location specified in pfile.
    now , when I tries to mount the database , it throws me following errors
    Snippet from target database's
    SQL> startup mount pfile=/db/epmtrain/oracle/11.1.0/dbs/initepmtrain.bkp
    ORACLE instance started.
    Total System Global Area 1.3696E+10 bytes
    Fixed Size                  2132152 bytes
    Variable Size            6173202248 bytes
    Database Buffers         7516192768 bytes
    Redo Buffers                4362240 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    RMAN> run {
    2> restore controlfile from '/db/epmtrain/export/rman/EPMDEV_06ogm377.bkp';
    3> }
    Starting restore at 07-AUG-13
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring control file
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 08/07/2013 07:12:21
    ORA-19870: error while restoring backup piece /db/epmtrain/export/rman/EPMDEV_06ogm377.bkp
    ORA-19504: failed to create file "/db/epmtrain/oracle/11.1.0/dbs/db/epmtrain/data1/epmtrain/control01.ctl'"
    ORA-27040: file create error, unable to create file
    HPUX-ia64 Error: 2: No such file or directory
    Regards

    940856 wrote:
    I restored the controlfile to the path mentioned in pfile. after that , when I tries to mount the database , it throws me the following errors.
    ---------- Snippet from alert.log ------
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/db/epmtrain/data1/epmtrain/control01.ctl''
    ORA-27037: unable to obtain file status
    HPUX-ia64 Error: 2: No such file or directory
    Additional information: 3
    ORA-205 signalled during: ALTER DATABASE   MOUNT...
    ------------ controlfile location in pfile ---------
    *.control_files=/db/epmtrain/data1/epmtrain/control01.ctl','/db/epmtrain/data1/epmtrain/control02.ctl'
    --------------- show parameter control output -------------
    SQL>  show parameter control
    NAME                                 TYPE                             VALUE
    control_file_record_keep_time        integer                          7
    control_files                        string                           /db/epmtrain/data1/epmtrain/co
                                                                          ntrol01.ctl', /db/epmtrain/dat
                                                                          a1/epmtrain/control02.ctl
    control_management_pack_access       string                           DIAGNOSTIC+TUNING
    Regards
    So present proof that "/db/epmtrain/data1/epmtrain/control01.ctl" actually exists .....

Maybe you are looking for