Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle report takes forever to run

Status
Not open for further replies.

CBK

Programmer
Nov 1, 2002
20
0
0
US
I have a couple of reports that used to run fine, now for some reason they take forever (if at all) to run.

I am using Oracle 8.1.7 and have already examined the tables and indexes involved in the processing. I even dropped and recreated the indexes.

Any clues??
 
Can you examine V$SESSION [and V$SQLTEXT] to get current cursors opened by that sessions?

Regards, Dima
 
I queried v$session and came up with some data, but I am not sure what I am looking at
 
Oops, was not too precise :)

You may get text of query by

select SQL_TEXT
from SESSION S, V$SQLTEXT T
where S.SQL_ADDRESS= T.ADDRESS
AND S.SQL_HASH_VALUE=T.HASH_VALUE
AND AUDSID=<add correct value here>
ORDER BY ADDRESS, PIECE

Then you may use EXPLAIN PLAN and get plan for these statements.
Recreating indexes is not very good idea, because you loose statistics thus making your CBO blind.

You may also investigate V$LOCK view to check whether those reports don't wait for locked resources.

Regards, Dima
 
Thanks, but I am not getting any row returned with your query. I double-checked the audsid to verify it is still in v$session but nothing is coming back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top