<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Is tnsnames.ora accessible by the web-server user? (Check the permissions.)</div><div><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">Is t<br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Sebastian E. Ovide &lt;sebastian.ovide@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, September 29, 2010 11:10:09 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] lighttpd, TNS:could not resolve...<br></font><br>
Hi All,<div><br></div><div>I have installed MapServer on lighttpd + fastcgi.</div><div><br></div><div><div>fastcgi.server = (</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;"/mapserver" =&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;( "localhost" =&gt;</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"socket" =&gt; "/tmp/mapserver-fastcgi.socket",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"bin-path" =&gt; "/home/gis/bin/mapserv",</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"bin-environment" =&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"TNS_ADMIN" =&gt; "/home/gis/conf/"</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;),</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"max-procs" =&gt; 2,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"check-local" =&gt; "disable"</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;)</div><div>)</div></div><div>
<br>
</div><div><br></div><div><div>gis@mapserver:~$ cat /home/gis/conf/tnsnames.ora</div><div>MFUATDB =</div><div>&nbsp;&nbsp;(DESCRIPTION =</div><div>&nbsp;&nbsp; &nbsp;(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))</div><div>&nbsp;&nbsp; &nbsp;(CONNECT_DATA =</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp;(SERVER = DEDICATED)</div><div>&nbsp;&nbsp; &nbsp; &nbsp;(SERVICE_NAME = mfuatdb)</div><div>&nbsp;&nbsp; &nbsp;)</div><div>&nbsp;&nbsp;)</div></div><div><br></div><div>and I'm getting:&nbsp;</div><div><br></div><div>msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'.
ORA-12154: TNS:could not resolve the connect identifier specified
 in &lt;unnamed&gt;</div><div><br></div><div>from the logs:</div><div><br></div><div><div>[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513</div><div>[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'.</div>

<div>ORA-12154: TNS:could not resolve the connect identifier specified</div><div>&nbsp;in &lt;unnamed&gt;</div><div><br></div><div>[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'.</div>

<div>[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298.</div><div>[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0.</div><div>[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718.</div>

</div><div><br></div><div><br></div><div>in mapserver:</div><div><br></div><div><div>&nbsp;&nbsp;LAYER</div><div>&nbsp;&nbsp; &nbsp;NAME TESTII</div><div>&nbsp;&nbsp; &nbsp;TYPE POLYGON</div><div>&nbsp;&nbsp; &nbsp;STATUS ON</div><div>&nbsp;&nbsp; &nbsp;CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA@mfuatdb"</div>

<div>&nbsp;&nbsp; &nbsp;CONNECTIONTYPE OGR</div><div>&nbsp;&nbsp; &nbsp;DATA "CA_WILDFIRE"</div><div>&nbsp;&nbsp; &nbsp;PROJECTION</div><div>&nbsp;&nbsp; &nbsp; &nbsp;"init=epsg:3857"</div><div>&nbsp;&nbsp; &nbsp;END</div><div>&nbsp;&nbsp; &nbsp;CLASS</div><div># &nbsp; &nbsp; &nbsp;NAME "local_shape"</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp;COLOR 0 0 255</div><div>&nbsp;&nbsp; &nbsp; &nbsp;OUTLINECOLOR 0 0 255</div><div>&nbsp;&nbsp; &nbsp;END</div><div>&nbsp;&nbsp;END</div></div><div><br></div><div><br></div><div><br></div><div>The connection string is right as I'm using it from gdal:</div>

<div><br></div><div><div><div>gis@mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA@mfuatdb:CA_WILDFIRE</div><div>INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA@mfuatdb:CA_WILDFIRE'</div><div>&nbsp;&nbsp; &nbsp; &nbsp;using driver `OCI' successful.</div>

<div>1: CA_WILDFIRE</div></div></div><div><br></div><div><br></div><div>any ideas ?</div><div><br></div><div><br></div><div>-- <br>Sebastian E. Ovide<br><br><br><br><br>
</div>
</div></div></blockquote><div style="position:fixed"></div>


</div><br>

      </body></html>