This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,468 Users
  • 2,269,776 Discussions
  • 7,916,824 Comments

Discussions

Tablespace fragmentation

User_8E9DZ
User_8E9DZ Member Posts: 238 Blue Ribbon
edited Dec 17, 2014 6:20AM in Database Ideas - Ideas

SELECT   dfsc.tablespace_name tablespace_name,

         DECODE (

            dfsc.percent_extents_coalesced,

            100,

            (DECODE (

                GREATEST ((SELECT COUNT (1)

                             FROM dba_free_space dfs

                1,

                'No Frag',

                'Bubble Frag'

             )

            ),

            'Possible Honey Comb Frag'

         )

               fragmentation_status

    FROM dba_free_space_coalesced dfsc

ORDER BY dfsc.tablespace_name

/

User_8E9DZUser259623 -Oracle
2 votes

Active · Last Updated