Can coalesce increase index size ?

Hi,
I'm trying to understand how space usage changes after coalesce of an index.
I'm using Tom Kyte show_space procedure .
DB is 9.2.0.8 .
before Coalesce:
Unformatted Blocks .....................               0
FS1 Blocks (0-25)  .....................               0
FS2 Blocks (25-50) .....................           1,811
FS3 Blocks (50-75) .....................               0
FS4 Blocks (75-100).....................               0
Full Blocks        .....................           2,969
Total Blocks............................           4,864
Total Bytes.............................      39,845,888
Total MBytes............................              38
Unused Blocks...........................               0
Unused Bytes............................               0
Last Used Ext FileId....................             149
Last Used Ext BlockId...................       2,979,081
Last Used Block.........................             128
After Coalesce
Unformatted Blocks .....................               0
FS1 Blocks (0-25)  .....................               0
FS2 Blocks (25-50) .....................           4,142
FS3 Blocks (50-75) .....................               0
FS4 Blocks (75-100).....................               0
Full Blocks        .....................             638
Total Blocks............................           4,864
Total Bytes.............................      39,845,888
Total MBytes............................              38
Unused Blocks...........................               0
Unused Bytes............................               0
Last Used Ext FileId....................             149
Last Used Ext BlockId...................       2,979,081
Last Used Block.........................             128Look like only two values changed:
before:
FS2 Blocks (25-50) ..................... 1,811
after:
FS2 Blocks (25-50) ..................... 4,142
before
Full Blocks ..................... 2,969
after:
Full Blocks ..................... 638
So we got more blocks 25-50% free space
and less full occupied blocks .
And thats strange, how we can have less full blocks after coalescing ?
Second question is there any reason my index can grow up after coalescing , when would this happen ?
Please explain :).
Regards
GregG

>
SQL> select * from index_stats;
HEIGHT     BLOCKS NAME                           PARTITION_NAME                    LF_ROWS    LF_BLKS LF_ROWS_LEN LF_BLK_LEN    BR_ROWS    BR_BLKS BR_ROWS_LEN BR_BLK_LEN DEL_LF_ROWS DEL_LF_ROWS_LEN DISTINCT_KEYS MOST_REPEATED_KEY BTREE_SPACE USED_SPACE   PCT_USED ROWS_PER_KEY BLKS_GETS_PER_ACCESS   PRE_ROWS PRE_ROWS_LEN OPT_CMPR_COUNT OPT_CMPR_PCTSAVE
3       4864 INDEX_NAME_1                                                    598311       4730     8622004       7348       4729         16       71606       8028      309286         4374735           593             93530    34884488    8693610         25   1008.95616           507.978078          0            0              1               23
and after coalesce
SQL> select * from index_stats;
HEIGHT     BLOCKS NAME                           PARTITION_NAME                    LF_ROWS    LF_BLKS LF_ROWS_LEN LF_BLK_LEN    BR_ROWS    BR_BLKS BR_ROWS_LEN BR_BLK_LEN DEL_LF_ROWS DEL_LF_ROWS_LEN DISTINCT_KEYS MOST_REPEATED_KEY BTREE_SPACE USED_SPACE   PCT_USED ROWS_PER_KEY BLKS_GETS_PER_ACCESS   PRE_ROWS PRE_ROWS_LEN OPT_CMPR_COUNT OPT_CMPR_PCTSAVE
3       4864 INDEX_NAME_1                                                     289025        708     4247269       7996        707         16       10965       8028           0               0           347             67594     5789616    4258234         74   832.925072           419.962536          0            0              1               24It's a little hard to tell exactly what's happened based on summary statistics - but there are a couple of extra guesses we can make from these stats.
The coalesce command won't try to coalesce blocks with active transactions (that't not a guess, by the way) - but when you hit a block which requires a lot of delayed block cleanout the recursive transaction for cleanout may make coalesce skip the block. You started with a lot of deleted leaf rows in the leaf blocks - so a lot of your "full" blocks may have been subject to cleanout, perhaps leaving them 25% free and bypassing a coalesce. You may find that if you issue the coalesce command a second time, right after the first, that Oracle manages to coalesce a lot more block.
Apart from the 65,000 "most repeated key" you have an average of about 600 rows per key (that's indicated by doubling the blks_gets_per_access, after allowing for the single most repeated). Very repetitive keys can easily lead to space utilisation dropping to "below average" for b-trees, so 50% utilisation wouldn't be a surprise. Add to this the very repetitive key which could be a hot spot for concurrent inserts and the "ITL explosion" issue (see http://jonathanlewis.wordpress.com/category/oracle/indexing/index-explosion/ ) that halves the storage efficiency again. It's possible, though, that some of your performance overhead is simply the problem of fairly large range scans.
Regards
Jonathan Lewis

Similar Messages

  • How can i increase the size of MBUF in SAP

    how can i increase the size of MBUF. anyone plz help me

    HI Zahid,
    What do you mean increase size of MBUF
    Is this a table ?
    if yes then you need to extend the tablesapce of table MBUF, no the table.
    using brtools you can extend the tablespace.
    Regards,
    Fendi

  • The fonts are too small on my imac desktop and web browsers.  Where can I increase the size?

    The fonts are too small on my imac desktop and web browsers.  Where can I increase the size?

    babowa wrote:
    The only way to increase the fonts on your desktop would be system wide by going down a notch on the resolution. Some people won't do it because it increases the pixel size so the fonts won't be quite as sharp; I decided I'd rather have that than having to squint continuously. Go to System Preferences > Displays > Scaled > this will give you all resolution options available. No harm in trying - just check the default (top) choice again if you don't like any of the others.
    It's a b*&^ch getting old .  I still use the screen zoom instead of decreasing resolution, but maybe soon ...

  • How can I increase the size of letters beyond that obtained by tapping?

    How can I increase the size of the letters beyond that obtained by tapping (but retaining reflow)?

    You may perform pinch to zoom operation , also known as two fingers zoom.  You may not see the animation in reflow as in to her modes , but the size of the letters should increase.
    -vaibhav

  • Where can I Increase the size limit for attachments

    Good Morning:
    I am working in OCS R2 (9.0.4). Where can I Increase the size limit for attachments in the messages sent. Also can I set this parameters to user level or the change affect every user in the system?
    Thanks a lot.

    babowa wrote:
    The only way to increase the fonts on your desktop would be system wide by going down a notch on the resolution. Some people won't do it because it increases the pixel size so the fonts won't be quite as sharp; I decided I'd rather have that than having to squint continuously. Go to System Preferences > Displays > Scaled > this will give you all resolution options available. No harm in trying - just check the default (top) choice again if you don't like any of the others.
    It's a b*&^ch getting old .  I still use the screen zoom instead of decreasing resolution, but maybe soon ...

  • Can I increase the size of a Long column to 4000 characters?

    Can I increase the size of a Long column to 4000 characters?

    maximum sizeof 4 GB -1 byte RTFM there: Datatypes(click)
    extracted: LONG: Character data of variable length up to 2 gigabytes, or 231 -1 bytes.
    Not 4Gb. Or also, read Paul M post.
    Regards,
    Yoann.

  • How can I increase the size of UI toolbars across Adobe Creative suite?

    How can I increase the size of UI toolbars across Adobe Creative suite especially indesign, photoshop, illustrator on a new Apple retina display 2560 x 1140 with out changing/scaleing my screen resolution down?

    While some applications let you change the font size of the UI (notably Photoshop in Interface Preferences), others do not yet (like InDesign).
    You'll need to make your request using this form for it to be seen by the product manager(s):
    Adobe - Feature Request/Bug Report Form
    Make a good case because there are hundreds (thousands?) of things people request InDesign to do.

  • HT2895 Can I increase the size of my "Genius" selections?

    Can I increase the size of my "Genius" selections?

    Hi,
    CampTune http://www.paragon-software.com/home/camptune/ maybe able to do this since it has its own Boot-CD from which you boot your Mac for the resizing procedure.
    I haven't tried it myself so I can't guarantee this.
    Make sure to have/make a backup of your valuable data before 'fumbling' with partitions.
    Windows XP itself has no means to resize on a Mac.
    Regards
    Stefan

  • Can you increase the size of the photo that shows when you receive a call from a contact

    Can you increase the size of the photo that shows when you receive a call from a contact ?

    It used to be if you added the contacts photo on the iOS device they would have a large picture and if you added it from Address Book on OS X they would have a smaller thumbnail.  However, since iOS5, all I've been able to get is the larger photo.  Try adding the picture directly in the contacts app on your device.  That should make it larger.

  • HT5361 I,can,not,increase,the,size,of,the,font,when,reading,e-mails.,Have,tried,differe nt,settings,in,the,,e-mail,preferences,area.

    I,can,not,increase,the,size,of,the,font,when,reading,e-mails.,Have,tried,differe nt,settings,in,the,,e-mail,preferences,area.

    Step by step, how did you arrive at seeing this agreement?

  • How can i increase a size of java plugin window in developer10g form?

    Dear Friends,
    I made a master detail form in developer10g form. In the form i m unable to see all the fields in java plugin window bcoz its small.
    how can i increase the size of java plugin window?
    Thanks in advance.
    Regards,
    Kamran

    Hi Kamran
    Just modify width and height values to 100% in the forms\server\formsweb.cfg file:
    # Forms applet parameter
    width=100%
    # Forms applet parameter
    height=100%
    After this restart OC4J instance.
    Hope this helps
    Regards
    Carlos

  • Can you increase the size of your contact photos on the BB Style?

    When a call comes in, is there a way to increase the size of the photo to actually be able see who it is whose calling?  I mean when they say "thumbnail" photo, they aren't kidding!

    From within the phone, no you can't increase the size of the display photo.
    There are apps available in AppWorld which may be able to accomplish this but that's the only way you'll be able to adjust the size.
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How can I increase the size of the bootcamp partition without having to delete or re-install windows? using a macbook pro (15-inch) 10.9.4.

    I'm using a macbook pro (late 2013 with mavericks-10.9.4 ). I installed windows using bootcamp but didn't estimate the storage I required correctly. So now I don't have enough storage in the bootcamp hard drive.
    How can I increase the Partition size between windows and mac without having to delete or re-install windows?
    Thanks,
    Advek

    Check out this explanation.

  • How can I increase the size of fonts and tool icons in Elements 12 ?

    The size of fonts and the icons for the tools in the tool box is too small for me to read.  Can I do anything to increase their size??

    Which version of Illustrator?
    For CC you might want to go through this:
    Illustrator CC 2014 interface size too big.
    and this
    http://feedback.photoshop.com/photoshop_family/topics/problem_with_hi_res_monitors
    for other versions
    Hack makes Photoshop and Illustrator readable on Surface Pro — Surface Pro Artist

  • How can I increase the size of the images in the media gallery?

    I'm a novice.  I would like to see larger images in the media gallery.  Is there a weay to increase their size?

    Sadly no.
    You can give a comment to Apple and they might change this in future versions:
    http://www.apple.com/feedback/imovie_iOS.html

Maybe you are looking for

  • Windows 7 will recognize one ipod but not the other?

    I previously owned a 2nd gen iTouch, which would not be recognized by Windows or iTunes. The funny thing is, iTunes would recognize a 4th generation ipod nano that I also had. So I thought there was something wrong with my iTouch, so I went and bough

  • How to specify file names for the generated code in wscompile

    Hi, We want to follow a certain file naming conventions for the artifacts generated by wscompile. How is it possible to set the name for the service interface file, service implementation file etc.... This is possible in AXIS ant task Wsdl2Java. How

  • Problem with my iMac 10.1 (21.5")!

    Please! Help me! I have a problem with my iMac 10.1 (21.5")! The coolers are spinning very quick! I think what it is problem with SMC. I have already reset the SMC, check the temperature sensor, reset the PRAM and NVRAM, but it is not help! What you

  • How to upgrade from 2.2.1 to 3.1?

    I have a first gen. ipod touch running 2.2.1.  I just installed iTunes 10, but when clicking on Check for Updates, it says the software is update (and reports the version as 2.2.1).

  • Single pages and spreads in alternate layouts

    Hi, I am currently creating an alternate layout for a multipage InDesign document that already contains my print version inside the document. I have an understanding on how to create the alternate layout (for IPad: 1024px X 768px) yet when I create t