java.sql.SQLException: - ORA-01000: maximum open cursors exceeded

后端 未结 13 1421
鱼传尺愫
鱼传尺愫 2020-11-22 08:36

I am getting an ORA-01000 SQL exception. So I have some queries related to it.

  1. Are maximum open cursors exactly related to number of JDBC connections, or are t
13条回答
  •  醉酒成梦
    2020-11-22 08:58

    query to find sql that opened.

    SELECT s.machine, oc.user_name, oc.sql_text, count(1) 
    FROM v$open_cursor oc, v$session s
    WHERE oc.sid = s.sid
    and S.USERNAME='XXXX'
    GROUP BY user_name, sql_text, machine
    HAVING COUNT(1) > 2
    ORDER BY count(1) DESC
    

提交回复
热议问题