DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: locally managed tablespaces-small tables

  1. #1
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316
    I have a schema that has 1800 small tables 40960 bytes.

    I had created the tablespace for this schema as 'extent management local autoallocate', since each extent has to be 1M, a lot of space is being wasted.

    Is my only choice DICTIONARY managed ?

    I know I can make it local uniform, but then there are some other tables in the schema that are sort of large and will have 200 extents - what should I do ?

  2. #2
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Originally posted by khussain
    I had created the tablespace for this schema as 'extent management local autoallocate', since each extent has to be 1M, a lot of space is being wasted.
    What do you mean by wasted?? this is how AUTOALLOCATE parameter works:

    AUTOALLOCATE keyword causes Oracle to take control of extent allocation. Oracle will use extent sizes of 64KB, 1MB, 8MB, and 64MB to manage space in this tablespace.

    If you create a new table, the first extent will be 64KB in size. Subsequent extents will also be 64KB, until the table reaches 1MB in size. At that point the size of subsequent extents for the table will be increased to 1MB. When the table reaches 64MB in size, the extent size will be increased again to 8MB. Finally, if the table reaches a size of 1GB, the extent size will be increased one last time, to 64MB.
    Reddy,Sam

  3. #3
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316
    What I mean by waste is that, the schema that I am importing into the locally management tablespace has the following size:

    In DICTIONARY managed: 547 MB
    In LOCALLY managed: 2000MB +

    Again, this is because this schema has 1800 tables of 40960 bytes...

    So, in my mind this is too much wastage of disk space...

    I am testing with UNIFORM size of 256K, it seems to be much better.

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Of course there will be wasted space. You are specifying uniform extents of 256K but are only using 40K. Either turn on autoallocate which will allocate 64K extents for most of your tables or use smaller UNIFORM size, say 64K. So what if your tables have 200 extents?
    Jeff Hunter

  5. #5
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316
    I don't really worry about 200 extents either; as long as it is not because of my configuration.

    I cannot make it auto allocate, because our block size is 16K, and that triggers Oracle to make the extent size 1M as default in an auto allocate tablespace.
    That is why I am using UNIFORM...and it seems like size 256K will work fine for this tablespace.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width