Home » RDBMS Server » Performance Tuning » Long running Query (Windows, Oracle 11g)
|
|
Re: Long running Query [message #649089 is a reply to message #649083] |
Sat, 12 March 2016 01:56   |
pablolee
Messages: 2882 Registered: May 2007 Location: Scotland
|
Senior Member |
|
|
You have a Cartesian product (no join to the product table, your 'expert' really should have picked that up) and your correlated sub queries are probably the main time consumers, have a look and see if you can adapt the query to not need those correlated sub queries.
Your predicate bi.action_date = sysdate;
is unlikely to be useful as sysdate also contains a time portion, are you genuinely looking for rows with an action date specific to the EXACT point in time that you execute the query? (I could of course, be wrong there, I don't know your data/process)
tbh I can't really be bothered trying to pick through a parallelised explain plan, feel free to post the plan again without the parallelism.
[Updated on: Sat, 12 March 2016 01:58] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Long running Query [message #649308 is a reply to message #649083] |
Tue, 22 March 2016 03:40   |
 |
vivek_h
Messages: 1 Registered: March 2016
|
Junior Member |
|
|
Product table is no where mentioned in joining condition. Give one more condition in Product table with any other table.
p.<columnname>= related column in any of the below mentioned table.
ACCOUNT A,
BC_ACCOUNT BC,
T_LANG TL,
PRODUCT_CAT PCAT,
ACCOUNT_BI BI
[Updated on: Tue, 22 March 2016 03:45] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat May 03 09:30:32 CDT 2025
|