MDSYS.SDO_GCDR (GEOCODER) Fails With ORA-29532 Java.lang.OutOfMemoryError (Doc ID 2238417.1)

Last updated on APRIL 21, 2017

Applies to:

Oracle Spatial and Graph - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

The Geocoding procedure is failing with a Java Out Of memory error.

SELECT SDO_GCDR.GEOCODE_AS_GEOMETRY('<SCHEMA_NAME>',SDO_KEYWORDARRAY('3175 W. 6th St.', 'Los Angeles, CA 90020'),'US') FROM <TABLE_NAME> a ;

SDO_GCDR.GEOCODE_AS_GEOMETRY('<SCHEMA_NAME>',SDO_KEYWORDARRAY('3175W.6THST.','LOSANGELE
---------------------------------------------------------------------------------------------------------------------------
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
SDO_GEOMETRY(2001, 0, SDO_POINT_TYPE(0, 0, NULL), NULL, NULL)
ERROR:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.OutOfMemoryError
ORA-06512: at "MDSYS.SDO_GCDR", line 738
ORA-06512: at "MDSYS.SDO_GCDR", line 786

46185 rows selected.

The query failed after returning many rows.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms