Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fragmentation in Database

Status
Not open for further replies.

somanivivek

IS-IT--Management
Nov 20, 2001
15
IN
How do I find the amount of fragmentation in database.
I got hold of a query which says that all objects with extent_id>3 are deemed as fragmented. Is is true?? Any other method to find fragmentation??
 

You might be referring to this kind of SQL;

SELECT SEGMENT_NAME ,
SEGMENT_TYPE ,
TABLESPACE_NAME ,
COUNT( EXTENT_ID ) EXTENTS_#,
SUM( BYTES ) TOT_BYTES,
SUM( BLOCKS ) TOT_BLOCKS
FROM ALL_EXTENTS
GROUP BY SEGMENT_NAME , SEGMENT_TYPE , TABLESPACE_NAME
having count( extent_id ) > 3;

This is a common misconception, the real advantage is gained by using larger extent sizes and not having small number of extents.
Robbie

"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top