Solved

script for checking Disk , Tablespace and index Fragmentation

Posted on 2011-03-07
5
1,192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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…

726 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