<div>Hi there,</div>
<div> </div>
<div>I've found the problem: permission in apache.</div>
<div> </div>
<div>if I start the Apache using apache-install.bat or apache-restart.bat, the user name in the taskmanager for Apache process will be automatically set as SYSTEM, which is not my user name, my user name is ZWA.</div>
<div>If I change this user name manually, MapServer works perfect with the oracle spatial support.</div>
<div> </div>
<div>if I start the apache again, I must set the user name manually again back to ZWA. Is there any solution to set this globally?<br> </div>
<div>thanks for any ideas</div>
<div> </div>
<div>zhonghai<br> </div>
<div><span class="gmail_quote">On 6/21/06, <b class="gmail_sendername">Bart van den Eijnden (OSGIS)</b> <<a href="mailto:bartvde@xs4all.nl">bartvde@xs4all.nl</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Are there any environment variables which are not passed on to the CGI but<br>are available in a DOS window? For instance how have you added the Oracle
<br>client bin directory to the Windows PATH?<br><br>You also need to do this in Apache's httpd.conf using SetEnv and after<br>that restart apache.<br><br>Best regards,<br>Bart<br><br>> Hi guys,<br>><br>> I've been working on this topic for almost two weeks, and I still can not
<br>> get it work. In last two days, Fernando Simon has helped me a lot to solve<br>> this problem, Simon, thank you, I really appreciate it. With his help I<br>> stepped forward to solve this problem, but I still can not get it work.
<br>><br>> according to Fernando Simon's suggestion I made the test with the command:<br>><br>> C:\ms4w><br>> mapserv.exe"QUERY_STRING=localhost/cgi-bin/mapserv.exe?&mode=map&map=C:\ms4w\apps\Demo\OracleTest.map"
<br>> ,<br>><br>> and I get the map image successfully. In the OracleTest.map mapfile, two<br>> oracle layers are defined, one with native oracle suppport, one with OGR<br>> OCI<br>> interface.<br>><br>
> tests with the command mapserv -v and ogrinfo --formats indicate that<br>> oracle<br>> spatial and OCI are supported. with the "ogrinfo OCI:XX/XX@XXXX" command<br>> is<br>> also no problem to access the the oracle database, I can even use ogr2ogr
<br>> command to convert the oracle spatial layer to ESRI Shapefile.<br>><br>> but the problem is, if I am trying to access the oracle spatial database<br>> in<br>> web browse, an Internal Server Error is returned instead of the map image.
<br>> i<br>> really can not figure out what the problem is.<br>><br>> thanks for any ideas to solve this problem.<br>><br>> zhonghai<br>><br><br><br></blockquote></div><br>