[MS4W-Users] Oracle Unable to open datasource

Simon Mercier smercier at mapgears.com
Wed May 30 13:18:40 EST 2012

Hi list

I try to connect "ogrinfo" and Oracle in my ms4w install directory and it
don't work?  I still don't find out what's going on :-(

1) I use a the last ms4w 3.0.6 build.

2) I download the Oracle Instantclient 11.2.03 and set ORACLE_HOME.  If I
try to connect via sqlplus, everything work fine (I also try with a
tnsnames.ora and work fine to)

C:\..\ms4w306>sqlplus dt/dr2011 at LC/GEOSID

SQL*Plus: Release Production on Wed May 30 10:46:15 2012

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing


3) But for ogrinfo it just don't work.  I moved the ogr_OCI.dll from
ignored path to /ms4w306/gdalplugins and set all Environment variables. A
formats option show that OCI driver is support:

C:\..\ms4w306>ogrinfo --formats
Supported Formats:
  -> "OCI" (read/write)
  -> "ESRI Shapefile" (read/write)
  -> "MapInfo File" (read/write)
  -> "UK .NTF" (readonly)

C:\..\ms4w306>ogrinfo OCI:dt/dr2011 at LC/GEOSID
ERROR 1:  in <unnamed>
Unable to open datasource `OCI:dt/dr2011 at LC/GEOSID' with the following
  -> OCI
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> SDTS

4) Same problem with mapserv and shp2img in my ms4w install dir.  Where
should I look now to make it run ?


Simon Mercier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20120530/803dd65c/attachment.htm 

More information about the MS4W-Users mailing list