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

Similar Messages

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

  • Find tablespace with most indexes

    Hi everyone,
    I was wondering if any of you know a better way than mine to find the tablespace with the most indexes?
    I made this query but maybe it can be done in another way?
    SELECT DISTINCT tablespace_name
      FROM user_indexes
    WHERE tablespace_name IS NOT NULL
       AND index_type != 'DOMAIN'
    GROUP BY tablespace_name
    HAVING COUNT(*) >= (SELECT COUNT(*)
                          FROM user_indexes
                         WHERE tablespace_name IS NOT NULL
                           AND index_type != 'DOMAIN'
                         GROUP BY tablespace_name
                        );Thanks

    Solomon Yakobson wrote:
    No. TABLESPACE_NAME in DBA_INDEXES is null (among other cases) for partitioned indexes. Yes, I know. That's why I asked in the way I did. The NOT NULL was from OP.
    But, you are right. OP should have been told that he/we would not find partioned indexes.
    select tablespace_name
    from   (select   rank () over (order by count (distinct index_name) desc) rnk,
                     tablespace_name
            from     (select index_name, tablespace_name
                      from   dba_indexes
                      union all
                      select index_name, tablespace_name
                      from   dba_ind_partitions
                      union all
                      select index_name, tablespace_name
                      from   dba_ind_subpartitions)
            where    tablespace_name is not null
            group by tablespace_name)
    where  rnk = 1;Regards
    Peter

  • 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

  • Determining in which tablespace the indexes are imported to

    Hello all,
    Often, the tables are in one tablespace and the indexes of these tables are on another tablespace.
    If we have a DMP file done on a schema-level. Is there a way to import this DMP by specifying in the IMP that the tables of the exported schema are to be placed in one Tablespace and the indexes of these table are to be put on another tablespace?
    Thnx for the replies.
    Good day,
    Sam

    Basically, when you do import, oracle try to look for the same tablespace as source to import tables. If not found, then it quits with errors.
    If the ignore=y parameter is specified with import command and when there is no tablespace as source tbs in the target, oracle will try to import in the default tablespace of the user/schema.
    However, there is no command that gives the flexibility to import table in one tablespace and index in another tablespace.
    Why dont you create the same tablesspaces in Target database as in source database?
    You can always move index to another tablespae after import.
    Jaffar

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

  • Tablespace with too many extents are evil for performance

    I think the tablespace with too many extents are not bad for performance after introduction of LMT tablespace?? May be true with DMT tablespace(earlier versions). This is just observation after reading the LMT vs DMT tablespaces.
    Experts - Please comment on your thoughts.

    Indeed, I work in an environment where there is over 50 databases to be administered and so we have lots of DBAs interacting with each other.
    I'm stunned by this myth of "reorganization". Most of the DBAs move tables + rebuild indexes regularly generating huge redo  on a monthly basis. Also provoking indexes to do all the splits again generating even more redo. They claim "it helps performance a lot" however not one is able to quantify and quite justify it other than "less extents less I/O, good". Even when I bring up the existence of shrink they say "do not like it, prefer the classic move". People really have a way of holding on to their good ol' practices of Oracle 8i.
    For full table scans (which should never be done on a OLTP scenario) this extent issue would be relevant IF data on the table is the victim of large deles and Oracle hasn't re-used that space yet. If your multiblock reads is a multiple of your extent size, than there won't be any overhead of I/O call, no matter the number of your extents. For OLTP this is not relevant because Oracle will access the table via ROWID.
    I rarely have ever seen an index benefit from a rebuild significantly. In my experience what people often understand as "index fragmentation" is often just an unoptimized execution plan due to cardinality issues where oracle ends up fetching a large percentage of the table via single reads on that index.

  • Broken links with index keywords

    Using RH 8, I have 20 broken links associated with index keywords. can someone advise how to easily get rid of these broken links?
    Many thanks

    I assume you are talking about links to index keywords rather than unused index keywords. If so, you have references to those index keywords somewhere inside your project. Your options are to repair the links or remove the references. If you right click on each broken link there are options to Edit, Restore and Show References which will help you find out what is going on.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Separate tablespaces for indexes and LOBs

    I have modeled my db tables with jDeveloper. Now I would like to store my tables in default tables, my indexes in a separate tablespace, and LOBs in a 3rd tablespace.
    How can I best add the tablespace definitions to the table creation sql? I can't find such functionality in jDeveloper.
    If jDev does not support this, does Oracle have some other tools which could do this?
    Or can I set some ALTER SESSION parameter before creating the tables which would make my indexes and LOBs go to the correct tablespaces by default?

    I see jDeveloper 11g has a possibility for specifying tablespaces for the tables and LOBs.
    I cant figure out how to set tablespaces for indexes though. I can tell there is definately no way to set tablespace settings for primary key / foreign key indexes.
    So jDev 11g does not seem to solve my problem either.

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

  • Undo tablespace with active transaction/segment corrupted

    How to recover if undo tablespace with active transaction/segment corrupted

    Try RMAN blockrecover or restore the tablespace from latest backup and recover it.

Maybe you are looking for