Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Running Pro*C applications as CGI scripts...
Mick McRae wrote:
>
> You need to edit the httpd.conf Apache configuration file.
> Put the following entries in this file and then re-start your web server
>
> SetEnv ORACLE_HOME /opt/app/oracle......whatever it is
> SetEnv ORACLE_SID PROD (whatever your sid is)
> SetEnv LD_LIBRARY_PATH /opt/app/oracle/......./lib
>
Or within your program, you can add the code before any oracle operation
putenv("ORACLE_HOME=/u01/app/oracle/product/8.0.3"); putenv("ORACLE_SID=ora8");
man setenv for more information...
Eric DANTIE Received on Mon Dec 28 1998 - 00:00:00 CST