SQL Performance (MOSC)

MOSC Banner

Re: Query performance is slow after recreation of table

edited Jul 4, 2014 4:21AM in SQL Performance (MOSC) 19 comments

Hello,

I think that it is OK with the DBMS_STATS.GATHER_TABLE_STATS that you've suggested, and I don't think that you need to delete old "ANALYZE" statistics.

Maybe you can show us the query that "should take 2 hours but takes 4 hours", with the execution plan, and/or an idea of the cardinalities of the various tables

SET LINES 300 PAGES 32000

EXPLAIN PLAN FOR

  SELECT ...

;

SELECT * FROM TABLE( DBMS_XPLAN.DISPLAY );

and

SELECT table_name, num_rows

  FROM user_tables

  WHERE table_name IN ( 'TBL1', 'TBL2', ... )

;

(please use the font "Courier New" to give us the output)

Best regards,

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