Restore tablespace from rman

Hi everyone.
Im using a 11.0.6.0 database running on RHEL 5.
i have a full backup every saturday, and everyday a backup of archivelogs.
Could i restore a tablespace from 2 days ago with rman or i only can restore it from last saturday? how?
if i had 2 full backup, how to choose from wich one i want restore the tablespace?
Thanks in advance
Edited by: user13748341 on 14-jun-2011 6:52

user13748341 wrote:
Hi everyone.
Im using a 11.0.6.0 database running on RHEL 5.I don't think so. Where did you find an 11.ZERO? Oracle's first release at 11 was 11.1
>
i have a full backup every saturday, and everyday a backup of archivelogs.
Could i restore a tablespace from 2 days ago with rman or i only can restore it from last saturday? how?
if i had 2 full backup, how to choose from wich one i want restore the tablespace?
Thanks in advance
Edited by: user13748341 on 14-jun-2011 6:52You RESTORE the files from the backup of those files
You RECOVER the files to a point in time from the archivelogs since the backup from which you restored.
Go to tahiti.oracle.com and spend some time in the Backup and Recovery manuals to get clear on the concept of "backup", "recover", and "restore".

Similar Messages

  • Unable to restore TABLESPACE using RMAN backups

    Hi,
    I am not able to restore tablespace using RMAN (TSPITR).
    I have full backup of database,
    While try to restore it's failed.
    RMAN> recover tablespace TEST1 until logseq 706 auxiliary destination '/tmp';
    Starting recover at 16-OCT-13
    using channel ORA_DISK_1
    RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
    List of tablespaces expected to have UNDO segments
    Tablespace SYSTEM
    Tablespace UNDOTBS2
    Creating automatic instance, with SID='CsFz'
    initialization parameters used for automatic instance:
    db_name=TRAINEE
    db_unique_name=CsFz_tspitr_TRAINEE
    compatible=11.2.0.0.0
    db_block_size=8192
    db_files=200
    sga_target=280M
    processes=50
    db_create_file_dest=/tmp
    log_archive_dest_1='location=/tmp'
    #No auxiliary parameter file used
    starting up automatic instance TRAINEE
    Oracle instance started
    Total System Global Area     292933632 bytes
    Fixed Size                     1336092 bytes
    Variable Size                100666596 bytes
    Database Buffers             184549376 bytes
    Redo Buffers                   6381568 bytes
    Automatic instance created
    List of tablespaces that have been dropped from the target database:
    Tablespace TEST1
    contents of Memory Script:
    # set requested point in time
    set until  logseq 706 thread 1;
    # restore the controlfile
    restore clone controlfile;
    # mount the controlfile
    sql clone 'alter database mount clone database';
    # archive current online log
    sql 'alter system archive log current';
    # avoid unnecessary autobackups for structural changes during TSPITR
    sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 16-OCT-13
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=81 device type=DISK
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /oracle/product/11.2.0/dbhome_1/dbs/c-332232391-20131016-09
    channel ORA_AUX_DISK_1: piece handle=/oracle/product/11.2.0/dbhome_1/dbs/c-332232391-20131016-09 tag=TAG20131016T144951
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    output file name=/tmp/TRAINEE/controlfile/o1_mf_95wbkpvj_.ctl
    Finished restore at 16-OCT-13
    sql statement: alter database mount clone database
    sql statement: alter system archive log current
    sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
    contents of Memory Script:
    # set requested point in time
    set until  logseq 706 thread 1;
    # set destinations for recovery set and auxiliary set datafiles
    set newname for clone datafile  1 to new;
    set newname for clone datafile  7 to new;
    set newname for clone datafile  2 to new;
    set newname for clone tempfile  1 to new;
    set newname for datafile  6 to
    "/oracle/oradata/TRAINEE/datafile/o1_mf_test1_95w9fln9_.dbf";
    # switch all tempfiles
    switch clone tempfile all;
    # restore the tablespaces in the recovery set and the auxiliary set
    restore clone datafile  1, 7, 2, 6;
    switch clone datafile all;
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    renamed tempfile 1 to /tmp/TRAINEE/datafile/o1_mf_temp_%u_.tmp in control file
    Starting restore at 16-OCT-13
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00001 to /tmp/TRAINEE/datafile/o1_mf_system_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00007 to /tmp/TRAINEE/datafile/o1_mf_undotbs2_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00002 to /tmp/TRAINEE/datafile/o1_mf_sysaux_%u_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00006 to /oracle/oradata/TRAINEE/datafile/o1_mf_test1_95w9fln9_.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /tmp/1iomi9rv_1_1
    channel ORA_AUX_DISK_1: piece handle=/tmp/1iomi9rv_1_1 tag=TAG20131016T144935
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:15
    Finished restore at 16-OCT-13
    datafile 1 switched to datafile copy
    input datafile copy RECID=11 STAMP=828975325 file name=/tmp/TRAINEE/datafile/o1_mf_system_95wbkybb_.dbf
    datafile 7 switched to datafile copy
    input datafile copy RECID=12 STAMP=828975325 file name=/tmp/TRAINEE/datafile/o1_mf_undotbs2_95wbkycy_.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=13 STAMP=828975325 file name=/tmp/TRAINEE/datafile/o1_mf_sysaux_95wbkybz_.dbf
    contents of Memory Script:
    # set requested point in time
    set until  logseq 706 thread 1;
    # online the datafiles restored or switched
    sql clone "alter database datafile  1 online";
    sql clone "alter database datafile  7 online";
    sql clone "alter database datafile  2 online";
    sql clone "alter database datafile  6 online";
    # recover and open resetlogs
    recover clone database tablespace  "TEST1", "SYSTEM", "UNDOTBS2", "SYSAUX" delete archivelog;
    alter clone database open resetlogs;
    executing Memory Script
    executing command: SET until clause
    sql statement: alter database datafile  1 online
    sql statement: alter database datafile  7 online
    sql statement: alter database datafile  2 online
    sql statement: alter database datafile  6 online
    Starting recover at 16-OCT-13
    using channel ORA_AUX_DISK_1
    starting media recovery
    archived log for thread 1 with sequence 702 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_702_807275402.dbf
    archived log for thread 1 with sequence 703 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_703_807275402.dbf
    archived log for thread 1 with sequence 704 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_704_807275402.dbf
    archived log for thread 1 with sequence 705 is already on disk as file /oracle/product/11.2.0/dbhome_1/dbs/arch1_705_807275402.dbf
    archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_702_807275402.dbf thread=1 sequence=702
    archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_703_807275402.dbf thread=1 sequence=703
    archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_704_807275402.dbf thread=1 sequence=704
    archived log file name=/oracle/product/11.2.0/dbhome_1/dbs/arch1_705_807275402.dbf thread=1 sequence=705
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 16-OCT-13
    database opened
    contents of Memory Script:
    # make read only the tablespace that will be exported
    sql clone 'alter tablespace  TEST1 read only';
    # create directory for datapump import
    sql "create or replace directory TSPITR_DIROBJ_DPDIR as ''
    /tmp''";
    # create directory for datapump export
    sql clone "create or replace directory TSPITR_DIROBJ_DPDIR as ''
    /tmp''";
    executing Memory Script
    sql statement: alter tablespace  TEST1 read only
    sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp''
    sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp''
    Performing export of metadata...
       EXPDP> Starting "SYS"."TSPITR_EXP_CsFz":
       EXPDP> Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
       EXPDP> Processing object type TRANSPORTABLE_EXPORT/TABLE
       EXPDP> Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
       EXPDP> Master table "SYS"."TSPITR_EXP_CsFz" successfully loaded/unloaded
       EXPDP> ******************************************************************************
       EXPDP> Dump file set for SYS.TSPITR_EXP_CsFz is:
       EXPDP>   /tmp/tspitr_CsFz_17454.dmp
       EXPDP> ******************************************************************************
       EXPDP> Datafiles required for transportable tablespace TEST1:
       EXPDP>   /tmp/TRAINEE/datafile/o1_mf_test1_95wbkyck_.dbf
       EXPDP> Job "SYS"."TSPITR_EXP_CsFz" successfully completed at 14:56:02
    Export completed
    contents of Memory Script:
    # shutdown clone before import
    shutdown clone immediate
    executing Memory Script
    database closed
    database dismounted
    Oracle instance shut down
    Performing import of metadata...
       IMPDP> Master table "SYS"."TSPITR_IMP_CsFz" successfully loaded/unloaded
       IMPDP> Starting "SYS"."TSPITR_IMP_CsFz":
       IMPDP> Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
    Removing automatic instance
    Automatic instance removed
    auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_temp_95wblk08_.tmp deleted
    auxiliary instance file /tmp/TRAINEE/onlinelog/o1_mf_3_95wblj14_.log deleted
    auxiliary instance file /tmp/TRAINEE/onlinelog/o1_mf_2_95wblhn8_.log deleted
    auxiliary instance file /tmp/TRAINEE/onlinelog/o1_mf_1_95wblh8q_.log deleted
    auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_sysaux_95wbkybz_.dbf deleted
    auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_undotbs2_95wbkycy_.dbf deleted
    auxiliary instance file /tmp/TRAINEE/datafile/o1_mf_system_95wbkybb_.dbf deleted
    auxiliary instance file /tmp/TRAINEE/controlfile/o1_mf_95wbkpvj_.ctl deleted
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 10/16/2013 14:56:16
    RMAN-06963: Error received during import of metadata
    RMAN-06961:    IMPDP> ORA-39123: Data Pump transportable tablespace job aborted
    ORA-01565: error in identifying file '/oracle/oradata/TRAINEE/datafile/o1_mf_test1_95w9fln9_.dbf'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3

    Hi,
    Cloud you please cheek below link:
    ORACLE Cookies: TSPITR to recover a dropped tablespace
    Thank you

  • Restore spfile from rman backup ---- error.

    Hi,
    I am trying to execute recovery on new machine ...
    I have done the following steps..
    I have one database as ora10g2 as peroduction database on one machine as hosta
    I have created a catalog on another machine cora10g2 (hostb)
    I have taken a full backup from hosta as per following ...
    the following command execute from hosta machine.
    $ rman target sys/<passwd>@ora10g2 catalog rman/rman@cora10g2 ...
    Backup completed ...
    Now I am trying to restore this backup on hostb machine where i have already rman catlog database ..
    I have done the following setting ...on host b
    set oracle_sid=DUP
    and execute following command ...
    rman target / catalog rman/rman@cora10g2
    RMAN> set dbid 2760732370
    executing command: SET DBID
    database name is "BAAN10G2" and DBID is 2760732370
    RMAN>
    RMAN>
    RMAN> startup force nomount ;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/dbs/baan10g2/dbs/initbaan10g2.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1977112 bytes
    Variable Size 67114216 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 6406144 bytes
    RMAN>
    RMAN>
    RMAN>
    RMAN> show all ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/backup/control/cntrl_%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/baanora3/rman/ora10g2/bkup_db_%d_s%s_P%p_t%t' MAXPIECESIZE 1024;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    RMAN>
    RMAN>
    RMAN> list backup of spfile ;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2420 Full 7.33M DISK 00:00:01 14-JUN-07
    BP Key: 2426 Status: AVAILABLE Compressed: NO Tag: TAG20070614T182935
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070614-00
    SPFILE Included: Modification time: 14-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2509 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2515 Status: AVAILABLE Compressed: NO Tag: TAG20070615T130416
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-00
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2694 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2739 Status: AVAILABLE Compressed: NO Tag: TAG20070615T131703
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-01
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2760 Full 80.00K DISK 00:00:01 15-JUN-07
    BP Key: 2763 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163437
    Piece Name: /rman/spfile/spfile.ora
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2769 Full 7.33M DISK 00:00:02 15-JUN-07
    BP Key: 2771 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163441
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-02
    SPFILE Included: Modification time: 15-JUN-07
    RMAN>
    RMAN>
    RMAN> restore spfile from autobackup ;
    Starting restore at 19-JUN-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=35 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=34 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=33 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20070619
    channel ORA_DISK_1: looking for autobackup on day: 20070618
    channel ORA_DISK_1: looking for autobackup on day: 20070617
    channel ORA_DISK_1: looking for autobackup on day: 20070616
    channel ORA_DISK_1: looking for autobackup on day: 20070615
    channel ORA_DISK_1: looking for autobackup on day: 20070614
    channel ORA_DISK_1: looking for autobackup on day: 20070613
    channel ORA_DISK_1: no autobackup in 7 days found
    channel ORA_DISK_2: looking for autobackup on day: 20070619
    channel ORA_DISK_2: looking for autobackup on day: 20070618
    channel ORA_DISK_2: looking for autobackup on day: 20070617
    channel ORA_DISK_2: looking for autobackup on day: 20070616
    channel ORA_DISK_2: looking for autobackup on day: 20070615
    channel ORA_DISK_2: looking for autobackup on day: 20070614
    channel ORA_DISK_2: looking for autobackup on day: 20070613
    channel ORA_DISK_2: no autobackup in 7 days found
    channel ORA_DISK_3: looking for autobackup on day: 20070619
    channel ORA_DISK_3: looking for autobackup on day: 20070618
    channel ORA_DISK_3: looking for autobackup on day: 20070617
    channel ORA_DISK_3: looking for autobackup on day: 20070616
    channel ORA_DISK_3: looking for autobackup on day: 20070615
    channel ORA_DISK_3: looking for autobackup on day: 20070614
    channel ORA_DISK_3: looking for autobackup on day: 20070613
    channel ORA_DISK_3: no autobackup in 7 days found
    channel ORA_DISK_4: looking for autobackup on day: 20070619
    channel ORA_DISK_4: looking for autobackup on day: 20070618
    channel ORA_DISK_4: looking for autobackup on day: 20070617
    channel ORA_DISK_4: looking for autobackup on day: 20070616
    channel ORA_DISK_4: looking for autobackup on day: 20070615
    channel ORA_DISK_4: looking for autobackup on day: 20070614
    channel ORA_DISK_4: looking for autobackup on day: 20070613
    channel ORA_DISK_4: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 06/19/2007 18:00:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    RMAN>
    I am not able to restore spfile from rman backup ;;;

    Hi,
    I would like to know few things
    1. How are you setting the db_name ? you can set db_id at RMAN, how are you setting the db_name ?
    2. Do you have any default init file at default location ? if yes, is the db_name parameter set correctly in that file ?
    Since spfile is yet to be restored, you must set the db_name parameter correctly before you start spfile restore.This can be done with init file at default location which can even contain just one paremeter i.e db_name.

  • Restoring controlfile from rman

    Hi
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    on OEL4
    I have lost all the control files (infact deleted knowingly to simulate ). i have a full database backup in recovery catalog. I do not know the dbid of database.
    I am not able to connect to target database from rman it shows.
    RMAN> connect target sys/prod@PROD
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-12528: TNS:listener: all appropriate instances are blocking new connectionsIs there anyway i can restore controlfiles from rman ? or i need to create controlfiles manually.
    Thanks
    Edited by: user8896122 on Jan 3, 2010 6:03 AM

    You can try on the machine hosting the database:
    C:\Users\Pierre>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 3 15:29:02 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount
    Oracle instance started
    Total System Global Area     805306368 bytes
    Fixed Size                     1289996 bytes
    Variable Size                213909748 bytes
    Database Buffers             587202560 bytes
    Redo Buffers                   2904064 bytes
    RMAN>and then you can try to connect to recovery catalog.

  • Restore tablespace from sbt_tape

    Hi
    by using list backup command I see that all the backups are in sbt_tape.
    If I type
    restore tablespace a;
    Does ıt restore ıt dırectly from the tape into the database or do I have to take ıt from the sbt_tape manually on to the disk and restore ıt.

    If you would have read the documentation (which, by default, and already for many months, you refuse to do), you would have noticed you need to configure a channel to the tape device, with proper parameters.
    In that case you would have issued
    restore tablespace ...
    The other alternative doesn't exist, and shows that even after asking a plethora of doc questions, about RMAN, you still don't seem to understand anything of it.
    Isn't it time you start reading those manuals?
    Sybrand Bakker
    Senior Oracle DBA

  • Restore tablespace in RMAN is not working

    Friends,
    OS: RHEL AS 3.0
    DB: 9iR2
    New to RMAN
    I am testing RMAN in our R&D server.
    I just deleted one table in scott which is in the users tablespace.
    then i went to rman.
    SQL 'ALTER TABLESPACE users OFFLINE IMMEDIATE';
    RESTORE TABLESPACE users;
    RECOVER TABLESPACE users;
    SQL 'ALTER TABLESPACE users ONLINE';
    after that, i logged in to sqlplus as scott.
    but i didnt find the table which i deleted.
    I know i can restore the table by point in time recovery using SCN.
    but why the above rman command is not working?
    where im making mistake?
    thanks

    Hi there,
    This wont work as the recovery you tried and did was a "complete recovery".The dropped table will come back with an "incomplete recovery".You just restored the datafile from the backup.Table drop is not an "error".You wanted it to happen , you did that.Its not an error for oracle.So you need to do "incomplete recovery".
    I guess following might be useful for you.yo u need to recover till the time when the table was existing and you will lose data beyond that point.so thats why it is called incomplete recovery.
    http://www.oracle-base.com/articles/9i/RecoveryManager9i.php
    http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10734/rcmconc2.htm
    Cheers,
    Aman....

  • How to restore tablespace from backup

    Dear all,
    I need to restore my deleted tablespace from its backup. I backuped that tablespace with RMAN without catalog option. I connected the RMAN by the following way.
    /home/oracle/db/bin/rman target / nocatalog
    When I restoring the tablespace the following error occurs:
    RMAN> run {
    2> allocate channel ch1 type disk format '/disk6/backup/tek_backup/tek_bak1101';
    3> restore tablespace tek_data;
    4> }
    Starting restore at 12-NOV-07
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/12/2007 17:13:48
    RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name "tek_data"
    Please help

    Here I am posting what I have done. Now I have the backuped tablespace by RMAN. I tried to restore it but couldn't.
    Please help
    ##### 1. create tablespace & insert some data to it.
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 12 19:14:50 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn /as sysdba
    Connected.
    SQL> CREATE SMALLFILE TABLESPACE "TS07" DATAFILE '/disk6/TS07_1' SIZE 100M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
    Tablespace created.
    SQL> create table MBS200710_1 tablespace TS07 as SELECT * FROM mediator.MBS200710 WHERE M105 = 3
    2 ;
    Table created.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ##### 2. backup TS07 with RMAN
    [oracle@localhost ~]$ /home/oracle/db/bin/rman target / nocatalog
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Nov 12 19:19:38 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: UCCS (DBID=1480994533)
    using target database control file instead of recovery catalog
    RMAN> run {
    2> allocate channel c1 device type disk;
    3> set command id to 'BBBackup';
    4> configure backup optimization on;
    5> sql "alter tablespace TS07 offline normal";
    6> backup format '/disk6/backup/TS07_bak_%T_%U'
    7> (tablespace TS07);
    8> release channel c1;
    9> sql "alter tablespace TS07 online";
    10> }
    allocated channel: c1
    channel c1: sid=136 devtype=DISK
    executing command: SET COMMAND ID
    old RMAN configuration parameters:
    CONFIGURE BACKUP OPTIMIZATION ON;
    new RMAN configuration parameters:
    CONFIGURE BACKUP OPTIMIZATION ON;
    new RMAN configuration parameters are successfully stored
    sql statement: alter tablespace TS07 offline normal
    Starting backup at 12-NOV-07
    channel c1: starting full datafile backupset
    channel c1: specifying datafile(s) in backupset
    input datafile fno=00052 name=/disk6/TS07_1
    channel c1: starting piece 1 at 12-NOV-07
    channel c1: finished piece 1 at 12-NOV-07
    piece handle=/disk6/backup/TS07_bak_20071112_0uj0srn6_1_1 tag=TAG20071112T193502 comment=NONE
    channel c1: backup set complete, elapsed time: 00:00:01
    Finished backup at 12-NOV-07
    Starting Control File and SPFILE Autobackup at 12-NOV-07
    piece handle=/disk6/backup/controlfile/c-1480994533-20071112-05 comment=NONE
    Finished Control File and SPFILE Autobackup at 12-NOV-07
    released channel: c1
    sql statement: alter tablespace TS07 online
    RMAN> quit
    Recovery Manager complete.
    ##### 3. drop tablespace including data files
    [oracle@localhost ~]$
    [oracle@localhost ~]$
    [oracle@localhost ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 12 19:37:38 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn /as sysdba
    Connected.
    SQL> drop tablespace TS07 including contents and datafiles;
    Tablespace dropped.
    SQL> commit;
    Commit complete.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    #####4. restore deleted tablespace from backup
    [oracle@localhost ~]$ /home/oracle/db/bin/rman nocatalog target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Nov 12 19:39:59 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: UCCS (DBID=1480994533)
    using target database control file instead of recovery catalog
    RMAN> run {
    2> allocate channel c1 type disk format '/disk6/backup/TS07_bak_20071112_0uj0srn6_1_1';
    3> restore tablespace TS07;
    4> release channel c1;
    5> }
    allocated channel: c1
    channel c1: sid=76 devtype=DISK
    Starting restore at 12-NOV-07
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/12/2007 19:41:48
    RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name "TS07"

  • Backing up and restoring tablespaces with RMAN

    We have some tables that we want to backup and other tables that we don't.
    We are separating these tables by tablespaces and schema.
    SchemaA uses tablespaceA
    SchemaB uses tablespacesB
    We are also backing up
    sys
    sysaux
    undo
    tablespaces.
    Lets say we lose our tablespaces and do a restore. I am assuming that all my stored procedures can be restored no matter which schema I save them in. even if I save them in a schema that has a default tablespace that is not being backed up because the code in is in the System tablespace.
    Is my assumption correct?

    Here the key concept is Mean Time To Recover(MTTR), usually it is faster and easier to use an export backup file for this purpose, but this doesn't mean RMAN is bad :) RMAN was, is and will be the best practice for Oracle's B&R.
    Still you may assist your RMAN backup with a daily norows export backup and also maybe a file system backup depending on your environment and application's need. Backup's backup do not harm :)

  • Restoring archives from rman backups

    i have taken backup of all archive logs as follows
    backup archivelog all delete all input;
    how to restore th archives at their original location

    816669 wrote:
    i have taken backup of all archive logs as follows
    backup archivelog all delete all input;
    how to restore th archives at their original locationWhile you can directly have rman restore the archivelogs, please note that if an archivelog is needed for database recovery, rman will know to restore said archivelog anyway.

  • Undo tablespace recovery from RMAN backup

    Hi,
    Lets's assume we have RMAN backup and archivelog backups, and now
    my undo tablespace's disk crashed ,how can i recover?
    Can i recover while database is up?
    Thanks,
    Kumar.

    to recover UNDO tablespace from RMAN backup you must shutdown the database and start it in the MOUNT state to recover the missing files as follows
    rman target /
    RUN
    STARTUP MOUNT;
    ALLOCATE CHANNEL ch3 TYPE Disk;
    RESTORE datafile 'c:\u01\prod3\undo01.dbf';
    RECOVER datafile 'c:\u01\prod3\undo01.dbf';
    ALTER DATABASE OPEN;
    RELEASE CHANNEL ch3;
    hope this will help you

  • Restoring only the tablespace from the database

    How do we restore only a 'tablespace' from a Terabyte database without restoring the entire database.
    ie... if a particular tablespace has been dropped from the database and we have the backup available for the database.
    So, how do we go about it for restoring only that tablespace.
    Version:10.2.0.4
    OS : solaris 10
    Edited by: user13364377 on Sep 29, 2010 3:49 AM
    Edited by: user13364377 on Sep 29, 2010 3:51 AM

    If you have a RMAN backup before dropping the tablespace then we can restore the tablespace by below method
    It is a tablespace point in time recovery ,here we need to create a auxillary DB.
    Recover a table/tablespace from Rman backup on same server:
    ===============================================
    Here we have to create the auxillary database.
    1.u should have valid backup of the database before dropping the tablespace.
    2.create the password file of target database.
    orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
    3.Take backup of the control file to trace for creating the new control file for new
    auxillary database/
    SQL> alter database backup controlfile to trace;
    sample control file:
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "aux1" RESETLOGS FORCE LOGGING ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO01.LOG' SIZE 10M,//make sure here to change the location of of redo
    GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO02.LOG' SIZE 10M, logs to new location or change the location name before
    GROUP 3 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO03.LOG' SIZE 10M //starating the database at the end.
    -- STANDBY LOGFILE
    DATAFILE
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSTEM01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\UNDOTBS01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSAUX01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS02.DBF'
    CHARACTER SET WE8MSWIN1252
    4.create the password file of auxillary database.
    orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
    5.create the control file
    sqlplus "/as sysdba"
    SQL>@create.sql
    6 catalog all the backuppiece to the newly created database;
    catalog backuppiece 'D:\oracle\product\10.1.0\LOG_707656915_50P1';
    7.We have to restore system,sysaux,undo and the tablespace which was dropped
    run
    set newname for datafile 1 to 'D:\oracle\product\10.1.0\oradata\aux1\system01.dbf';
    set newname for datafile 2 to 'D:\oracle\product\10.1.0\oradata\aux1\undotbs01.dbf';
    set newname for datafile 5 to 'D:\oracle\product\10.1.0\oradata\aux1\users02.dbf';
    set newname for datafile 3 to 'D:\oracle\product\10.1.0\oradata\aux1\sysaux01.dbf';
    set newname for datafile 4 to 'D:\oracle\product\10.1.0\oradata\aux1\users01.dbf';
    restore tablespace SYSTEM;
    restore tablespace UNDOTBS1;
    restore tablespace users;
    restore tablespace sysaux;
    switch datafile all;
    8.Take the other tablespace offline
    sqlplus>alter tablespace tablespace_name offline drop;
    9.recover the database prior to the time when tha table/tablespace was dropped.
    RMAN> run{
    2> set until time "to_date('07-01-2010 14:00:00','dd-mm-yyyy hh24:mi:ss')";
    3> recover database;
    4> }
    10.open the database in resetlog mode.
    take a transpotable tablespace backup of that tablespace and import it on the database where you dropped it.

  • Partial Restoration of Tablespace from RAC instance to non-RAC instance

    when i am trying to restore tablespace from RAC environment to Non-RAC i got below error in my log
    channel aux1: starting datafile backup set restore
    channel aux1: restoring control file
    channel aux1: reading from backup piece c-1840232663-20110405-01
    channel aux1: ORA-19870: error while restoring backup piece c-1840232663-20110405-01
    ORA-19507: failed to retrieve sequential file, handle="c-1840232663-20110405-01", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    sbtrestore: Job[0] thread[18841]: InitializeCLRestore() failed.
    kindly revert,
    Thanks & Regards,
    MJ

    I am not sure what you mean by "OS replication".
    Whether you use RAC or a Failover Cluster, the database has to be on Shared Storage (which requires no "replication").
    RAC licence costs are higher than that for a Failover Cluster because both instances have to licenced and the RAC option has to be purchased.
    Of course, if the two nodes together are limited to 4 CPUs, you could consider Standard Edition to reduce the licencing costs.
    DBA skills requirements are also higher for RAC.
    With respect to your question "...will be sufficient for the avaialability purposes" it really depends on what your requirements are. People use RAC for Avaialability when it really is better positioned for Scalability. If you want only availability and can afford a few minutes downtime, and each node in the cluster can individually handle the user/batch loads, a Failover Cluster would suffice.
    I suggest that you raise this question in the "Database - General" forum : General Database Discussions
    or the "Real Application Clusters" forum : Real Application Clusters
    "Replication" is the wrong forum for such a question.
    When you do re-raise your question, please clarify your understinding of "OS replication".
    Hemant K Chitale
    Hemant K Chitale

  • How to restore TABLESPACE not in backup set?

    I was playing with RMAN on one of my test databases. Here's what I did.
    1) Performed full backup on an ARCHIVELOG enabled database
    2) I created a table space named TBLSP
    3) shutdown the database
    4) Corrupted the only data file in TBLSP
    5) startup
    As you all guessed database won't open. I was pretty sure that if I restore last full backup and roll archive logs forward, I would be able to recover my corrupted tablespace.
    6) rman target /
    7) restore datafile 'D:\oracle\oradata\training\tmptbl01.dbf';
    8) I get
    RMAN-06023: no backup or copy of datafile 14 found to restore
    9) Then I tried following and both worked(?) fine.
    RMAN> RESTORE DATABASE UNTIL TIME "TO_DATE('09/04/2006 12:20:00','MM/DD/YYYY HH:MI:SS')";
    RMAN> RECOVER DATABASE UNTIL TIME "TO_DATE('09/04/2006 12:20:00','MM/DD/YYYY HH:MI:SS')";
    10) Now I can do ALTER DATABASE OPEN RESETLOGS;
    Database is opened but I lost tblsp tablespace. What should I do to recover corrupted tablespace until its last consistent state.
    Thanks...

    From the error you received, I would assume you are not on 10g?
    If you are on 10g, once you determine the tablespace containing the corrupted datafile, you could rename the datafile on the file system and issue the following in RMAN:
    RMAN> startup mount;
    RMAN> restore tablespace tblsp;
    RMAN> recover tablespace tblsp;
    RMAN> alter database open;or
    RMAN> startup mount;
    RMAN> restore datafile <corrupt_datafile_#>;
    RMAN> recover datafile <corrupt_datafile_#>;
    RMAN> alter database open;

  • RMAN throwing errors during Tablespace Backup - RMAN-06004 and RMAN-06019

    Hi All.
    Please help me to fix trail of error message I'm getting while trying backup of a newly added tablespace in database. I'm using RMAN as a recovery method.
    Tablespace Name: test
    DB Version: Oracle 10g R1.
    OS: Red Hat Linux 5
    RMAN> report schema;
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace RB segs Datafile Name
    1 490 SYSTEM YES /u01/app/oracle/oradata/qrcl/system01.dbf
    2 25 UNDOTBS1 YES /u01/app/oracle/oradata/qrcl/undotbs01.dbf
    3 270 SYSAUX NO /u01/app/oracle/oradata/qrcl/sysaux01.dbf
    4 23 USERS NO /u01/app/oracle/oradata/qrcl/users01.dbf
    5 40 TEST NO /u01/app/test01.dbf
    List of Temporary Files
    =======================
    File Size(MB) Tablespace Maxsize(MB) Tempfile Name
    1 20 TEMP 32767 /u01/app/oracle/oradata/qrcl/temp01.dbf
    RMAN>
    RMAN> backup tablespace "test";
    Starting backup at 22-AUG-12
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/22/2012 11:57:13
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name "test"
    RMAN> restore tablespace test;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "test": expecting one of: "double-quoted-string, identifier, single-quoted-string"
    RMAN-01007: at line 1 column 20 file: standard input
    I tried to update Catalog Server but still no luck:
    RMAN> RESYNC CATALOG;
    starting full resync of recovery catalog
    full resync complete
    Please Assist.
    Thanks
    Prashant Dixit

    Hello Prashant;
    The main issue is your tablespace name is an RMAN Reserved Word "Test"
    http://docs.oracle.com/cd/B13789_01/server.101/b10770/rcmcomma.htm#1006728
    Different test
    -- Create the tablespace
    CREATE TABLESPACE OTN_TEST DATAFILE
      '/u01/oradata/RECOVER2/test01.dbf' SIZE 1M AUTOEXTEND OFF
    LOGGING
    ONLINE;-- Create a user for the tablespace
    CREATE USER RMAN_TEST
      IDENTIFIED BY RMAN_TEST
      DEFAULT TABLESPACE OTN_TEST
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
    ALTER USER RMAN_TEST QUOTA UNLIMITED ON "OTN_TEST";  -- Create a table in the tablespace
    CREATE TABLE RMAN_TEST.EMP
      EMPNO     NUMBER,
      ENAME     VARCHAR2(30 BYTE),
      JOB       VARCHAR2(30 BYTE),
      MGR       NUMBER,
      HIREDATE  DATE,
      SAL       NUMBER,
      COMM      NUMBER,
      DEPTNO    NUMBER
    TABLESPACE OTN_TEST;-- Add some data
    SET DEFINE OFF;
    Insert into RMAN_TEST.EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (7369, 'SMITH', 'CLERK', 7902, TO_DATE('12/17/1980 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
        800, 20, 0);
    Insert into RMAN_TEST.EMP
       (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
    Values
       (5000, 'NOCATALOG', 'DBA', 77902, TO_DATE('04/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
        200, 0, 0);
    COMMIT;-- start RMAN and backup tablespace
    RMAN> BACKUP TABLESPACE OTN_TEST;
    Starting backup at 22-AUG-12
    starting full resync of recovery catalog
    full resync complete
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00007 name=/u01/oradata/RECOVER2/test01.dbf
    channel ORA_DISK_1: starting piece 1 at 22-AUG-12
    channel ORA_DISK_1: finished piece 1 at 22-AUG-12
    piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/backupset/2012_08_22/o1_mf_nnndf_TAG20120822T080711_839pczng_.bkp tag=TAG20120822T080711 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 22-AUG-12
    Starting Control File and SPFILE Autobackup at 22-AUG-12
    piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_08_22/o1_mf_s_791971633_839pd1bm_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 22-AUG-12
    Note
    If you dropped the tablespace then you need to recover the database to a point in time, not the tablespace.
    Best Regards
    mseberg

  • 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

Maybe you are looking for

  • 保存先の指定

    プリンタのプロパティのポートの指定は.他のアプリで印刷のプリンタをAdobe PDFにした場合に 指定できる保存先フォルダなのですが. Adobe Acrobat 6.0 Standard を起動して.「PDFの作成」からファイルとスキャナでそれぞれ取り込んだ後に.メニューバーの「ファイル」から「名前を付けて保存」か.アイコンの 「上書き保存」を選んだときのデフォルトの保存先を設定するにはどうしたらいいでしょうか? XP Pro SP2 Adobe Acrobat 6.0 Standard

  • While executing findDynamicSources in SpryDataSet.htm, a JavaScript error occurred.

    I'm working with Spry datasets for some time now. But now I have a very annoying problem. When I use  the character '{' in any part of the HTML-sourcecode (HTML or JS) my Dreamweaver CS5 (11.0 build 4964)  freezes and crashes. When I try to examine t

  • BUG - Images not being generated

    Something I just noticed... I'm using RoboHelp for System User Guides. For each screen in the System, I have a topic. In this topic is a screen shot of the screen. To save space on the topic I decided to try something new and link to the image throug

  • I can´t open multiple windows in apple mail application.

    When redacting a new mail, I have to close the new window and save the message if I have to look for information in the inbox. Before upgrading to Yosemite, I used to change windows simply by selecting the window that i needed in the "window" menu. N

  • JOptionPane buttons(OK/Cancel) in German Language??

    hi, I need to do translation of my Swing Screens. I implemented it using ResouceBundle.Now the messages are coming in the JOptionPane are coming from the property file. But the buttons-->OK & CANCEL are still in english.I need to translate this also.