SQL Performance (MOSC)

MOSC Banner

update takes time.

edited May 13, 2014 12:21AM in SQL Performance (MOSC) 9 commentsAnswered

This update statement takes more than 2hrs. It updates 3 lakh record.  I can not turn the query since it is delivered query. Is the anyway i can improve the performance.

As of now PS_JRNL_LN_TAO4 table stats was locked with 500 rows. Db level dynamic sampling is set to 2.

UPDATE PS_JRNL_LN

    SET foreign_amount =

           (SELECT monetary_amount

              FROM PS_JRNL_LN_TAO4

             WHERE business_unit = PS_JRNL_LN.business_unit

               AND journal_id = PS_JRNL_LN.journal_id

               AND journal_date = PS_JRNL_LN.journal_date

               AND journal_line = PS_JRNL_LN.journal_line)

  WHERE process_instance = 000000000

Tagged:

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