Pointing Datafile to new Tablespace...urgent!!!

Hi,
I have this DB that some guy created 2 large Temp Tablespaces as Dictionary Managed and the performance is killing us. Not to mention that when we do a shutdown, it takes almost 3 hours. I was planning on creating a new Temp Tablespace (TEMP3) as locally managed and all the datafiles from the other 2 I wanted to point to the new one.
How can I do this. I don't want to remove the files from the OS and have Oracle re-create them. Is there an easier way?

...but the problem is when I try to drop the temp tablespace the files are already deleted from the OS. So essentially Oracle has these datafiles offline and it says that they need recovery, when infact the files do not exist.
Any thoughts from here?

Similar Messages

  • Is it possible to create a new tablespace whose datafile will be on a filesystem instead of ASM?

    All of our datafiles are located in ASM disks (we have only one ASM diskgroup). Now, we are running out of space in this ASM diskgroup although we have a planned ASM disk expansion, but it will not be happening anytime soon.
    Now, I need to move partitions in order to be able to resize the database files considerably. When moving partitions I need to create a new tablespace where the partitions can be moved to (in filesystem), and afterwards, be moved back to original tablespace (in ASM). But since our partitions are so big (in GB), I don't have enough space in ASM. I only have a filesystem which has enough space to do the above. My question is: Will there be no problem if I create this move tablespace in this filesystem having in mind that my database uses ASM? This is just temporary until I'm done with this. Unfortunately, I don't have a testbed where I can test this.

    Ok. Thank you very much. I created new tablespace in a filesystem without any problem neither an error. Now, our DB is a mix of ASM and filesystem, but as I've said earlier, this new tablespace is just temporary until I finish the relocation of partitions and back.

  • Oracle database reorganization (moving datafiles to new filesystems)

    Hi All,
    We are planning to perform a database reorganization (moving datafiles to new filesystems) in our Production environment using SAPDBA.
    We had noticed in our recent performance reports that few datafiles in some of the SAPDATAxx filesystems are having higher I/O contention and are putting heavy load on those filesystems resulting in poor performance. So, we had identified the datafiles and planning to move them to new SAPDATA filesystems (uniformly distribute the datafiles to stabilize the I/O). Below are the version information.
    SAP: 3.0F
    Oracle: 9.2.0.8
    OS: HP-UX 11.23
    SAPDBA: 6.20
    I'm going through SAP notes and Oracle documentation on this.Can you please share your experiences if similar activity was carried out by any of you and the documents relating to this.
    Your inputs on this is very much appreciated.
    Thanks,
    Vasu

    If your goal is just to make use of new storage, it is fairly straightforward and quick to move the datafiles as others mentioned. However, moving the datafile will NOT reorganize tables/tablespaces.
    You can optionally reorg tables/tablespaces in addition to the move of datafiles. This generally saves space and helps performance. If you decide to reorg, I would suggest you move the datafiles to faster storage then reorg (since reorg itself is highly IO intensive).
    Some points to consider:
    - perform the reorg when business use is least
    - perform online reorg where possible
    - online reorg creates temporary snaps, typically in the users default tablespace, make sure it has sufficient space
    - start with small tables/tablespaces first to get throughput estimate and also estimate of reduction in size
    - estimate the size of target tablespace (how small it is going to be compared to source) and build the target tablespace smaller to avoid wasting space
    - watch the space usage of the target tablespace when the reorg is running
    - if you are reorging individual tables, make sure the indexes are rebuilt
    Hope this helps.
    Regards,
    Shan

  • How to reduce the size of Temporary Tablespace - URGENT

    Hi all,
    I need your help urgently. I have one Default Temporary Tablespace TEMP in my Oracle 9i database. There are two files in the tablespace each of size 32GB. I need to reduce the size or if possible i need to remove on datafile from the tablespace.
    Could you please provide me with the solution of this?
    This is really very urgent.
    Thanks in advance
    Himanshu

    Add a new temporary tablespace.
    Set this to default database temp tablespace.
    Then you can drop the old TS when all the pending transactions are complete if they are using temp space.
    Also, you need to investigate as to why your temp tablespace files were 32 GB in size. Looks like your application is doing too much sorting.

  • Error while creating a new tablespace

    Hi all,
    i got the following errors when i tried to create a new tablespace in my database.
    ORA-00604: error occurred at recursive SQL level string
    ORA-01655: unable to extend cluster string.string by string in tablespace string
    can anyone suggest any possible reason?
    thanks in advance..

    Hi,
    ORA-01655 unable to extend cluster string.string by string in tablespace string
    Cause: Failed to allocate an extent for cluster segment in tablespace.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated
    Pls check out the disk space. The command you issued is working for me and for all. Might be some errors in your disk.
    Regards,
    Raj

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

  • How to drop the datafile in a tablespace

    hi,
    I need to drop the datafile in a tablespace.How to drop the datafile in the tablespace.If iam able to drop the datafile and is it possible to create the datafiles with the same name.could u pls help me out..
    Thanks in advance,
    R.Ratheesh

    sql > alter database <datafile> offline drop ;
    sql > alter database open ;What if the datafile have the segments in it, I believe users will not be able to access them. And system will put the datafile to Recovry mode not drop it.
    Dropping a datafle is possible only in 10G. In 9i you can reduce the size of file below the size of your min extents so that the space wont be allocated from that datafile or you may need to recreate a new tablespace copy all the segments from old tablespace and drop old one.
    Cheers

  • CREATE A NEW TABLESPACE THAT IS LIKE AN EXISTING TABLESPACE?

    Hello,
    Does anyone know how to create a new tablespace, e.g, bk_USERS, based on an existing tablespace, say USERS tablespace? The EM has option 'create like' to accomplish this, but I'd like to use the statements from command line.
    Thank you for assistance,

    hi Anurag Tibrewal,
    I am using Oracle 10g Enterprise and would like to create a new tablespace based on the structure of the existing tablespace. In other word, is it possible to copy existing tablespace and have the newly created one under the new name?
    I tried something as follows but it does not work:
    CREATE TABLESPACE new_tablespace_name LIKE existing_tablespace_name DATAFILE '$ORACLE_HOME/oradata/datafle SIZE 10M;

  • Creating new Tablespace in 10g XE using Database Home Page

    How can I add a Tablespace using the "Database home Page" GUI? I've done this before, but now do not see a link for "Create Tablespace" under the Administration -> Storage icon. I'm logged in as sys.

    use sqlplus to create a new tablespace
    (set your XE environment first)
    (for Linux)
    the environment file envOraXEclient for example) -- modify for your env and different shell, and source the file
    export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    export TNS_ADMIN=/home/mytnsdirectory
    export TWO_TASK=XE
    export LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib
    export PATH=$ORACLE_HOME/bin:${PATH}
    by using sqlplus, create the tablespace (use different size if you want, up to 4gb, you can create smaller, more than one tablespace, etc - this is just an example)
    CREATE SMALLFILE
    TABLESPACE "MYTBLSPC1"
    DATAFILE '/usr/lib/oracle/xe/oradata/XE/mytblspc1.dbf'
    SIZE 2G REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
    LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO
    if you want, create a dedicated temporary tablespace for your user/s as well (here is an example)
    CREATE SMALLFILE TEMPORARY TABLESPACE "MYTEMP"
    TEMPFILE '/usr/lib/oracle/xe/oradata/XE/mytemp.dbf'
    SIZE 100M REUSE EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1024K
    turn the recyclebin off if you want/need to (I do ;)
    alter system set recyclebin=off;
    change the open_cursors if you want/need to (I do ;)
    ALTER SYSTEM SET open_cursors = 5000 SCOPE=MEMORY;
    ALTER SYSTEM SET open_cursors = 5000 SCOPE=SPFILE;
    ALTER SYSTEM SET session_cached_cursors = 50 SCOPE=SPFILE;
    create a specific user utilizing the tablespaces you created earlier
    CREATE USER "ZAFER" PROFILE "DEFAULT"
    IDENTIFIED BY "zafer" DEFAULT TABLESPACE "MYTBLSPC1"
    TEMPORARY TABLESPACE "MYTEMP"
    ACCOUNT UNLOCK;
    (grants are up to you - and your development / deployment environment)
    GRANT UNLIMITED TABLESPACE TO "ZAFER";
    GRANT "CONNECT" TO "ZAFER";
    GRANT "RESOURCE" TO "ZAFER";
    Edited by: zaferaktan on Sep 4, 2009 10:09 AM

  • RMAN - Adding new Tablespaces

    After having run rman for 2 months, new tablespaces have been added today.
    I ran a full backup with rman, but the new tablespaces do not show with:
    list backup;
    Also
    RESTORE DATABASE VALIDATE;
    returns no errors.
    How can I ensure, the backup is up to date ?
    Thanks in advance,
    Rob

    temporary tablespace are not backed up in RMAN
    Starting backup at 23-JAN-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    input datafile fno=00005 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    input datafile fno=00006 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST01.DBD
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 23-JAN-07
    channel ORA_DISK_1: finished piece 1 at 23-JAN-07
    piece handle=C:\ORACLE\PRODUCT\10.2.0\ORADATA\BACKUP\0SI875IR_1_1 tag=TAG20070123T073802 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
    Finished backup at 23-JAN-07
    RMAN> report schema;
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    490      SYSTEM               ***     C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    2    435      UNDOTBS1             ***     C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    3    270      SYSAUX               ***     C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    4    26       USERS                ***     C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    5    100      EXAMPLE              ***     C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    6    100      TEST                 ***     C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST01.DBD
    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    1    26       TEMP                 32767       C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF
    RMAN>

  • Tablespace - urgent please

    Hi-
    I have some of my tables in system tablespace. So I moved them to its specific tablespace. Now this is the error msg that I get:
    SQL> select * from tab1 where reg_num like '164%';
    select * from tab1 where reg_num like '164%'
    ERROR at line 1:
    ORA-01502: index 'BANK_ADMIN.PI_PK1' or partition of such index is in unusable
    state
    Please help!

    This is what you would expect.
    Indexes point to ROWIDs of the rows in a table. When you move the table to another tablespace, you are essentially changing the ROWIDs of rows within the table.
    You can easily fix this by recreating your indexes. Use alter index X rebuild tablespace Y, where Y is the name of the new tablespace.

  • Adding a datafile  to a tablespace?

    hi all,
    what are the prequisites of adding a datafile  to a tablespace
    & how is it performed? pls help?
    regards,
    vivek.

    Hi,
    prequisites of adding a datafile to a tablespace
    1. check for Tablespace Threshold level should be more than 90%(in db02 tcode).
    2. There shd be no backup running while adding datafile to Tablespace.
    3. check for the size of datafile should be added to Tablespace.
    Goto Brtools--->login as sidadm
    BR*Tools main menu
    1 = Instance management
    2 - Space management
    3 - Segment management
    4 - Backup and database copy
    5 - Restore and recovery
    6 - Check and verification
    7 - Database statistics
    8 - Additional functions
    9 - Exit program
    select option 2 - Space management.> Then select  1 = Extend tablespace>  3 ~ Tablespace name (tablespace) ... []-->
    5 - Size of the new file in MB (size) ..... [3500] then continuosly select  c-continue
    With this steps your datafile will be added to Tablespace.
    Thanks,
    Ramakrishna.

  • Move datafiles to new machine

    Hi need to mount the datafiles of a tablespace on a new machine to be able to access a table.
    Can I do this? How?
    I restored the datafiles from a backup into a new folder and wanted to mount them in a new DB to access a table inside.

    Can you be more precise as I'm new in this :)
    I have a database running, and I have this files restored from a tape
    01-01-2009 02:01 1.073.745.920 D_RFAC01.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC02.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC03.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC04.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC05.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC06.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC07.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC08.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC09.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC10.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC11.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC12.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC13.DBF
    01-01-2009 02:01 1.073.745.920 D_RFAC14.DBF
    14 File(s) 15.032.442.880 bytes
    I know that these are the datafiles of a tablespace named PK_RFAC in the old server.
    It's possible to create a tablespace and make it use this datafiles without rewriting them in the new server?

  • Em new Tablespace with OFA names

    Hello,
    I created my database with the DBCA and used OFA for the datafiles names. When creating a new Tablespace with the Enterprise Manager, he wants a file name from me. Is there any way to use OFA with the EM ?
    Ilja

    >
    Any way or solution I can add a new tablespace in EM without adding a datafile by myself ?
    >
    Hi Ilja,
    I noticed the same behavior of EM also. Didn't care much, because I am a command line addicted :-)
    If you create your Database on ASM, though, then EM gives you full support for using OMF conventions together with (default) ASM templates. But the main benefit of ASM is not to lead EM to nice behavior in that particular area, of course.
    Short answer is: Not that I am aware of, sorry.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • About Tablespaces (Urgent)

    Hi Fellows,
    I created a tablespace with a datafile. I droped that tablespace and the datafile. But when I issue a command (select * from dba_tablespaces) the deleted tablespace doesnt show but when I query the view "user_tablespaces" it is always there. What should I do to remove the contents of removed tablespace from "user_tablespaces"
    I will apprecieate any quick response.
    Thanks in advance
    Mustafa
    null

    It may be possible that you still have quota on the dropped tablespace or it was your default tablespace. If you check the USER_TABLESPACES view the STATUS column will show INVALID because the tablespace doesnt exist. The DBA_TABLESPACE or the V$TABLESPACE views show the existing tablespaces in the database. Do the following I hope this might help:
    ALTER USER <USERNAME>
    QUOTA 0 ON <NAME OF DROPPED TABLESPACE>;
    or if it was your default tablespace then:
    ALTER USER <USERNAME>
    DEFAULT TABLESPACE <NAME OF NEW TABLESPACE>;
    null

Maybe you are looking for

  • WIA service not started

    Hi, I tried to Scan from Photoshop and this mesage prompted "No WIA compatible devices were detected. Check that your devices is plugged in...". I found that the Windows Imaging Acquisition is not started in the services.msc list. What's the issue he

  • Without using ID file to idoc scenario

    Hi People                      I am trying one scenario(file to IDoc) that is without using configuration only using IR only is it possible to create? and how Thanks & regards shekar

  • Missing SET parameters on 3750 switch via Telnet?

    Hello. When I telnet into my 3750, and then I ENABLE to get priviledge commands, I want to SET the SPANNING-TREE parameter. I type SET ? and only get one option MEMORY set memory paramters When I type SHOW ?, I do see the parameter to show the SPANNI

  • Trigger should fire on Mouse Selection from List

    Hi, I have two list item type boxes in which first one is populated on when-new-block-instance trigger I want to populate second on the basis of first list item selection which trigger should I use b/c I already tried mouse-click but it fires on just

  • Concurrency in Database operations with JDBC

    Sorry for the somewhat ignorant question Here it is Are interactions with a database by multiple entities on the same db tables managed by the database or are they supposed to be managed by the application? In specific, additions, commits, and any ot