Hi gurus.
Please help me. This is diven me mad.
My history.
I am trying to configure OCI8 support for connecting with an Oracle8/NT
server from php4/apache/linux.
I had PHP running OK with Informix connection.
I installed Oracle 8.1.7 client for linux and I am able to connect to
the server via sqlplus (select, insert, etc works great).
My configuration.
This is my configure command:
./configure --prefix=/usr/local \
--with-apache=../apache_1.3.12 \
--enable-track-vars --enable-trans-sid \
--with-informix=/opt/informix \
--with-oci8=/home/oracle/OraHome
And, with other things, the command output gives me the following:
...
checking for Oracle-OCI8 support... yes
checking Oracle Install-Dir... /home/oracle/OraHome
+--------------------------------------------------------------------+
| Notice: |
| If you encounter <defunc> processes when using a local Oracle-DB |
| please recompile PHP and specify --enable-sigchild when configuring|
| (This problem has been reported un Linux using Oracle >= 8.1.5) |
+--------------------------------------------------------------------+
checking Oracle version... 8.1
.
.
.
checking for Oracle-ORACLE support...
no
...
My doubts
Viewing phpinfo()'s output, i've found some extrange things.
Configure Command './configure' '--with-apache=../apache_1.3.12'
'--prefix=/usr/local'
'--with-informix=/opt/informix'
What happenned the other "withs" and "enables"?
oracle
Oracle Support enabled
Oracle Version 8.1
Compile-time ORACLE_HOME /home/oracle/OraHome
Libraries Used
Why "Libraries Used" is empty? It is normal?
My Headache.
I have the following ocilogon.php script (the names are changed... but
using the same that connects ok from sqlplus)
<?
$conn = OCILogon("user","password","connstr");
if ($conn)
{
echo "connected";
}
else
{
echo "not connected";
}
?>
it gives me the following error.
Fatal error: Call to undefined function: ocilogon() in
/home/httpd/html/ocilogon.php on line 2
And changing for the ORA function (just guessing)
$conn = ORA_Logon("user/password@connstr","");
It gives me the following error.
Warning: Oracle: Connection Failed: Error while trying to retrieve text
for error ORA-12541 in /home/httpd/html/ocilogon.php on line 2
not connected.
This is a brief history of my sad life. Please help this desperate
person.
Thanx a lot in advance.
Marko.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]