Gathering database statistics in oracle
While with Oracle for several years there had been many instances when the database performance had not been optimal. This had nothing to with the configuration of the sever but more with tuning of database. Here are some tips which I had been using
Make sure that database statistics is upto-date. As this is one of the factor which can influence explain plan. We can gather statistics by executing following command:
EXEC DBMS_STATS.gather_schema_stats(‘TDWDBA’);
Where TDWDBA is the schema name.

