SQL Performance (MOSC)

MOSC Banner

sql script tuning

edited Apr 10, 2017 11:25AM in SQL Performance (MOSC) 5 commentsAnswered ✓

Hi,

Users have reported that a script is took 5 hours to complete which used to complete in 1 mins.

I collected data from sqlhc and found that the execution plan got changed. On checking Tables Statistics Versions i found the following

#Table NameOwnerVersion TypeSave TimeLast AnalyzedNum RowsSample
Size
PercBlocksAvg
Row
Len
2TBMZB_STG_BSRO_SALES_MARGINMZB_BSRO_STGCURRENT06-APR-17422938422938  100.094264
3TBMZB_STG_BSRO_SALES_MARGINMZB_BSRO_STGHISTORY06-APR-17 12.10.14.098924 AM -05:0004-APR-1719011331901133  100.0430864
4TBMZB_STG_BSRO_SALES_MARGINMZB_BSRO_STGHISTORY04-APR-17 11.28.04.017356 PM -05:0004-APR-170000
5TBMZB_STG_BSRO_SALES_MARGINMZB_BSRO_STG

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