How to see the number of extents
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: How to see the number of extents

  1. #1
    Join Date
    Jan 2001
    Posts
    642
    Hi,

    For an index, I have the max extents set to 100. I want to know what is the current number of extents already allocated. Which table gives me this info
    Badrinath

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    select extents from user_segments where segment_name='YOUR_INDEX_NAME'

  3. #3
    Join Date
    Apr 2000
    Location
    Edison, NJ
    Posts
    759
    select extents, max_extents from dba_segments where segment_name='...'

  4. #4
    Join Date
    Jan 2001
    Posts
    642
    And,how do I know, What is the blocks used in the current extent.
    So I can have an Idea by when I may have to increase the datafile space.
    Badrinath

  5. #5
    Join Date
    Mar 2001
    Posts
    41
    select segment_name, bytes, blocks from dba_extents where
    segment_name='yourSEGMENT'

    In case your segment is a partition, PARTITION_NAME column exist in this views. (8i only)


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