Tablespace allocation

Hi
Please recommend for the following:
1. I have a 30gb data to be transferred to production DB, its a cluster database.
can i create a tablespace with two 15gb datafile having a 30gb tablespace or
three 10gb datafile having 30 gb tablespace.
For a big size data what kind of tablespace creation will you recomend.
TIA
Ravi

I believe in the source DB, it will not be such a large datafile. It is adviseable to keep your datafiles as manageable as possible. Your OS also may not support such size of datafile and if it does, it may not be easy to mange it.
15GB or 10GB single Datafile for me is too big. If the idea if to keep the number of datafiles down for that tablespace, I would suggest a minimum of 6 datafiles. That will give you 5GB each.
BTW - How many datafiles does it have from the source DB?

Similar Messages

  • How to change "tablespace allocation" Metric chng from 7 days to 1 day?

    Hi
    I got to change metric collection time from 7 days (i.e once in every week) to every day. I have not find any tab to modify, please let me know how can I modify.
    Here are the details.
    Metric Name: Tablespace Allocation None
    Sub tabs : Tablespace Allocated Space (MB) Not Set
    Tablespace Used Space (MB) Not Set
    Thanks,
    RK

    Ah, you can't actually change it, at least not through the front end. From the Oracle® Enterprise Manager Oracle Database and Database-Related Metric Reference Manual
    10g Release 2 (10.2)
    Part Number B25986-01:
    This metric calculates the space allocated for each tablespace. It is not intended to generate alerts. Rather it should be used in conjunction with the Allocated Space Used (MB) metric to produce an historical view of the amount of space being used and unused by each tablespace.
    For all target versions, the collection frequency for this metric is every 7 hours.
    The metric is only designed for historical information, looks a typo on the 7 hours, mine is also set to 7 days.

  • Tablespace allocation type system  how oracle determines the extent size

    HI
    It may be silly question but the I have to ask and get some knowdge
    Suppose tablespace allocation_type is system then how oracle determins the inital extent and max extent size?

    Was this tablespace converted to locally managed from an existing tablespace? If so, the existing extents still exist after the conversion. Also depending on the Oracle version and maybe platform the pct_increase parameter is still honored after the conversion which can lead to odd sizes. The current value of this parameter may not be the value that was in effect when extents were allocated.
    Also Oracle enhanced the logic to not leave odd sized extents unused so that if by rights the system should take a 64K extent but there is a 56K extent available (perhaps at the end of a file) it can be used to fill the extent request.
    HTH -- Mark D Powell --

  • Reducing USERS tablespace allocated size.

    Is there a way to reduce the size of the USERS database allocation. It is at 4.2 GBs and I have removed schemas and tables so that it is only using 14% of that space.
    I have a database that I need to import that is using a couple of tablespaces that I need to set up.
    I have tried compacting the database.
    Any help would be greatly appreciated.
    Mickey

    Is there a way to reduce the size of the USERS database allocationYes you can reduce size of every tablespace file, for example:
    ALTER DATABASE DATAFILE 'C:\ORACLE\ORADATA\XE\USERS01.DBF' RESIZE 1024M;
    will resize tablespace on 1GB.
    Note that you must set correct path!
    Cheers!

  • Tablespace allocated size in Oracle SQL developer

    Hello,
    Currently in my oracle 11g database, there are two datafiles under the users tablespace. Today during one application installation, I ran into this error msg:
    ORA-01654: unable to extend index BSANITY.SI_CUID_I7 by 8 in tablespace USERSSo i checked the tablespace status in SQL developer and saw that the USERS tablespace is at 99% used. Datafile #1 is full at max size 32G and #2 is full at max size 4G. So I decided to change dbf #2 maxsize to 32G, I used the following command:
    alter database datafile '<file path here>' autoextend on maxsize 32000M;I checked the dba_data_files view and verified the maxbytes change.
    However, when I check the tablespace status in SQL developer, it is still showing USERS tablespace as 99% used. I'm wondering is there anything else I need to do after altering the datafile maxsize so that the change gets reflected in SQL developer?
    Thank you in advance!
    Edited by: 939040 on Jun 11, 2012 12:05 PM

    939040 wrote:
    Hi,
    Thanks for your reply! i'm actually doing troubleshooting for a user, so I have to ask him to try the installation again to see if the problem persists. However, you said the DDL did not change the size of the file, what could be the reason? is there anything i can do to make sure it changes the size?When all else fails Read The Fine Manual
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/dfiles003.htm#ADMIN11425

  • Tablespace allocation TEMP

    While running a big query I sometimes get this error :ORA01652 unable to extend temp segment by 64 in tablespace TEMP
    Looking at tablespace indicates that it is full, does anyone know how discoverer is handling this tablespace?
    Thx.

    Actually, Discoverer doesn't handle the TEMP tablespace at all. This is a DBA issue. Make sure that your DBA knows that they need to extend the max size of the TEMP tablespace. What is happening is it's trying to autoextend, but is running out of room. Hope this helps.

  • To find allocation type in tablespaces

    Hi,
    I need to find whether my tablespaces allocation type is automatic. Could anyone please assist me with a query?

    Hello,
    You can find all information about your tablespaces with
    select * from dba_tablespaces;Regards,
    Sylvie

  • Temp CLOB tablespace not released - Returning CLOB from SP

    I'm trying to call a stored procedure from a .NET application that returns a CLOB as an OUT parameter. The problem that we are experiencing the tablespace allocation from the temporary clob created in the stored procedure is not released after the stored procedure is finished executing. Here is an extract of the code we use to create the CLOB
    DBMS_LOB.createTemporary(TempCLOB, FALSE, DBMS_LOB.CALL);
    XMLDOM.writeToClob(xmlDocumentNode, TempCLOB); --write the xml results to the clob
    Then the TempCLOB is returned to .NET as an OUT parameter. After the procedure is executed the lob locators in v$temporary_lobs rise by one for each execution of the stored procedure. We've tried using DBMS_LOB.freetemporary(TempCLOB) but the CLOB variable is returned to .NET as null.
    Anyone have any ideas of how to properly dispose of the temp CLOB?

    > Anyone have any ideas of how to properly dispose of the temp CLOB?
    Using DBMS_LOB.FreeTemporary() after the temp CLOB has been used..
    Have the .NET client call this PL/SQL API call when it is done with the CLOB. Remember that what is passed to the .NET client is a pointer to the temp CLOB - not the temp CLOB itself. Therefore if you release the CLOB and then pass the pointer to the client, that pointer refers to nothing.
    The client uses this pointer to access bits and pieces of the CLOB (in temp space on the Oracle Server). When the client is done, it is only good manners on the client's part to inform the server that it is done with that server resource and that it can be released.
    Ditto with ref cursors.

  • Index allocation is missing when creating new index

    Hi,
    By trying to move away from TOAD I have installed SQL Developer (.
    Now, I noticed, that there is no way to define tablespace allocation for index when creating it via SQL Developer. Is this correct?
    Thanks
    OS: Windows XP
    Oracle: 10g R2
    SQL Developer: 1.1.0.23

    You're right. Also editing an existing index, the dialog doesn't display the current values, it just defaults out.
    K.

  • UNLIMITED TABLESPACE in RESOURCE role

    Hi all,<br>
    It's known that UNLIMITED TABLESPACE is included in RESOURCE role.<br>
    My question is: <b>Why I don't see the system privilige UNLIMITED TABLESPACE when I try to display the priviliges granted to that role?</b><br>
    SQL> select PRIVILEGE     
      2  from   ROLE_SYS_PRIVS
      3  where
      4   role='RESOURCE'
      5  /
    PRIVILEGE
    CREATE TYPE
    CREATE TABLE
    CREATE CLUSTER
    CREATE TRIGGER
    CREATE OPERATOR
    CREATE SEQUENCE
    CREATE INDEXTYPE
    CREATE PROCEDURE<br>
    Also, in the Enterprise Manager, it is shown that a user who is granted the RESOURCE role has the UNLIMITED TABLESPACE. However, when I display the priviliges granted to the RESOURCE role, I don't see the privilige granted to the role.<br>
    Oralce DB 10g R2 on Win XP<br><br>
    Thanks in advance

    Why I don't see the system privilige UNLIMITED TABLESPACE
    when I try to display the priviliges granted to that role?Because that privilege cannot be granted to a role, but to a user only, albeit granting RESOURCE role implicitly grants UNLIMITED TABLESPACE, That's why I never grant RESOURCE role directly to a user. See this example.
    SYS@db102 SQL> create role user_role;
    Role created.
    SYS@db102 SQL> grant connect, resource to user_role;
    Grant succeeded.
    SYS@db102 SQL> create user test1 identified by test1;
    User created.
    SYS@db102 SQL> grant user_role to test1;
    Grant succeeded.
    SYS@db102 SQL> conn test1/test1
    Connected.
    TEST1@db102 SQL> select * from session_privs;
    PRIVILEGE
    CREATE SESSION
    CREATE TABLE
    CREATE CLUSTER
    CREATE SEQUENCE
    CREATE PROCEDURE
    CREATE TRIGGER
    CREATE TYPE
    CREATE OPERATOR
    CREATE INDEXTYPE
    9 rows selected.
    TEST1@db102 SQL> conn / as sysdba
    Connected.
    SYS@db102 SQL> create user test2 identified by test2;
    User created.
    SYS@db102 SQL> grant connect,resource to test2;
    Grant succeeded.
    SYS@db102 SQL> conn test2/test2
    Connected.
    TEST2@db102 SQL> select * from session_privs;
    PRIVILEGE
    CREATE SESSION
    UNLIMITED TABLESPACE
    CREATE TABLE
    CREATE CLUSTER
    CREATE SEQUENCE
    CREATE PROCEDURE
    CREATE TRIGGER
    CREATE TYPE
    CREATE OPERATOR
    CREATE INDEXTYPE
    10 rows selected.
    TEST2@db102 SQL>                                                               The following is from Oracle documentation :
    UNLIMITED TABLESPACE
    Use an unlimited amount of any tablespace. This privilege overrides any specific quotas assigned. If you revoke this privilege from a user, then the user's schema objects remain but further tablespace allocation is denied unless authorized by specific tablespace quotas. You cannot grant this system privilege to roles.

  • Shrink tablespace

    Hi,
    I have two tablespace with 30gb size.I have move all database objects from these tablespaces into newly created tablespace with same structure using MOVE TABLESAPCE commands. after that, i have dropped the old tablespaces.
    I have checked the newly tablespace size. the size of the one tablespace is shrinked but other tablespace shows the same size. the same size is same as old tablespace size.i have executed the shrink tablespace using shrink command. The size of the tablespace is reduced.
    Is shrink commands is needed after move tablespace into other tablespace?
    Please give an commands?

    Hi,
    Basically , what happened is the new tablespace created is having free buffers (I mean with out any contention).
    When table objects are moved from old tablespace to new tablespace, the rows are allocated as per there size in one continous extents. Due to that space with in the new tablespace allocated is perfect with out any space contentions. So when you performed shrink the space is reduced.
    But intiallly as per your configuration of old tablespace it was shown.
    - Pavan Kumar N

  • Issue in Complete Refresh of a Materialized View

    Hello,
    We have an MV in the Datawarehouse that does a FAST REFRESH daily. Every Saturday, a COMPLETE REFRESH is done as part of the normal Database Activities. The Database is Oracle 9i. The MV contains a Join between a Dimension and Fact Table of a Datawarehouse and does a FAST REFRESH using the MV logs.
    However, last Sat, the COMPLETE REFRESH has failed. The DBA tried to run the script twice again but it failed on both occasions with an UNDO TABLESPACE error (ORA-30036). The DBA tried to extend the Tablespace; it did not help either.
    - Could this be linked to Tablespace allocations for the MV? Are there any specific steps that can be followed to resolve this?
    - Can the MV be dropped and re-created?
    Would appreciate a response on the same.
    Many Thanks,
    Ketan

    Hi Ketan,
    I guess this is probably because MV complete refresh performs "delete" from the MV and then insert. If the MV is large, it may fail on undo allocation.
    Please take a look at Re: materialized view refresh time!  Plz Help me! you can see the explanation, metalink note and the solution (how to perform truncate instead of delete).
    HTH
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • How to estimate a rollback segment size for a big transaction?

    Oracle 8.1.5. Suppose I have the following statement:
    update table_a set col_a = rownum where col_b = 'codeA'
    The statement affect 900,000 rows. Type of col_a - float(126).

    you can have RBS size same as of your data tablespace
    (eg) you have 10 GB tablespace allocated for data
    then same 10GB more less should be comfortable

  • Data Blocks and the Elapsed Time

    Hi,
    I have created 3 tables with one column only. As an example Table 1 below:
    SQL> create table T8k( x char(2000));
    So 3 tables are created in this way i.e. T8k,T16K and T4K
    T8 = in the default database tablespace of 8k (11g v11.1.0.6.0 - Production) (O.S=Windows).
    T16 = I created in a Tablespace with Blocksize 16k.
    T4K = I created in a Tablespace with Blocksize 4k. In the same Instance.
    Each table has 290,000 rows and all the 3 tables have equal size of 555MB (2006(rowsize with overhead) * 290,000/1024/1024 = 555MB) to test Elapsed Time (set timing on).
    As these 3 tables are created under different block sizes so the allocated no. of data blocks are different as below:
    T8K = 97177 BLOCKS= 00:41:20.21 (Elapsed Time)
    T16K=41639 BLOCKS= 00:44:11.59
    BT4K=293656 BLOCKS=00:37:29.06
    Please note the difference. First table i.e. 8k block size, allocated blocks are 97177 and taking around 41 mins. Third table i.e. BT4K (in a 4k block size tablespace), allocated blocks(293656 ) are almost 3 times bigger, taking around 37 mins to execute the query. I mean the difference is only 4 mins hardly and blocks difference is 3 times.
    In case of any doubt, I've created these tables bigger than the memory used for my db(memory_max_size 408M) i.e. 555 MB that If Blocks are already in cache then reading the blocks and counting the rows will nearly be the same regardless of the block sizes or the number of blocks.
    Need solid suggestions and if possilble, links also which has some serious discussions regarding my issue.
    Bundle of thanks.
    Best Regards,

    Because I was not completely satisfied with the things last time. It doesn't seem so simple to me as people said
    I thought may some guru have a look today, not just to point out that i have created it again.
    And I have compact my question to avoid confusion.

  • Optimizing Speed - Sheet/Table Configurations

    Hi All -- I have a document that gets quite slow to work in, and I'm trying to figure out if I can speed it up through a redesign.
    Here's a pic, with original layout on the left, and that of a possible redesign on the right:
    In the left document, the 'Log' table contains a year's worth of financial entries -- can end up being nearly 1000 rows.
    In the right document, the annual log is broken up into twelve monthly tables.
    In both documents, the 'Cashflow' tables contained in each year's sheet contains formulas that look into the log(s) and sum up the totals for each financial account and category.
    I had it in my head that breaking the annual log up into twelve monthly logs might speed things up, but I'm really not sure, so I wanted to request some feedback from the group.
    If this will not be an improvement, or, if it will be an improvement but not a significant one, I am wondering whether I should consider putting the Cashflows tables in a separate document (in which case I assume the formulas would only be updated when I open that document, rather than each time I make an entry in one of the logs)?  Or, perhaps I should consider populating the Cashflows tables via AppleScript?  (it is suggested here --- https://discussions.apple.com/message/24904471#24904471 -- that "The Summary table is refreshed only when needed. With large tables on multiple sheets, Numbers can be become sluggish with lots of formulas constantly updating."
    Thanks very much.

    i think i didnt make myself clear.
    I am copying this table in development...
    As there are ongoing work... i decided to duplicate a table...
    The real problem i am trying to solve....
    TableA ==> 2billion record with compression query high on.
    When i tried to add 2 column with default value '0', it hit with insufficient undo tablespace issue....
    Of course... the easiest way is to have more tablespace allocated to us... but DBA not willing to set tablespace to unlimited nor increase the size.
    The only way to try to solve this problem is to add the 2 column without the default value.
    And for the values , need to loop parition by partition....
    anyway... i figured out the fastest way...
    1)CTAS with all the parition / compression query high / parallel on..... ==>Data duplicated with parition..
    2)Rebuild unique index
    3)Create PK using index

Maybe you are looking for