Solved

script for checking Disk , Tablespace and index Fragmentation

Posted on 2011-03-07
5
1,271 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

717 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