Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Simple query but taking more time for execution. can somesome look this

user11995853Feb 22 2013 — edited Feb 27 2013
iHi,

I am running the concurrent requests its taking more time to complete it due to the below query. Below query is taking more time(arround 4 hrs) for execution.
I have used the hints to reduce the execution time but it didnt helped. Can someone help me to tune this query.

SELECT
DECODE(INSTR(trx_number,'-'),0,NULL ,SUBSTR(trx_number,INSTR(trx_number,'-')+1)) trx
FROM ar_payment_schedules_all a ,
HZ_CUST_SITE_USES_ALL b
WHERE a.customer_site_use_id = b.site_use_id
AND b.location = p_location
AND a.trx_number LIKE P_trx_number || '%'
AND a.status = 'OP'
GROUP BY DECODE(INSTR(trx_number,'-'),0,NULL ,SUBSTR(trx_number,INSTR(trx_number,'-')+1));

Thanks,
Prabakaran
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2013
Added on Feb 22 2013
10 comments
822 views