Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

Conectivity PHP Oracle 9.2

José Javier Benítez
Occasional Visitor

Conectivity PHP Oracle 9.2


I had installed PHP 4.2.3 with Oracle 9i for HP-UX 11i.

After enabling PHP and Oracle extension, i try to execute the function ocilogon() but i am getting the error message specified below:

/*
PHP Warning: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - Can't find path for shared library: libclntsh.sl.8.0 in Unknown on line 0
PHP Warning: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/gd.sl' - Can't find path for shared library: libgd.sl in Unknown on line 0
PHP Warning: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/crack.sl' - Can't find path for shared library: libcrack.sl in Unknown on line 0
PHP Warning: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/zlib.sl' - Can't find path for shared library: libz.sl in Unknown on line 0
*/

it´s not possible to find the shared library: libclntsh.sl.8.0 because not exists. The file in $ORACLE_HOME/rdbms/lib is libclntsh.sl.9.0.

The extension oci8.sl is correct for Oracle 9i or is neccessary to install other extension?

Thanks in advance

Javie
5 REPLIES
Jean-Luc Oudart
Honored Contributor

Re: Conectivity PHP Oracle 9.2

Could that be an environment problem ?
Have you set all the oracle variables correctly before you started ?

http://ie.php.net/manual/en/ref.oci8.php

Regards
Jean-Luc
fiat lux
José Javier Benítez
Occasional Visitor

Re: Conectivity PHP Oracle 9.2


I don´t think so.

My oracle variables are:

export ORACLE_HOME= $ORACLE_HOME
export ORACLE_SID=INTRA
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export SHLIB_PATH=$ORACLE_HOME/lib:$APACHE_PREFIX/php/lib/php/extensions:$SHLIB_
PATH
export LD_PRELOAD=$LD_PRELOAD:$ORACLE_HOME/jdk/jre/lib/PA_RISC/libjava.sl

Regards
Steven E. Protter
Exalted Contributor

Re: Conectivity PHP Oracle 9.2

In the script that starts the database:

make sure the SHLIB_PATH variable is set, exported and includes the directory '/opt/hpws/apache/php/lib/php/extensions/gd.sl' -

Also make sure that hpws has a good install state with the swverify \* command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
José Javier Benítez
Occasional Visitor

Re: Conectivity PHP Oracle 9.2


The SHLIB_PATH variable includes de directory '/opt/hpws/apache/php/lib/php/extensions'

Also hpws has a good install state.

Regards
Stefano Sanguineti
Occasional Visitor

Re: Conectivity PHP Oracle 9.2

Hi,
I've got the same problem..
I'm using Oracle 9i.
Download the latest HP Apache-based web server.
I've configured the oci8 extension.
There is something wrong with the module, I mean...
In the apache log file I can see the message:

PHP Warning: Unknown(): Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - Can't find path for shared library: libclntsh.sl.8.0 in Unknown on line 0

Obvious..I've got libclntsh.sl.9.0!

Has anyone a solution??
Bye
Stefano