Skip to Main Content

Oracle Database Discussions

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 count(*) taking so long on empty table

440143Jun 6 2005 — edited Jun 6 2005
Ive got a table with about 5 million rows in it. Ive gone through a archiving process and exported all the data, truncated the table and am ready to import a selection of the data back into the table.
Im really puzzled as now the table is empty - even if I do a simply count on it
select count(*) from the_table.
it takes about 30 seconds to come back with 0 (zero).

counts on other tables take a split second????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2005
Added on Jun 6 2005
4 comments
1,014 views