Entry
Why do we get "Call to undefined function: ora_logon() " while connecting to Oracle with PHP on Unix box?
Jun 7th, 2001 01:46
David Ballester, Haijun Hu, Madhu Sindhuvalli, Haijun
Your php not installed with Oracle support. I had the same problem today
on HP11.
I reinstalled apache and php with oracle configuration
"--with-oracle=/opt/oracle/product/8.0.5".
But now I get "Oracle: Connection Failed: ORA-12154: TNS:could not
resolve service name". I checked connection by SQLPlus and it worked
fine.
Does anyone know how to solve this problem?
Hi:
This is usually rigths problems. Make all oracle tree public availiable
( for test ) making 'chmod -R 777 /<oracle_root>' also in production 644
should work. Made the oracle environment vars public too, adding the
variables definition ( ORACLE_HOME, NLS_LANG, etc... ) from the oracle
user profile in /etc/profile ( all users will load the environment vars
defined in this file, including the httpd owner ).
Hope this help