Results 1 to 2 of 2

Thread: Qt Oracle too many opened cursors

  1. #1
    Join Date
    Sep 2007
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt Oracle too many opened cursors

    Hi,

    Iam facing a problem related to Oracle.
    Iam calling a stored procedure which returns a ref cursor from Qt using QODBC3 driver.
    Iam able to get the result(QSqlResult).

    But, the oracle cursors are still opened but not closed. Since opened cursors accumulate to more than 300, Oracle throws the
    following error. ORA01000 : Too many cursors opened.

    I tried many ways in Qt to solve this problem (like, calling clear() method in QsqlQuery, deleting Qsqlquery object, getting handle from QsqlResult and freeing the handle). But, problem is not yet solved.

    Please help me in this issue.

    Thanks & Regards,
    Suresh

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Oracle too many opened cursors

    Qt only passes data around and it doesn't know how to handle cursors. I don't use Oracle, but if that procedure opens a cursor, then you should have another one that closes it when it's no longer needed. And either you have to issue another query that will close the cursor or change your procedure in such way that it closes the cursor after it retrieves the data.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.