Clubbing of datafiles in a single tablespace

hi,
i have 4 datafiles each of 2gb in size in a single tablespace.. i would like to know is it possible to club these four datafiles in to a single datafile..and is there any limitation for the maximumsize for the datafile in 32bit version..
thanks in advance
nsr

Hi
To put all your data into one data file you will have to create a new tablespace with one 8 GB data file and move all your data to the new tablespace.
The maximum size of your data files depends on the block size of the data file and the type of tablespace you create. In 10g you can create a big file tablespace with 1 data file with no size limit. For a normal small file tablespace with an 8K block size the limit is 32 GB per file. For a 16K tablespace, the limit is 64 GB per file. The amount of files in your tablespace is only limited by the MAXFILES value that is specified when you create the database and that is stored in your control files. To change the value of MAXFILES you have to recreate your control files.

Similar Messages

  • No of Datafiles needed in single tablespace ?

    hi,
    i have one tablespace of size 120gb with 23 datafiles in which first 19 datafiles are size with 2gb each. and rest data files are size with around 28 gb.
    Recently i heard that by keeping more no of datafiles will affect the performance of Database . so my question is what are the advantage and disadvantage of keeping more no of
    datafiles in single tablespace and how can i merge small data files of 2 gb ?
    Regards,
    Mithun Mathew
    Oracle DBA

    After going through couple of links provied by google i made a note on this issue :
    Optimizer does not consider number of data files when selecting execution path. Also as a general rule, you do not deal with I/O performance at tablespace level. You cannot stripe the contents of a tablespace across multiple datafiles. This need to be dealt with at a lower level (like inside Oracle ASM).
    Advantages: (More Datafiles)
    1.By using more than one datafile per tablespace, you can spread data over many different disks to distribute the I/O load and improve performance.
    2.Easy and faster restoration and recovery. The more datafiles for a given amount of data, some recovery scenarios will be faster due to having to restore/recover a smaller file.
    3.Less chances of encountering 2gb
    issue.(http://www.fors.com/velpuri2/Oracle%20block%20structure/2gb)
    4.Having multiple datafiles per tablespace facilitates the adoption of a uniform datafile size policy, which in turn facilitates disk load rebalancing.
    5.For file system based databases, having multiple datafiles may reduce the risk of contention for the operating system's datafile read/write locks (inode locks).
    6.If any corruption happens in a datafile, then there is less data loss chances in compare to one or less datafile.
    Disadvantages: (More Datafiles)
    1.We can not have BigFile Tablespace's advantages.
    2.Tough managebility and portability.
    3.Putting tablespace offline will offline all the datafiles, which will stop other applications/of its parts unnecessarily.
    4.More datafiles for DBWR for writting and more files for RMAN to backup.
    5.Many datafiles are opens when we online tablespace; means many file handlers for OS at kernel side.
    6.We have to carefull to create rollback segments because, never create rollback segments using multiple datafiles within a single tablespace.
    7.The more datafiles, the more time required to do checkpoints and such, because every file has to have its header updated.
    8.More entries in data dictionary, control file entries more file structs in SGA vs less or 1.
    Regards
    Girish Sharma

  • Is There a Way to Run a Redo log for a Single Tablespace?

    I'm still fairly new to Oracle. I've been reading up on the architecture and I am getting the hang of it. Actually, I have 2 questions.
    1) My first question is..."Is there a way to run the redo log file...but to specify something so that it only applies to a single tablespace and it's related files?"
    So, in a situation where, for some reason, only a single dbf file has become corrupted, I only have to worry about replaying the log for those transactions that affect the tablespace associated with that file.
    2) Also, I would like to know if there is a query I can run from iSQLPlus that would allow me to view the datafiles that are associated with a tablespace.
    Thanks

    1) My first question is..."Is there a way to run the
    redo log file...but to specify something so that it
    only applies to a single tablespace and it's related
    files?"
    No You can't specify a redolog file to record the transaction entries for a particular tablespace.
    In cas if a file gets corrupted.you need to apply all the archivelogs since the last backup plus the redologs to bring back the DB to consistent state.
    >
    2) Also, I would like to know if there is a query I
    can run from iSQLPlus that would allow me to view the
    datafiles that are associated with a tablespace.Select file_name,tablespace_name from dba_data_files will give you the
    The above will give you the number of datafiles that a tablespace is made of.
    In your case you have created the tablespace iwth one datafile.
    Message was edited by:
    Maran.E

  • How to set threshold value for single tablespace in grid control 11g

    Hi,
    I want to set the threshold value for a single tablespace in grid control 11g,
    please provide me a navigation path.

    Sandy wrote:
    Can you please provide me the full navigation path?go to Targets --> Databases
    Select the Database you like to set this alert for
    Select link Metrics and Policy Settings

  • Single tablespace or full database in 10g

    Hi,
    Which is the best regarding performance...what ever it may be...when doing hot backup...which is the best in all ways..
    (a) putting single tablespace in backup mode and copying
    or
    (b) Putting total database in Backup mode and copying...
    can anybody sched some light on this..in all ways..

    The best is to stop using paleolithic backup techniques and use RMAN with Block Change Tracking.

  • Problem after rename datafile belongs to SYSTEM tablespace

    Hi
    I've renamed one file belongs to SYSTEM tablespace.
    Then I brought database online and dropped the old file, now I can open database,
    but I can't run backup.
    I delete previous one so I can't restore that file from backup, I have the file because I clonned db,
    but when I restore file and run recover from RMAN database got recovered.
    After that I still can't run backup.
    Do you have idea what to do???
    SYS@orcl >select * from v$recover_file;
    FILE# ONLINE ONLINE_
    ERROR CHANGE#
    TIME
    14 OFFLINE OFFLINE
    OFFLINE NORMAL 0

    RMAN> report schema;
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace RB segs Datafile Name
    1 500 SYSTEM YES /u01/app/oracle/oradata/ORCL/datafile/o1_mf_system_48fprop3_.dbf
    2 245 UNDOTBS1 YES /u01/app/oracle/oradata/ORCL/datafile/o1_mf_undotbs1_48fprovo_.dbf
    3 260 SYSAUX NO /u01/app/oracle/oradata/ORCL/datafile/o1_mf_sysaux_48fpropg_.dbf
    4 40 USERS NO /u01/app/oracle/oradata/ORCL/datafile/o1_mf_users_48fprowb_.dbf
    5 100 EXAMPLE NO /u01/app/oracle/oradata/ORCL/datafile/o1_mf_example_48fpw04c_.dbf
    6 100 DBA1 NO /u01/app/oracle/oradata/ORCL/datafile/dba1.dbf
    7 5 TEST NO /u01/app/oracle/oradata/ORCL/datafile/test_reorg0
    9 10 UNDO1 YES /u01/app/oracle/oradata/ORCL/datafile/undo01.dbf
    10 10 VAL NO /u01/app/oracle/oradata/ORCL/datafile/val.dbf
    11 100 INVENTORY NO /u01/app/oracle/oradata/ORCL/datafile/o1_mf_inventor_4tts3q24_.dbf
    14 260 SYSAUX NO /u01/app/oracle/oradata/o2_mf_sysaux_48fpropg_.dbf
    15 500 SYSTEM YES /u01/app/oracle/oradata/ORCL/datafile/o2_mf_system_48fprop3_.dbf
    17 100 RCVCAT NO /u01/app/oracle/oradata/ORCL/datafile/rcvcat01.dbf
    List of Temporary Files
    =======================
    File Size(MB) Tablespace Maxsize(MB) Tempfile Name
    1 61 TEMP 32767 /u01/app/oracle/oradata/ORCL/datafile/o1_mf_temp_48fpvnpt_.tmp

  • How to add a datafile in the temp tablespace

    how i can add a datafile in the temp tablespace.
    becuase i am getting tyhe following error
    SQL> select aa.question_desc,a.answer_desc from answer a ,
    2 (select * from question_t where rownum <=100 order by dbms_random.random) aa
    3 where a.question_id = aa.question_id
    4 /
    select aa.question_desc,a.answer_desc from answer a ,
    ERROR at line 1:
    ORA-01652: unable to extend temp segment by 256 in tablespace TEMP

    select * from question_t where rownum <=100 order by dbms_random.random<br>After all the discussion about random select a random generated number... why don't you go for one of the suggestion like :<br>
    select *
    from (select * from question_t order by dbms_random.random)
    where rownum <=100 The result is different.<br>
    In your query, you take 100 rows and order randomly, in the second query, order randomly, and take 100 first rows...<br>
    As you can see above, with your last query, output row are always same, but in different order :<br>
    SCOTT@demo102> select ename from emp where rownum<=5 order by dbms_random.random;
    ENAME
    SMITH
    ALLEN
    MARTIN
    JONES
    WARD
    SCOTT@demo102> /
    ENAME
    MARTIN
    JONES
    SMITH
    ALLEN
    WARD
    SCOTT@demo102> /
    ENAME
    JONES
    ALLEN
    MARTIN
    SMITH
    WARD
    SCOTT@demo102> /
    ENAME
    ALLEN
    SMITH
    WARD
    MARTIN
    JONES
    SCOTT@demo102> <br>
    Anyway, I don't restart this discussion here.<br>
    For your actual problem, Pierre has already give you a suggestion.<br>
    <br>
    Nicolas.

  • Drop a partition with a corrupt datafile in the associated tablespace

    Hello,
    I desperately need to drop a partition. However, I am unable to do so as the datafile in the associated tablespace for the partition is corrupt. When I attempt to drop the partition, I receive the following error:
    ORA-00376: file 16 cannot be read at this time.
    ORA-01110: data file 16: '/data3/oradata/cdn/data/tran_part_20051115.dbf'
    Is there any way to get rid of the corrupted datafile so that I can successfully drop the partition? Maintaining the data is not a concern at this point. The priority is to solve this issue, so data loss is not a concern for me.
    Any assistance would be greatly appreciated!
    Thanks,
    Scott

    Does the file '/data3/oradata/cdn/data/tran_part_20051115.dbf' exist on the disk?
    What does; select distinct status from V$recover_file indicate?
    Thanks
    Chandra Pabba

  • Having one single tablespace versus multiple tablespace?

    My database version is
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    My os version is
    Linux damdat01 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:00:49 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    My database is OLP system.
    My question is what are the advantages and disadvantages having one single tablespace versus multiple tablespace?
    Easy to maintain when you have single tablespace. but hard to track the IO issues.
    Any other input from any one? Please let me know.

    Billy  Verreynne  wrote:
    EdStevens wrote:
    Does the term "keeping all your eggs in one basket" mean anything ....Well, in the majority of cases, even when using multiple tablespaces they will be on the same storage array or same file system. So the "+all eggs in one basket+" goes a lot a deeper down the storage layer than just the top part where you deal with logical tablespace storage containers.
    Absolutely. Except for the bazillion microscopic solid-state switches and a layer of rust on a spinning platter, everything else is just layers of abstraction. One's thinking and frame of reference depends on what layer of abstraction one is dealing with.
    The major problem with multiple tablespace for a single application And here is where there was some 'fuzz' in the OPs question. I don't recall him specifying one TS per application. Maybe he assumed that, but I read it as one (user) TS per database.
    a) deciding the space allocation of each tablespace
    b) managing what is created in which tablespace
    This comes down do an issue of micro-managing space versus simply chucking everything into a single container and let god ASM/Oracle/LUN/driver/whatever sort them out.
    Issues like transportable tablespaces... separating your logical data into different containers... and the like? That is not really sufficient justification to me for having to micro-manage space for a 101 tablespaces. This simply creates a huge workload on the space management part of the database - that is complex and difficult to deal with. Free space from an underutilised (incorrectly sized) tabelspace cannot simply be moved and reallocated to a tablespace stressed for more space. Everything but...
    Which is why I prefer having fewer tablespaces as this means not having to micro-manage space and continually having to wave a threatening lead pipe around to make sure that applications and developers play rigidly within the large set of strict rules of how these many tablespaces are to be used.Agreed. One can go way overboard, and a lot of this discussion hinges on the OP's intent, as I mentioned above -- one TS per ... what? My default position is one TS per application schema. Normal human users all default to one USERS ts, but don't have any quota because they don't have any reason to create objects.

  • Move single tablespace

    Running Oracle 10gR2 on RHEL 4
    Just wondering if someone can give me some insight on how to move a single tablespace from PROD to TEST. We use Noetix and would like to move the Noetix tablespace from our production (PROD) environment to our test (TEST) environment. Would this be best achieved with RMAN? Datapump? Typically I refresh the entire database, but I've never moved a single tablespace from one environment to the other so this is all new to me.
    Thanks!
    Edited by: user496996 on Apr 18, 2011 9:25 AM

    You can use transporting tablespace feature
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#i1007169

  • Use of backing up a single tablespace or datafile

    Hello,
    I am reading the RMAN manual and I'm quite familiar with backup up a tablespace or datafile, but I can find very few uses for that. Backup up a tablespace is useful for TPITR, but since that needs another instance its of very little use in most production environments. I think you cannot restore an old version of tablespace in a normal database, unless the tablespace has long been made read-only, in which case RMAN's optimizations will do the trick.
    Even less use I can find for datafile backup. I have absolutely no idea what you can do with a single datafile.
    Can you please clarify me on the uses of these RMAN features?
    Thank you.

    Dear Albi!
    Think of the following scenario:
    You have a very large (let's say 1 Terabyte) production database that is split into n tablespaces. This database is in archivelog mode and a full backup of the hole database would take more than 10 hours.
    scenario end.
    In such a scenario I think you will not take a full database backup very often. Therfore you can backup portions (tablespaces and datafiles) of your database. This will take less time then a hole DBbackup.
    If you have to restore your DB then RMAN will take all the files it needs from all your backup. RMAN uses always the most actual version of your datafiles. After the restore RMAN will take the archivelogs to recover all datafiles to the most actual point in time. And that's the point why partial backups of your db are not only usefull for TSPITR.
    I hope I could make clear what the operative point is with partial backups.
    Yours sincerely
    Florian W.

  • One single tablespace for the entire db of 3.3T

    One of the db i am supporting has about 3.3 Terabytes capacity and the application is using only 1 huge tablespace with one big file.
    the system is linux 4 , 32 bit.
    oracle version is 10.2.0.4
    Is there a limit of space for a tablespace when you consider insert/delete/query performance?
    Thanks,
    Chau

    It's really depends on how your storage been setup. Besides the lack of parallel backup ability like other user pointed out. There shouldn't be any other major performance impact solely because of big tablespace. Or bigfile tablespace alone doesn't cause performance problem. It's only a problem if you setup is wrong. For example setup this file on system that doesn't support striping.
    Since you have 3.3 TB size tablespace with one single datafile, that means you must have a big file tablespace which only support one datafile.
    Performance of database opens, checkpoints, and DBWR
    processes should improve if data is stored in bigfile
    tablespaces instead of traditional tablespaces.
    However, increasing the datafile size might increase
    time to restore a corrupted file or create a new
    datafile.That is in the event of media crash, that could be only affect one or two small files in traditional setup, but in your case, you need to restore whole big file.
    Some more information about big file tablespace here,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#ADMIN01102
    and here
    Considerations with Bigfile Tablespaces
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#sthref489

  • ME59N - club two PO in to single PO

    Hi,
    We are using ME59N for PO creation.
    currently the system create two PO for single PR. based on the condidtion EBAN-KONNR
    For Item 20 EABN-KONNR values empty
    For Item 10 and 30  EABN-KONNR have some value.
    based on the above condition system created two PO.
    One PO for Item 20
    Othert PO for Item 10 and 30.
    My requirement I want create single PR for above condition
    I have debugged the program the Txn--> ME59N - Automatic PO creatrion.
    I came to know that New po is initiated in the below part also PO is getting created based on function module  MM_GROUP_REQUISITIONS
    How can i control/ restrict the new Po creation.
    thanks,
    vimal Alexander

    Hi Mallinath,
    Thanks for your reply.
    Just i want club both condition (SA no available and SA no not available) and make to single PO.
    How can i achieve this ?
    Any BAdi or Exit available ?
    Thanks,
    Vimal Alexander

  • Restore a single tablespace from full backup erroring out

    Hi,
    I have backed up the full database using RMAN:
    $ rman catalog rman/rman@catdb target /
    RMAN> run {
    backup as compressed backupset
    format '<Full Path>/databkp/DATA_%d_%s_%p'
    database
    plus archivelog format '<Full Path>/arcbkp/ARC_%d_%s_%p';
    Backup was successful.
    Now dropped the tablespaces:
    SQL> alter tablespace rtestusr offline;
    SQL> drop tablespace RTESTUSR including contents and datafiles;
    Now trying to restore the tablespace RTESTUSR
    $ rman catalog rman/rman@catdb target /
    RMAN> restore tablespace rtestusr;
    Starting restore at 25-FEB-11
    starting full resync of recovery catalog
    full resync complete
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/25/2011 14:28:47
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
    RMAN-06019: could not translate tablespace name "RTESTUSR"
    Also performed the Tablespace Point-in-time recovery:
    RMAN> run {
    2> set until time "to_date('2011-02-25:12:44:00','yyyy-mm-dd:hh24:mi:ss')";
    3> restore tablespace RTESTUSR;
    4> }
    executing command: SET until clause
    Starting restore at 25-FEB-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=46 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=45 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=44 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00006 to /dev2db/rmantst/db/oradata/rtest/rtestusr01.dbf
    channel ORA_DISK_1: reading from backup piece /dev2db/rmantst/archrtst/databkp/DATA_RTEST_76_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/dev2db/rmantst/archrtst/databkp/DATA_RTEST_76_1 tag=TAG20110225T114341
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/25/2011 15:07:42
    ORA-19654: must use backup control file to switch file incarnations
    Please help.
    Thanks in advance.
    Regards,
    Bikram

    I think you misunderstand some concepts.
    1) drop tablespace RTESTUSR including contents and datafiles;
    is a valid command, it removes the named tablespace from the database. There's nothing wrong with the database (although it may be a logical (human) error). Restore/recovery is used to repair media failures. RMAN is right: 'RMAN-06019: could not translate tablespace name "RTESTUSR"', since there's no such tablespace in the actual database, the restore/recover process fails.
    2) Unfortunately you hide your database version. Up to 10gR2 tablespace point-in-time recovery cannot be used to recover dropped tablespaces, in 11gR1 and higher it's possible.
    And - TSPITR - requires a little bit more than 'set until ...'. Refer to the doumentation for your unknown database version.
    Werner

  • Drop datafile from a offline tablespace

    We are running oracle 9.2 on windows.
    Out of the 3 datafiles in a non-system tablespace A, one datafile A-DF1 was accidently droped from the file system by our DBA.
    The other two datafiles were brought online by using the ALTER DATABASE RECOVER command by bringning the database in mount phase.
    Now we want to remove that datafile A-DF1 from the tablespace and bring that tablespace online.
    The database is not in archive mode and no cold backup was present.
    The solution that we want to try is:
    1-drop the tablespace A without dropping the datafiles
    2-create a new tablespace and reuse those datafiles
    3-assign this new tablespace to the affected user
    Would this work? Do you have any other safe solution for this problem?
    thanks
    Imran

    Hi..
    Your solution is a wrong solution.
    1. I guess, that the tablespace A won't be a empty tablespace.As, the objects are present in the tablespace you can't drop the tablespace without dropping its contents.You will have to use *DROP TABLESPACE <tbs_name> INCLUDING CONTENTS; -- This will drop all the contents.
    2. Do, you have a export backup, or any kind of backup.As the database is in no archivelog mode, you won't be able to do complete recovery.
    3. Take the datafile A-DF1 OFFLINE and keep the tablespace online. -- alter database datafile 'datafile_name' offline;
    If you don't have any kind of backup, the data is LOST.
    Anand

Maybe you are looking for