<div>Hi there,</div>
<div>&nbsp;</div>
<div>I've found the problem: permission in apache.</div>
<div>&nbsp;</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>&nbsp;</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>&nbsp;</div>
<div>thanks for any ideas</div>
<div>&nbsp;</div>
<div>zhonghai<br>&nbsp;</div>
<div><span class="gmail_quote">On 6/21/06, <b class="gmail_sendername">Bart van den Eijnden (OSGIS)</b> &lt;<a href="mailto:bartvde@xs4all.nl">bartvde@xs4all.nl</a>&gt; 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>&gt; Hi guys,<br>&gt;<br>&gt; I've been working on this topic for almost two weeks, and I still can not
<br>&gt; get it work. In last two days, Fernando Simon has helped me a lot to solve<br>&gt; this problem, Simon, thank you, I really appreciate it. With his help I<br>&gt; stepped forward to solve this problem, but I still can not get it work.
<br>&gt;<br>&gt; according to Fernando Simon's suggestion I made the test with the command:<br>&gt;<br>&gt; C:\ms4w&gt;<br>&gt; mapserv.exe&quot;QUERY_STRING=localhost/cgi-bin/mapserv.exe?&amp;mode=map&amp;map=C:\ms4w\apps\Demo\OracleTest.map&quot;
<br>&gt; ,<br>&gt;<br>&gt; and I get the map image successfully. In the OracleTest.map mapfile, two<br>&gt; oracle layers are defined, one with native oracle suppport, one with OGR<br>&gt; OCI<br>&gt; interface.<br>&gt;<br>
&gt; tests with the command mapserv -v and ogrinfo --formats indicate that<br>&gt; oracle<br>&gt; spatial and OCI are supported. with the &quot;ogrinfo OCI:XX/XX@XXXX&quot; command<br>&gt; is<br>&gt; also no problem to access the the oracle database, I can even use ogr2ogr
<br>&gt; command to convert the oracle spatial layer to ESRI Shapefile.<br>&gt;<br>&gt; but the problem is, if I am trying to access the oracle spatial database<br>&gt; in<br>&gt; web browse, an Internal Server Error is returned instead of the map image.
<br>&gt; i<br>&gt; really can not figure out what the problem is.<br>&gt;<br>&gt; thanks for any ideas to solve this problem.<br>&gt;<br>&gt; zhonghai<br>&gt;<br><br><br></blockquote></div><br>