SQL Performance (MOSC)

MOSC Banner

slow performance for this sql

edited Nov 20, 2013 8:52AM in SQL Performance (MOSC) 9 commentsAnswered
We have one sql runs the first day of every month, it runs about 13-15 hours every month. It is using hash join on 3 table AR_DEBTOR, AR_UNPAID and AR_TRANSACTION

insert into ar_aged_debt_trans SELECT ar_unpaid.dtype_r, ar_unpaid.dref, :"SYS_B_0", ar_unpaid.debtornum, ar_unpaid.amt_unpaid,
 :"SYS_B_1", ar_unpaid.date_due, ar_transaction.date_posted, ar_transaction.amount, en_company.company_code,
 :"SYS_B_2", ar_unpaid.debit_class, null, :p1 , :p2 , null, null
from   ar_unpaid ,ar_transaction ,ar_debtor ,pm_branch ,pm_division ,en_company
where ar_unpaid.dtype_r = ar_transaction.type_r

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