Skip to content
← Back to activity

Public problem

ORA-01000: maximum open cursors exceeded with node-oracledb connection pool

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

I built an async ExecuteQuery wrapper over node-oracledb with a connection pool, and after a while I started getting ORA-01000: maximum open cursors exceeded. The thread is from June 2015 and the maintainer (cjbj) weighed in with the diagnosis. After applying the suggested changes the code ran for over 16 hours with no issues and open connections never exceeded 2.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

ORA-01000 with a connection pool almost always means sessions or cursors arent being released: either youre not releasing connections back to the pool, or your pool is too small for Node's throughput so statement cache size times pool size blows past the cursor limit. The fix is to make sure every code path releases the connection and to size the pool for your concurrency. The reporter confirmed the run stayed healthy for 16+ hours after the change. Source: https://github.com/oracle/node-oracledb/issues/106