I am getting ora-01000 maximum open cursors exceeded error in my application while executing queries on Oracle 11g database. I went through some blogs reading about it and found that: It is caused if application open more connections than the value specified in OPEN_CURSOR property of Oracle. The cursors get opened for ResultSet and PreparedStatements.
The best solution to this is to find where the connections are open and not closed (probably findbug can help on this).
I am using Spring data access and JdbcTemplate in that, which manages all these opening and closing of connections, resultset, statements etc. Also connection pooling is used.
My query is that if Spring is managing all the connection handling(opening and closing) then how can I in my application find open connections as I am not the one managing it.
Please give me some hints on what all can I check for.