0

I have a SQL query that fetches roughly 200 columns from multiple tables and normally runs in a matter of minutes.

A Java program kicked off by cron calls the SQL every 4 hours, but occasionally hangs forever(=not fetching any data. Neither updates nor inserts are involved).

Here are some outputs from V$SESSION.

STATUS: ACTIVE
ROW_WAIT_OBJ#: 22392 ←not changing
ROW_WAIT_FILE#: 6 ←not changing
ROW_WAIT_BLOCK#: 8896642 ←not changing
ROW_WAIT_ROW#: 0 ←not changing
LAST_CALL_ET: 5632 ←keeps incresing

★No other heavy SQL queries are running at the same time

What could be the cause of this and what should I look into to solve it?

Ravi
  • 30,829
  • 42
  • 119
  • 173
d-_-b
  • 4,142
  • 6
  • 28
  • 43

1 Answers1

0

You can use TKPROF or SQL Profiler. This reports can help you. We can not replay your question now.

If you attach your tuning reports, we can help you. Because many things can cause performance problems. A comprehensive study is needed to understand this.

Follow this link;

https://docs.oracle.com/cd/E11882_01/server.112/e41573/perf_overview.htm

mehmet sahin
  • 802
  • 7
  • 21