Select count(*) never ever ends
Hi,
I loaded a 22 million row table and added an index (non-unique) in a 10.2 database.
I then ran a 'Select count(*) from ' this table and it never ends. Same result for counts on any column. SQL Developer just hangs and other gui(s) never stop churning. Memory and disk are ok. The Explain Plan shows parallel aggregate steps and a full table scan. I used a no_parallel hint and it just did a full table scan but still ran forever. An index hint didn't help. Re-running stats had no effect either.
Any ideas?
Thanks,
Victor