Results 1 to 2 of 2

Thread: ORA-01000: maximum open cursors exceeded

  1. #1
    Join Date
    Jul 2007
    Posts
    1

    Default ORA-01000: maximum open cursors exceeded

    Hi,
    I am using Spring for DAO connectivity

    import org.springframework.jdbc.core.JdbcOperations;
    private static JdbcOperations jdbcTemplate;
    String sql = "select .....";
    jdbcTemplate.query(sql, myMapper);

    This opens a cursor. I have other similar such methods that open cursors and then i get the exception ORA-01000: maximum open cursors exceeded.

    If I had used JDBC I could have close my Preparedstatements and ResultSets and got rid of it. but what do I do in Spring as I dont have a close method ?

    Please help
    Thanks
    Riz

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    This is one of the good reasons to use Spring, it manages these boiler plate activities for you. Is it possible to see the rest of the code you are having problems with and also the configuration? This time [code] [ /code] tags would be a good idea. It would also be a good idea to write a unit test that tries to expose this problem.
    Last edited by karldmoore; Aug 27th, 2007 at 03:07 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •