Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Select sql running very long when made to select many columns from a table

964799Sep 27 2012 — edited Sep 27 2012
Hi,

I am using an Oracle DB 10g. I have a table with 250 columns and I need to select 200 columns out of them. The table holds around 0.1 million rows. But when I run the select sql it takes 15 mins to return .1 million rows. Where as if I select only 10 or 15 columns the sql runs in less than a minute returning same number of rows. My sql looks like below:

select p.col1,p.col2,.......,p.col200
from table Parent p;

The table also has a Primary key Index but it does not seem to be using it even when I forced an Index hint. Could you pls help?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2012
Added on Sep 27 2012
9 comments
699 views