Beverly Penney
asked on
Long Running Query in Oracle
I am trying to run a query in Oracle 10g, when I use my ID the query takes hours and eventually will error out. I have had other users try the same query and the query finished in under 1 minute. I have compared that we are all running the same client, etc ... .
Any suggestions as to what may be causing the query to run so long for my ID or something else I could check?
Thanks
Any suggestions as to what may be causing the query to run so long for my ID or something else I could check?
Thanks
You as the user, do you have previleges to run this query?
ASKER
I have read access to all the tables that are in the query.
Are you sure the different users are selecting from the exact same tables in the exact same databases?
What is the error when it times out?
What is the error when it times out?
ASKER
I have sent the users the query, so they are using the same query. I am not sure if they have a copy of the tables stored somewhere that they are accessing but we have discussed it and it didn't come up. I haven't let it run in a while so I don't have the exact error message
ASKER
the user ID that I am using is used for all reporting and is a generic read only ID ... could that be the problem.
A readonly id should not causes any problem.
See if you can generate an execution plan for the query. If so, please post the results.
explain plan for
select ... the rest of your query
If that works, please post the results of:
select * from table(dbms_xplan.display);
See if you can generate an execution plan for the query. If so, please post the results.
explain plan for
select ... the rest of your query
If that works, please post the results of:
select * from table(dbms_xplan.display);
If you cannot generate a plan, I suggest you work directly with your local DBAs to help troubleshoot this porblem.
ASKER
I will try that ... and post my findings but it might be a little while before I get back with it depending on how it runs.
Thanks
Thanks
explain plan runs in seconds. It never actually executes the select.
ASKER
ok ... I am not familiar with any oracle commands
ASKER
Plan is attached
-Plan.xls
-Plan.xls
do you have FGAC policies on any of the objects?
or are there other function calls that may behave differently depending on the user calling them?
what about triggers?
or are there other function calls that may behave differently depending on the user calling them?
what about triggers?
does each user have a private db links? If so, are you all going to the same remote db and running the same query there with the same privileges?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks I will contact our local DBA's to see if there is something we can find there.
Thanks again for your help.
Thanks again for your help.
isn't a split in order?
ASKER
Sorry about that but slightvw did give me the assistance regarding the plan, how to run the plan, and then looked at the plan and provided feedback
ok, if that's all you were looking for, then no problem.
but you didn't select the post where he gave plan advice, you selected the one where he referenced my posts, so it seemed like a split should have been applied
but you didn't select the post where he gave plan advice, you selected the one where he referenced my posts, so it seemed like a split should have been applied