<div dir="ltr">Am running Oracle10g on the server, I do OCI connection from php/apache to my DB 10g<br>so how would you insert the values to apache... <br><br><div class="gmail_quote">On Tue, Aug 26, 2008 at 9:18 AM, John R Pierce <span dir="ltr"><<a href="mailto:pierce@hogranch.com">pierce@hogranch.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Mad Unix wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How can I pass the following Oracle 10g variables to my apache?<br>
<br>
ORACLE_BASE=/u01/oracle<br>
ORACLE_HOME=/u01/oracle/10g<br>
ORACLE_SID=king<br>
LD_LIBRARY_PATH=$ORACLE_HOME/lib<br>
LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32<br>
PATH=$PATH:$ORACLE_HOME/bin<br>
NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG<br>
NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT<br>
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32 PATH<br>
<br>
<br>
I start my apache through service httpd start...<br>
[root@king script]# ps -ef | grep apache<br>
apache   28494 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start<br>
apache   28495 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start<br>
apache   28496 15315  0 04:02 ?        00:00:00 /usr/sbin/httpd -k start<br>
apache   28497 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start<br>
apache   28499 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start<br>
apache   28500 15315  0 04:02 ?        00:00:01 /usr/sbin/httpd -k start<br>
apache   28502 15315  0 04:02 ?        00:00:00 /usr/sbin/httpd -k start<br>
apache   28503 15315  0 04:02 ?        00:00:00 /usr/sbin/httpd -k start<br>
root     31178 16299  0 08:36 pts/2    00:00:00 grep apache<br>
</blockquote>
<br></div>
you would put those variable assignments in the front of /etc/init.d/httpd  ...<br>
<br>
but why would/should Apache care about your Oracle server?<br>
<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org" target="_blank">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Madunix_at_Gmail<br>Sysadmin<br><br>"Computers are useless. They can only give you answers" - Pablo Picasso<br>"Never trust a computer you can't throw out a window." - Steve Wozniak <br>

</div>