My Oracle Support Banner

ORA-1000 When Queryihg Geocode Data Over Time (Doc ID 1486346.1)

Last updated on JUNE 23, 2021

Applies to:

JDBC - Version to [Release 10.2 to 11.2]
Oracle Spatial and Graph - Version to [Release 11.2]
Information in this document applies to any platform.


When running a set of packaged stored procedures that perform queries against SDO_GCDR.GEOCODE and GEOCODE_ADDR, the cursor count on the database side steadily increases until eventually the ORA-1000 error occurs:

  ORA-01000: maximum open cursors exceeded
Initially, this was observed from a production web application, which uses the Spring framework with Java to connect to the database.
Then, the problem reproduced from a Java testcase using Java and the Oracle JDBC driver to call these packaged procedures.
Later, the behavior reproduced simply by calling these packaged procedures in a loop from within an anonymous PL/SQL block in SQL*Plus.

This does not appear to be matter of the stored procedures improperly opening (and then failing to close) cursors from within the stored procedures' PL/SQL code itself. Rather, the stored procedures' PL/SQL code doesn't actually open any cursors (thus there's nothing to close). This is because the stored procedure code uses implicit cursors.




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.