SQL Performance (MOSC)

MOSC Banner

Pk index ignored and full table scan initiated

edited Nov 6, 2015 10:02AM in SQL Performance (MOSC) 3 commentsAnswered

Suddenly a trivial delete that ran happily for years has now started a full table scan onowner1.ACTION_LOG  increasing the run time from a few minutes to sometime near infinity. There has been no schema or data volume changes.The query is below. The column action_log_id is the PK index column. Stats are up to date . I have tried using the index hint and parallel hint  to no avail. Any suggestions ? running  11.2.0.3

DELETE FROM owner1.ACTION_LOG WHERE ACTION_LOG_ID IN

(SELECT distinct ACTION_LOG_ID  FROM owner2.WK_HKP_ACTION_LOG_IDS) and rownum < 100000

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