[gdal-dev] ogr2ogr with ORACLE driver: limitation on table name size?

Victoria Ponz-Sarvise vponz-sarvise at forsk.com
Tue Sep 15 07:51:07 PDT 2020

Thanks for your answers.

I have reviewed my oracle settings and in fact what I said wasn't strictly ok... I compiled GDAL using a 12.2 oracle client, but the database I got for the tests is oracle 19... so it won't work (I think Even is right). Sorry for that bad info in my first mail.

I'm going to look for a 12.2 database that I can use for new tests and will keep you informed. Because it should work in that context at least.

From: Even Rouault <even.rouault at spatialys.com>
Sent: Tuesday, September 15, 2020 4:34 PM
To: gdal-dev at lists.osgeo.org
Cc: Ivan Lucena <ivan.lucena at outlook.com>; Victoria Ponz-Sarvise <vponz-sarvise at forsk.com>
Subject: Re: [gdal-dev] ogr2ogr with ORACLE driver: limitation on table name size?


> https://github.com/OSGeo/gdal/blob/70a2ec1795c3e01aeaf1ac3c0f7c69a3f0fa2ca5/

> gdal/ogr/ogrsf_frmts/oci/ogrocisession.cpp#L316

The logic

if( nServerVersion >= 12 && nServerRelease >= 2 )

looks wrong to me. It will not work for 13.0 for example

Shouldn't that be

if( nServerVersion > 12 || (nServerVersion == 12 && nServerRelease >= 2) )


That said that doesn't explain issues with 12.2



Spatialys - Geospatial professional services

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200915/d69b71a4/attachment.html>

More information about the gdal-dev mailing list