Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Vinod .

Asked: January 28, 2016 - 3:20 am UTC

Last updated: April 08, 2024 - 6:38 am UTC

Version: 11g

Viewed 1000+ times

You Asked


Hai all,

I have 1000 number of tables. some of the tables got delete rows and updated the fragmentaion is created.

How to determine which tables are fragmented ?

and Connor said...

Fragmentation is not a "problem" as such. By this, I mean a user of your applications is not going to phone you and say "I have a fragmentation issue".

They may say "My application is slow", or "I'm getting the following error"

So fragmentation is not a problem, it can only be the *cause* of problem, eg, it was fragmentation that *caused* the slowness etc.

I'm saying this because 99% of the time, you need not worry about fragmentation at the table, index or tablespace level. Fragments come and go during the life of a table, and its typically nothing to be concerned about.

So my question is - why do you need to know which tables are fragmented ? What is the problem you are trying to solve ?

Rating

  (3 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Huy, February 16, 2016 - 6:07 pm UTC

As you mentioned that:

"So fragmentation is not a problem, it can only be the *cause* of problem, eg, it was fragmentation that *caused* the slowness etc. "

I wonder how can table fragmentation that caused the slowness be proactively prevented from happening?

Thanks,


Chris Saxon
February 17, 2016 - 12:41 am UTC

With regard to

"I wonder how can table fragmentation that caused the slowness be proactively prevented from happening?"

the first this I'd want to see is evidence that correlates the two


Fragmentation issue

Raj, April 08, 2024 - 3:08 am UTC

Tom,

I have a table with 250 Columns with 17 CLOB columns. Data is injected deleting all data(Instead of Truncate) and loaded from Flat file again. We are using Delete and Insert in one single transaction to retain old data in case of process failure. Code is written in Java. We found this issue as eventually querying this table is slow and table size is accumulating space to Huge 100+G.

I am facing Fragmentation issues, every time we run the load process table size is increasing. Options that we are choosing to resolve is to Truncate once and reload or export and import again.

But, what is actually happening? Why fragmentation is happening? Is there any settings or options that we can give, so Fragmentation can be resolved in first place.

Appreciate your help and thanks in advance.
Connor McDonald
April 08, 2024 - 6:38 am UTC

Can you use DBMS_METADATA to post the entire DDL for the table here please.

Fragmentation Issue

Raj, April 08, 2024 - 1:29 pm UTC

I will try to use Metadata to see what information it gives and what I can share and what I cann't