Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
musicola
Contributor
Contributor

Oracle stored procedure error: maximum open cursors exceeded

I have a job that iterates off a tHashInput and for each row executes an Oracle stored procedure that uses a in/out cursor. It has about 2000 rows to process. At the stored proc step in the flow, it's processing at about 40 rows/second.

About halfway through, I get this error from the database:

ORA-01000: maximum open cursors exceeded

Is there multi-threading going on? Anything I can adjust?

Or perhaps it's not closing the result sets appropriately or quickly enough?

In general, I do a bunch of other Oracle access with no problems, but this is the first time I've hit this rate/volume.

0683p000009LyeC.png

Labels (2)
2 Replies
Jesperrekuh
Specialist
Specialist

I cant tell if your tOracleSP is creating a connection to Oracle or you use a shared connection (which I suggest doing), however ... there's a max cursor on db/oracle you could increase it by asking your DBA.

I found this thread, which is quite interesting to read.
https://stackoverflow.com/questions/12192592/java-sql-sqlexception-ora-01000-maximum-open-cursors-ex...
musicola
Contributor
Contributor
Author

Thanks for your reply. Yes, I'm using a shared connection. I was just suspicious that there might be a threading aspect to Talend or something else that I don't understand.