?
Solved

script for checking Disk , Tablespace and index Fragmentation

Posted on 2011-03-07
5
Medium Priority
?
1,536 Views
Last Modified: 2012-05-11
Hello,

I search a script for checking :

1.Disk and Tablespace Fragmentation
2.Table Fragmentation – this bit
2.Index Fragmentation

Thanks

Regards

bibi
0
Comment
Question by:bibi92
5 Comments
 
LVL 1

Expert Comment

by:dbradley626
ID: 35057120
in the cmd type chkdsk
0
 

Author Comment

by:bibi92
ID: 35059193
For windows, yes, I know this command.
I search a script for checking Disk , Tablespace and index Fragmentation on Oracle.

Thanks

bibi
0
 
LVL 5

Accepted Solution

by:
jaiminpsoni earned 2000 total points
ID: 35060103
Check this....

http://www.orafaq.com/node/1936 (Table Fragmentation)
http://www.orafaq.com/scripts/sql/idxfrag.txt (Index Fregmentation)
0
 
LVL 48

Expert Comment

by:schwertner
ID: 35060115
Oracle tries to avoid fragmentation using segments, parameters like PCTUSED, PCTFREE
but nevertheless fragmentation occurs especially by indexes due logical ("lazy") delete algorithm used in the DBs.

Defragmentation is a time and resource consuming process and the DBs in many cases are not doing defragmentation in order to speed up the processing. Often also caches like SHARED_POOL are badly fragmented.

Some useful links:


http://www.orafaq.com/node/1936

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1092233274210
0
 

Author Closing Comment

by:bibi92
ID: 35086113
Thanks bibi
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question