Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> JDBC question

JDBC question

From: Robert William Vesterman <bob.work_at_vesterman.com>
Date: Mon, 30 Oct 2000 22:39:33 GMT
Message-ID: <39fdf748.29208372@News.CIS.DFN.DE>

We're having a problem with open cursors (too many of them). It sure looks like we're closing everything. However, I noticed one thing that looked strange, although I doubt that it would cause a cursor to remain open:

Statement stmt = (blah);
ResultSet rs = stmt.(blah);

(...)

stmt.close();
rs.close();

What does it mean to close the ResultSet after the Statement has been closed? I thought it automatically got closed when its Statement got closed.

Again, I doubt this is the problem, but could it be? Maybe something like the servlet knows, during the stmt.close(), that it has to retain info about rs, since a reference to rs is coming up, but then when it gets to the rs.close(), it can't actually do that, since the applicable Statement is now gone?

Thanks,

Bob Vesterman. Received on Mon Oct 30 2000 - 16:39:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US