-
1. Re: Oracle Maximum Open Cursors Exceeded
l.g. Feb 6, 2002 5:20 PM (in response to mattbaird)I have this problem too.
I think it happens when I deploy apps many times and
JBoss get new connection every time and don`t disconnected. Maybe I`m wrong...
But every day I have to go to Oracle box and manually kill the processes... -
2. Re: Oracle Maximum Open Cursors Exceeded
blackangel Feb 6, 2002 5:42 PM (in response to mattbaird)I was running into exactly the same problem but with
iPlanet application server. So it might be internal
Oracle configuration issue, since JDBC doesn't request
to create cursors explicitely. -
3. Re: Oracle Maximum Open Cursors Exceeded
tom_muir Feb 7, 2002 10:40 AM (in response to mattbaird)The ORACLE JDBC driver requires that you close all Statement and ResultSet objects. For example:
PreparedStatement ps = new PreparedStatement("SELECT * FROM EMPLOYEE");
ResultSet rs = ps.executeQuery();
ps.close();
rs.close();
If you don't close these resources, ORACLE experiences a memory leak (i.e. cursors run out).
You can also adjust the number of open cursors in your ORACLE pfile using the attribute:
open_cursors = 1024
Hope this helps. Obviously, it is for BMP. -
4. Re: Oracle Maximum Open Cursors Exceeded
blackangel Feb 7, 2002 5:09 PM (in response to mattbaird)Dunno whether increasing of curors is useful. We ran
out of 6000 :)
I'm not sure about whether JBoss closes resultsets,
but closing of prepared statements is not done, but
they are also reused and never created twice.