Database Tuning (MOSC)

MOSC Banner

how to check table stats are generated properly

edited Aug 28, 2011 11:43PM in Database Tuning (MOSC) 8 commentsAnswered
We have weekly scheduled table and index stats generation. One table having more than 43lacs  records giving issue. One process which includes select on above table gets hangs for more than 30 minutes. After stats generation, process completes within two minutes.  Table is having 4 composite indexes. One of them is having 11 columns in the index. What can be the issue.

My database version is 10.2.0.2.

I am aborting the spool process where select is being called and then only running the following script to generate stats.

Exec dbms_stats.gather_table_stats(ownname=>'IFLICMF',tabname=>'ACCOUNTBAL',estimate_percent => 15,cascade=>true);
Exec dbms_stats.gather_table_stats(ownname=>'IFLICMF',tabname=>'ACCENT',estimate_percent => 15,cascade=>true);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center