DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Sizing datafiles

  1. #1
    Join Date
    Jan 2000
    Location
    Manama, Bahrain
    Posts
    50

    Sizing datafiles

    I'm creating a database with block size of 16k and datafiles of 2GB each.
    I read somewhere that when creating LMT with the 'uniform' allocation option, an additional 64k must be added to the datafile for block header & bitmap information.
    In my case how much space should be reserved for the header info and how should the extents be sized?

  2. #2
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Metalink says..

    When creating tablespaces with a uniform extent size, it is important to understand that Oracle tries to reserve at least 64 Kbytes per datafile for the metadata blocks, which includes both file space header as well as bitmap header.
    Sanjay G.
    Oracle Certified Professional 8i, 9i.

    "The degree of normality in a database is inversely proportional to that of its DBA"

  3. #3
    Join Date
    Sep 2003
    Location
    over the hill and through the woods
    Posts
    995
    Now here's a good question..
    When would it be appropriate to use automatic allocation instead of uniform?
    Oracle it's not just a database it's a lifestyle!
    --------------
    BTW....You need to get a girlfriend who's last name isn't .jpg

  4. #4
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Originally posted by OracleDoc
    Now here's a good question..
    When would it be appropriate to use automatic allocation instead of uniform?
    When you don't know how big each segment is going to be, or when you're dealing with a small amount of data (say less than 2Gb) and it's not worth worrying about.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  5. #5
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253

    Re: Sizing datafiles

    Originally posted by lynn814
    I'm creating a database with block size of 16k and datafiles of 2GB each.
    I read somewhere that when creating LMT with the 'uniform' allocation option, an additional 64k must be added to the datafile for block header & bitmap information.
    In my case how much space should be reserved for the header info and how should the extents be sized?
    I don't think that this ios going to be a problem for you. People trip up over this when they have very large extent sizes (say > 1% of datafile size) and they find a small amount of unusable space at the end of the data file. for example, with a 64Mb uniform extent size, and a datafile size that is an integer multiple of 64Mb, you would have nearly 64Mb un available because it is 64kb too small to get a whole extent allocated.

    Not so in your case ... because your extent size is equal-to-or-less-then 64kb, there will be no wasted space.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  6. #6
    Join Date
    Jan 2000
    Location
    Manama, Bahrain
    Posts
    50
    Well the table requires the extent sizing to be 160MB. Won't that result in a lot of unused space?

  7. #7
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Make the datfile size an integer multiple of 160Mb, and add 64kb. How big is the complete table?
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  8. #8
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434

    Re: Re: Sizing datafiles

    Originally posted by slimdave
    Not so in your case ... because your extent size is equal-to-or-less-then 64kb, there will be no wasted space.
    Dave :

    I am not sure if I have missed any part of the original poster's post.. But i dont see him mentioning Extent Size .. but i see ur remark "because your extent size is equal-to-or-less-then 64kb"
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  9. #9
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253

    Re: Re: Re: Sizing datafiles

    Originally posted by abhaysk
    Dave :

    I am not sure if I have missed any part of the original poster's post.. But i dont see him mentioning Extent Size .. but i see ur remark "because your extent size is equal-to-or-less-then 64kb"
    Yes, my mistake ... it was one of those "been awake for 5 minutes" answers.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  10. #10
    Join Date
    Jan 2000
    Location
    Manama, Bahrain
    Posts
    50

    lynn814

    The table will grow to 50 -60 GB

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