[ms4w-users] [UNCLASSIFIED]Problem connecting to Oracle Spatial

Damien.Lynch at brs.gov.au Damien.Lynch at brs.gov.au
Mon Sep 4 02:43:36 EDT 2006


I have installed ms4w 2.1 and version 1 of the Oracle 10g client. I have swapped the libmap.dll library and added the following lines to Apache's httpd.conf file:
 
SetEnv ORACLE_HOME "c:/oracle/product/10.1.0/Client"
SetEnv TNS_ADMIN "c:/oracle/product/10.1.0/Client/NETWORK/ADMIN"
SetEnv PATH "c:/oracle/product/10.1.0/Client/bin"

and I think I have the layer in the mapfile correct:
 
  layer
    name           nvis1
    connectiontype oraclespatial
    connection     "user/pass at service"
    data           "location from grid"
    status         on
    type           point
  end

but I still cannot connect to Oracle spatial. When I enter http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/lccsApp/vegetation.map <http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/lccsApp/vegetation.map&layers=nvis1&mode=map> &layers=nvis1&mode=map in my browser, I get the following error:
 
msDrawMap(): Image handling error. Failed to draw layer named 'nvis1'. 
msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12560: TNS:protocol adapter error .
 
I have no problem connecting using sqlplus using the same connect string.
 
The only non-standard thing is that I had the 8i client already installed and I installed 10g alongside it. I have since removed 8i and used the registry editor to change all references to 10g.
 
Any ideas why I can't connect?
 
Damien Lynch
 

---------------------------------------------------------------------- 
IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF).  The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material.  It is your responsibility to check any attachments for viruses and defects before opening or sending them on.  
Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited.  The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.  If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments.  If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly.  Only e-mail correspondence which includes this footer, has been authorised by DAFF 
----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20060904/a0d4d2f5/attachment.html


More information about the ms4w-users mailing list