Restoring table from a tablespace

Hello!
Please suggest.
Is it possible to restore a table in a database
if the tablespace containing it was dropped INLUDING CONTENTS AND DATAFILES and no backup of the database is available?
Thanks a lot.

I apologize if I was not clear.
Although I issued INLUDING CONTENTS AND DATAGILES datafiles of the tablespace on the hard fisk not deleted. Oracle docs say too that sometimes it may be possible that
datafiles physically will not be deleted and you just remove them manually.
So this is my case.
1.Database is in NOARCHIVELOG.
2.DROP TABLESPACE TBSP_NAME INLCUDING CONTENTS AND DATAFILES
was issued.
3. No physical or logical backup of the database or of the tablespace is available.
4. Datafiles of the tablespace are not physically removed from the hard disk, they still reside there.
Is it possible to get the table back?
Thanks much.

Similar Messages

  • Restore tables from dropped tablespace

    I have a tablespace that has been dropped and re-created.
    I found out that there are some tables in the dropped tablespace that I'd like to get back.
    Is there a way to do this using RMAN ? I have an rman backup of the tablepsace from a few days ago.

    Too bad since you dropped the tablespace, you can't use RMAN Tablespace Point In Time Recovery. (TSPITR)
    You have to do whole database Point-In-Time Recovery using Until clause of RMAN restore
    until Clause
    If you have FLASHBACK DATABASE turn on, that's easier.
    User-Managed Flashback Features of Oracle

  • How to move table from one tablespace to other tablespace?

    how to move table from one tablespace to other tablespace?

    887274 wrote:
    how to move table from one tablespace to other tablespace?
    alter table <table_name> move  tablespace <new_tablespace_name>;
    Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
    SQL> create table ttt( ID NUMBER PRimary key);
    Table created.
    SQL> insert into ttt values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL> alter table ttt move tablespace users;
    Table altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 UNUSABLE
    SQL> alter index SYS_C0010863 rebuild tablespace users online;
    Index altered.
    SQL> select index_name, status  from dba_indexes where table_name='TTT';
    INDEX_NAME                 STATUS
    SYS_C0010863                 VALID
    SQL>

  • Moving table from one tablespace to another

    Hi,
    I want to move several tables from one tablespace to another as I know I need to rebuild indexes(as indexes are invalid after this) what I want to know is that constraints needs to recreate again after table movement, Thanks.

    what I want to know is that constraints needs to recreate again after table movementNo you don't need do that.

  • Transport table from system tablespace to another tablespace

    hi there,
    how can we transport a table from system tablespace to another tablespace(example users tablespace)?

    Assuming you are not trying to move any data dictionary tables.
    Use alter table to move it,
    ALTER TABLE my_table MOVE TABLESPACE USERS;
    Rebuild index after move.
    This will work on Oracle 9i and above.

  • How to move all the tables from one tablespace to other for a whole schema

    Hi,
    Is there any way to move all the tables in a schema from one tablespace to other?
    If so please help me out to do that.
    Thanks
    Regards
    Gatha

    hi,
    here is the steps to move SCOTT's objects from their current tablespace to a NEW_TABLESPACE
    would be:
    1) do an export of all of scott's objects. Make sure no one modifies them after you
    begin this process. You will lose these changes if they do.
    $ exp userid=scott/tiger owner=scott
    2) you would drop all of scotts tables. This will get the indexes as well. I don't
    suggest dropping the user SCOTT but rather dropping scott's objects. Dropping scott
    would cause any system priveleges SCOTT has to disappear and the import would not restore
    them. This script can be used to drop someones tables:
    set heading off
    set feedback off
    set verify off
    set echo off
    spool tmp.sql
    select 'drop table &1..' || table_name || ' cascade constraints;'
    from dba_tables
    where owner = upper('&1')
    spool off
    @tmp.sql
    3) You would modify the user to not have unlimited tablespace (else the IMP will just
    put the objects right back into the tablespace they came from) and then give them
    unlimited quota's on the new tablespace you want the objects to go into and on their
    temporary tablespace (for the sorts the index creates will do)
    alter user SCOTT default tablespace NEW_TABLESPACE
    revoke unlimited tablespace from SCOTT
    alter user SCOTT quota unlimited on NEW_TABLESPACE
    alter user SCOTT quota unlimited on SCOTTS_TEMPORARY_TABLESPACE
    4) you will IMP the data back in for that user. IMP will rewrite the create statements
    to use the users default tablespace when it discovers that it cannot create the objects
    in their original tablespace. Please make sure to review the file imp.log after you do
    this for any and all errors after you import.
    imp userid=scott/tiger full=y ignore=y log=imp.log
    5) you can optionally restore 'unlimited tablespace' to this user (or not). If you do
    not, this user can only create objects in this new tablespace and temp (which in itself
    is not a bad thing)...
    Regards,
    Mohd Mehraj Hussain
    http://mehrajdba.wordpress.com

  • Urgent -- need to restore table from full database backup

    Hello,
    Can somebody tell me the process for restoring just a table from a full database backup?
    I did a full online database backup yesterday, and one of my tables got ruined today. I need to restore it as soon as possible, but I don't know how. When I tried flashback tables, it said that feature wasn't enabled. Should I restore the datafile or the tablespace?
    Thanks much,
    Nora

    If you only want to recover the table and not the other objects in the tablespace, and assuming the table was damaged by a user statement (and not, say, block corruption), you would need to recover your backup to a different system, export the table that was damaged, and import the table into your real production database. If you can recover the entire tablespace to an earlier point in time, or if you can lose some committed changes to other database objects, you may have other options.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Want to drop non-system table from system tablespace

    My system tablespace was having some user tables , so I moved those tables to user tablespace. Now that tables are showing in both the tablespaces ex. RET_OFF is showing in system as well as users tablespace I want to drop it from system tablespace only . Can I do it . plz help

    Hi Florian , plz check the below details . I am working on Oracle 11g on Windows platform.
    SQL> alter table REF_VAT_OFF move tablespace vatsoft;
    Table altered.
    SQL> select owner, table_name, tablespace_name
    2 from dba_tables
    3 where table_name='REF_VAT_OFF';
    OWNER TABLE_NAME     TABLESPACE_NAME
    KNVATCEN REF_VAT_OFF     SYSTEM
    OWNER TABLE_NAME     TABLESPACE_NAME
    KNVAT REF_VAT_OFF     VATSOFT

  • BRTools or SQLPlus to restore table after unfortunate tablespace drop?

    We have had an unfortunate incident after an upgrade here.
    I assume something went wrong during the upgrade, which left a lot of tables assigned to a table type which can not be selected and has description «Repositoryswitch tablespace 700». There are four table types with this description; SLDEF, SLEXC, SSDEF and SSEXC.
    The table space was dropped a couple of days after the upgrade. However, there were tables in this table space, and some of them had content too, so recreating the tables is not sufficient, we have to get the content back as well. Among the tables were E071K which is vital for the transport system.
    Now our basis people have recreated the affected tables in production and restored a backup from before the tablespace drop to our sandbox system. Unfortunately I have been given the task of figuring out how we best can restore data (table contents) from the affected tables into production.
    SQLPlus is an option, and currently the one I am leaning towards. However, since BRTools is a dedicated database management tool I have tried to figure out whether it would be possible to do this using BRTools and whether BRTools does some additional administration which will not be done by SQLPlus - giving us new headaches.
    To make matters worse they did a full restore of our test system so we don't have any systems where we can test our approach!

    Sunny Pahuja wrote:
    > First of all how you deleted the tablespace because if tablespace has some data then BRtools should have given you some warning.
    Let me just state for the record that it wasn't me
    I'm an ABAP and Business Workflow developer, not a basis person.
    I've talked to one of the DB experts here, and she will use SQLPlus and select data from the restored tablespace into the production table space.
    Stefan Koehler wrote:
    > So it is very easy to recover without any additional hacks by using Transporting Tablespaces.
    That would probably be our preferred solution if we could be sure that no new data had been created in production after the tables were restored there to reduce the problems for users (program crashes). The mentioned DB expert said this option would overwrite the entire table contents, like a binary copy, so we decided to go for the other solution using selection from one database into another.
    Thank you both for your help. Peers are invaluable!

  • Problem in Creating a table with Default Tablespace

    Hi All,
    1) Can anybody plz tell me the syntax to move a table from one tablespace to another.
    2) Also, plz tell me the Syntax of when creating a table specifying the tablespace name also.
    Regards

    1) Alter table <table_name> move tablespace <tablespace_name>
    2) example of create table is given below
    CREATE TABLE emp123
    ( employee_id NUMBER(6)
    TABLESPACE <tablespace_name>
    STORAGE (INITIAL 600
    NEXT 600
    MINEXTENTS 2
    MAXEXTENTS 100 );
    Read following doc for more details
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
    Cheer,
    Virag

  • How to relocate table in new tablespace in Oracle 8i

    Hi all
    I would like to know how to relocate table from one tablespace to another tablespace in Oracle 8i. Currently, I create new table without data in new tablespace and then load data from old table in old tablespace. However, I think it is not efficient at all. Could anyone kindly advise any method to proceed it
    Thanks

    Nick has pointed out the best way to relocate a table. With the alter table move command you do not have to worry about FK or any other kind of constraints, table triggers, or grants. They all remain in place. You just need to rebuild the indexes as Nick pointed out.
    There were some restrictions on the types of tables that could be moved with alter table move when the command first was introduced. I think LOB columns were unsupported at first. The old exp/imp had to be used for those cases.
    HTH -- Mark D Powell --

  • Restore a single table from full database backup

    Hi,
    I have a full database (10.2.0.1) backup with RMAN.
    Suddenly a table got truncated. How to get back that table without restoring and recovering the full database (Point in time recovery) since if I restore the database to an earlier time then the other transactions will hamper.
    Also creating a standby database and import export the table will solve my problem. But is there any other way to restore the lost table.
    Thanks in advance.

    No other way to restore the data if you don't want do point in time recovery. If you drop the table then you can restore it from the recyclebin but for the truncate operation it won't help. If you have enabled the flash back table for that particular table then you can restore the data for only that table.
    Regards
    Asif Kabir

  • How to restore one table from the previous backup in 9.2.0.8 version.

    Hi,
    How to restore one table from the previous backup in 9.2.0.8 version.
    Thanks
    -Ganga

    Hi,
    What is the table you want to restore?
    Using export/import is supported with Oracle Apps database (for full database exp/imp, and certain schemas like custom ones). For the Apps schema, I believe it is not supported due to object dependencies and integrity constraints.
    Regards,
    Hussein

  • How restore table description in DDIC from DB  ?

    How restore table description in DDIC from DB  in tools ABAP Workbench ?

    Hi  Igor,
    your question was:
    How restore table description in DDIC from DB in tools ABAP Workbench ?
    (Posted on 30-Apr-2010)
    I you still have not solved this problem, then please can you explain it?
    Thanks and regards,
    Sachin.

  • 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

  • Data extraction is taking long time

    Hi, I am extracting data into infocube from datamart. it's fullupload and almost extracting 24lack records. generally it should take less than time but taking more than 6 hours to upload. data selection and scheduling is happening correctely but ackn

  • Bilder aus PDF Dokumenten kopieren

    Hallo Früher konnte ich Bilder aus einem PDF Dokument anklicken, kopieren und in Word oder Excel einfügen. Heute bekomme ich nur noch ein schwarzes Bild beim einfügen. Woran könte das liegen?? Bei PDF die ich selber aus Word erstellt habe geht es. Ha

  • Printer won't print in black and white

    I have a Deskjet 932C printer and a Windows 7 Optg. System. I installed a new black and white cartridge but the sheet is blank when I set the printer for B&W. When I set it for color I get monotone blue. Any suggestions?

  • HT4528 Why is the new upgrade draining the battery on my iPhone 5?

    The battery on my iPhone dies so fast now. I always turn off all my apps, I have turned off everything that everyone has suggested, and it still dies. I cannot be without a charger. I have to charge my phone twice a day.

  • The Nano is better than expected

    I just loaded music and audiobooks. Art came through. Sound is better than other ipods (by my ear). It is easy to find your spot on audiobooks. This ipod advances audiobooks a few minutes at a time and there is time bar to see where you are. Other ip