Database Tuning (MOSC)

MOSC Banner

Need help with this query

edited Mar 4, 2009 6:46PM in Database Tuning (MOSC) 3 commentsAnswered
 UPDATE PPC_ADDRESS pa           SET pa.han_padded = LPAD(pa.han, 11, ' ')
           WHERE pa.han IS NOT NULL
           AND state
IN('AR', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'GA', 'ID', 'IL', 'IN', 'LA', 'MA', 'MD', 'ME', 'MI', 'MN',
'NC', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OR', 'PA', 'RI', 'SC', 'TN', 'TX', 'UT', 'VA', 'VT', 'WA',
'WI', 'WY');

this statement is indexed on the han_padded column as a composite index - I've tried a function based index on the state column but its still running in an hour..
Does anyone have any idea on maybe a subselect that would whittle the time on this query?

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