RESTORE TABLESPACE

Hi,
We have our EUL set up and working fine until last week. Today I received a call from the user saying that they are unable to open any workbooks, complaining that it has lost the joins.
Upon investigation found that, these workbooks are built upon a couple of complex folders and when looked into the EUL found that these Complex Folders are DISAPPEARED.
I know my database is in Archive Log mode and the EUL owner is in USERS tablespace. I do not know at what point these folders disappeared. And we do not have a back-up of the EUL.
Can somebody plz suggest how to restore the EUL schema from the tablespace. I am thinking of going back to a week for restoring the tablespace.
Env: Oracle 10.2
Many Thanks
MK

Hi M_K!
There are two posible solutions for your problem.
1.) If you have a testing DB try recovery back some days (2 or 3) and look for the lost schema. If you can bring it back on this way do the recovery on your production system.
2.) If you don't want to recover aimlessly back in time then log miner will be your best friend. Do you know about log miner? If not, log miner is a tool for checking through your archive logs and read all the Redorecords. On this way you can estimate the time when your EUL got lost.
Hope this helps!

Similar Messages

  • Backup/restore tablespaces in noarchivelog mode

    In our office there is a oracle 10g box that's used for testing purposes.
    It's only got 1 database, but each user has their own tablespace.
    As it's not a 'live' box, archivelog and flashrecovery have been disabled by the dba probably in favour of speed.
    I have a NUnit test suit that runs across a tablespace, and I am trying to restore the tablespace before each run.
    In noarchivelog mode, RMAN allows me to take the tablespace offline, and create a backup - so far so good.
    Later on, I am able to take the tablespace offline again, and issue a "RESTORE TABLESPACE" command.
    But then I cannot bring the tablespace online without issuing a "RECOVER" command.
    I have tried the NOREDO option but it still says that the file needs a media recovery before it can be brought online.
    Is there a way to bring the tablespace online without applying the REDO logs ?
    Or is tablespace backup/restore not possible because of noarchivelog ?
    Thanks.

    I tried the TTS method, and it was only marginally quicker than a data_only impdp.
    I suspect this is due to the nature of a fresh nunit test database, where the metadata (huge tables structure, stored proc, etc) is often larger than the table contents itself.
    In the grand scheme of things it might even end up slower, as i need to drop the tablespace including contents if i want to use TTS to load up the backed up dbf.
    From the comments I'm guessing that there's no way of just updating the timestamp of the tablespace without applying the REDO logs then ?
    I've tested other methods as well.
    Flash recovery could only work on a table or db level, I can't take the db offline as there are other users on it with their own tablespace/schemas. (it was an old dev's box, we're reusing what we can)
    impdb with the truncate and data_only flag seems to be the only viable option so far, with TTS up for consideration.

  • 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

  • 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 Tablespace incremental backup is not work as after reimage oracle

    TheTablespace incremental backup Restore is not work as after reimage the oracle database or restore tablespace in standby machine(another machine) is not working .its working in the same machine without reimage .after reimage not working please clarify me ,
    I need the solution as soon as please reply as soon as .
    Commnads used:
    This is the step is followed but i am getting backup or control file not found error.Its works i the application server is not reimaged ;
    please give your valuable suggestion .
    Product Used:oracle 11g in linux environmnet
    1)Before taking backup get SCN number for restore.
    Command applied: Select current_scn from v$database;
    2)running Full backup of database
    Command applied:
    configure controlfile autobackup on;
    backup database plus archivelog;
    CROSSCHECK BACKUP;
    exit;
    3)Running level 0 incremental backup
    Before taking backup get SCN number for restore.
    Command applied:
    BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 0 TAG ='WEEKLY' TABLESPACE TEST;
    exit;
    3) Running level 1 incremental backup
    Before taking backup get SCN number for restore.
    Command applied:
    BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 1 TAG ='DAILY' TABLESPACE TEST;
    4)Before Restore(TSPITR) following procedure are applied under sysdba privilege
    Command applied:
    SQL 'exec dbms_backup_restore.manageauxinstance ('TSPITR',1)';
    5)TSPITR Restore command
    Command applied:
    run
    RECOVER TABLESPACE TEST UNTIL SCN 1791053 AUXILIARY DESTINATION '/opt/oracle/base/flash_recovery_area';
    SQL 'ALTER TABLESPACE TEST ONLINE';
    please calrfiy my following question:
    1. After reimage(reinstall oracle database with application ).The aboove scenario is not working
    2. After fullbackup what are the files needs to copy from (opt/oraclle/base/flash_recovery_area/dbname/) to repository because daily cleanup script will keep the data as sysdate -1 .
    For fullbacckup we are currently copying entire (flash_recovery_area/dbname) database folder to repoistory.
    3. after incremental backup what are the files needs to copy from (opt/oraclle/base/flash_recovery_area/dbname/..) to repository because daily cleanup script will keep the data as sysdate -1
    For incremenatl backup currently we are copying (flash_recovery_area/dbname/backupset/<currentdate> and flash_recovery_area/dbname/autobackup/<currentdate>) folder to repoistory.
    4.During restore we are copy entire things from repository to flash_recovery_area finaly apply the above mentioned restore command.
    Tabelspace incremenatl restore is possible after reimage application server(fresh database)/another server with same database(standby machine) ....?
    If we missing something in backup side please clarify me how to retore the tablespace incremental / level 0 tablespacae after reinstallion of server/another standby server.
    Any information please let me know .I need the solution as soon as please reply as soon as .

    Try the Recovery Manager (RMAN) instead. This forum is for feedback about the 11g XE Beta.

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

  • 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 :)

  • Can rman restore tablespace to a different tablespace name?

    Hi all,
    I was wondering that can RMAN restore a tablespace to a different name tablespace in the same instance? I have the full backup by RMAN, I wonder I can do that or not? Any helps would be greatly appreciated. Thank you.
    Rich,

    Hi,
    a tablespace is not necessarily a logical space to separate schema objects from one another (could be, but not necessarily, depends on your object distribution).
    So what you need is: export your original user schema with the exp utility
    then import this dump into another user schema with the imp tool (fromuser=old touser=new)
    BEFORE you create the new user and you give it a different default tablespace. If you like to really separate the objects in tablespaces (like for transportable tablespaces) you may deny access to any of the tablespaces of old user to the new user. That makes sure data is not erroneously loaded in the old tablespaces.
    Read the docs to understand this clearly if you like.

  • RMAN Restore tablespace across LPAR's

    My Oracle revision is 10.2.0.4
    I have a full backup of a Production database and I want to restore just ONE tablespace from the backupset to another database instance on a different LPAR. I have read the documentation on creating and updataing duplicate databases with RMAN but havent found if I can just restore one tablespace/datafile to another instance.
    Help!!

    You can try to use RMAN DUPLICATE with the SKIP TABLESPACE clause to skip all application tablespaces except the one you really want to restore:
    >
    SKIP TABLESPACE 'tablespace_name'      
    Excludes the specified tablespace from the duplicate database. Note that you cannot exclude the SYSTEM tablespace, undo tablespaces, and tablespaces with rollback segments.
    >
    (From http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta028.htm#RCMRF126).
    From the duplicated database you should be able to transport the tablespace to the right database.

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

  • Restoring Tablespace in different location from the original location

    Dear Experts
    We are doing an Restoing of production database in to an another server. where the production database runs on Windows and the sap directories has been stored in 6 drives but in the second servder which has only 3 drives but high capacity. we want to restore the files from the production database (hich will have the drive reference ) to the new server ( which has 3 drives only) by referring only the sap directories so that it is safe to pull the data
    in brrestore how the comman / syntax should be?
    could any one guide us
    regards
    bala

    Hi,
    You will have to follow a redirected restore procedure for oracle rather than a normal restore.
    For this you will have to do the following:
    1. Take a full offline backup or an online consistent backup of your production database.
    2. Backup control file to trace on your production server.
    3. Display the back<SID>.log summary log in production and identify the u2018affu2019 or 'anf' file that was created for the production backup.
    4. Copy the back<SID>.log and .aff/.anf files to the sapbackup directory of quality.
    5. Now use the brrestore redirected option:
    brrestore -m all,<source drive 1>=<target drive 1>,<source drive 2>= <target drive 2>  -b <file-id>.aff
    This performs a redirection of the file during brrestore operation.
    6. Manipulate the control file trace you created above and change the drives accordingly. Rename it to control.sql
    7. Then do the following:
    >sqlplus /nolog
    >connect / as sysdba
    >@c:\control.sql
    >shutdown immediate
    >startup mount
    >recover database using backup controlfile until cancel;
    The recover part is only required if you have used a online backup.
    Hope this helps.
    Regards, Dibya

  • Restore tablespace using DBF file & structure export

    Hi,
    we've dropped our testing database - USER & TABLESPACE. We don't have any backup (nor control file), just .DBF file and older export (emty tables, same structure).
    Is any possibility to recover dropped data?

    Which .dbf files do you have and are they from a cold backup? If you have all the .dbf files, you could recreate the control file and recover your data.

  • Restore tablespace with indexes.

    Hi
    I ve lost a directory with some datafiles inside, these datafiles contained only indexes, we don't have any backup cause it was a develoment database, now I've created another tablespace and I'm trying to rebuild the indexes but it returns this message.
    Alter index USR_CCONTROL.SYS_C008164 rebuild
    TABLESPACE TS_CCONTROL_NDX2;
    ORA-00376: file 2 cannot be read at this time
    ORA-01111: name for data file 2 is unknown - rename to correct file
    ORA-01110: data file 2: '/oracle/product/10.2.0/db_1/dbs/MISSING00002'
    What could I do please.
    Thanks

    Well
    What I did was to disable all primary key indexes that were inside the damage tablespace, after that I had to drop the indexes (1322) and recreate them on the new tablespace. Then take offline drop the damage tablespaces.
    DROP INDEX USR_OPCOM.PK_OPC_CANON_AGUA;
    CREATE UNIQUE INDEX USR_OPCOM.PK_OPC_CANON_AGUA ON USR_OPCOM.OPC_CANON_AGUA
    (CODIGO_CANON_AGUA)
    LOGGING
    TABLESPACE TS_OPCOM_NDX2
    NOPARALLEL;
    I don't know if it was the better to do but now the database is open and running.
    Thanks

Maybe you are looking for