SQL Performance (MOSC)

MOSC Banner

Oracle optimizer estimation is way off. An insert statement runs forever even the execution plan sho

edited May 27, 2015 11:24AM in SQL Performance (MOSC) 4 commentsAnswered

An insert statement is stuck at table scan on WSH_NEW_DELIVERIES table.

Even though xplain plan showed indexes are used and the estimated completion was very short, the insert statement is stuck at WSH_NEW_DELIVERIES (based on v$session_longops view) and had been running for more than 15 hours before I terminated the session.


Actions have been taken

1) Gathered the table's latest statistics on all relaited tables via dbms_stats

2) Ran Validate table WSH.WSH_NEW_DELIVERIES but no corrutption blocks reported in V$DATABASE_BLOCK_CORRUPTION table

3) WSH.WSH_NEW_DELIVERIES table information: 18,297,742 records and 93,184 blocks (730MB)

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