Why does it take longer to load identical data into 2 identical tables/

I have two identical Oracle tables.  Table A was created as a "create table as...where 1=0" from Table B.  Table B was truncated prior to inserting the data into it.

Each have the same fields, indexes and belong to the same tablespace.  Table B has about half of the empty blocks as Table A.

When a user runs process XYZ to load data into either table, the insert takes way longer for Table B than it does for Table A.  

Why?
cbetterAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jerrypdCommented:
it sounds as if table B is fragmented, and is looking for space to put the data maybe?
0
cbetterAuthor Commented:
How can you tell if it's fragmented?  We're using ASM.
0
Franck PachotOracle DBACommented:
Hi,

I see no obvious reasons. You can run:

    ALTER SESSION SET EVENTS '10046 trace name context forever, level 8';
    you insert query
    ALTER SESSION SET EVENTS '10046 trace name context off';

then tkprof the dump file and you will see where the time is spent.


Regards,
Franck
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.