Ok,
I have yanked my hair out long enough, and need help. Anybody, please.
Here is my situation.
I have PHP5 running on a Redhat 8 box with Apache2 w/ssl. I need to connect to a working remote Oracle 9i machine running windows 2k.
So, on the linux box I installed the Oracle 9i client and OCI. I can tnsping the remote server fine. I can even sqlplus to the remote server fine. However, in PHP5 I get the error
Error while trying to retrieve text for error ORA-12541 in .......
I have the following env vars:
export ORACLE_HOME=/home/oracle/product/9.0.1
export ORACLE_BASE=/home/oracle
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_TERM=xterm
export ORACLE_SID=RAPPY
export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/java/bin
export TNS_ADMIN=$ORACLE_HOME/network/admin
export TWO_TASK=$ORACLE_HOME/network/admin/tnsnames.ora
export LD_PRELOAD=/home/oracle/product/9.0.1/lib/libclntsh.so.9.0
These vars were also set while compiling PHP and are also in the apache startup script.
I have tried everything I can think of and am google'd out, please anyone with any ideas are certainly welcome.
Also, my tnsnames.ora looks like this:
RAPPY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xx.xxx.xx)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = RAPPY)
)
Of course there is an IP where the x's are.
)
Thanks!
Jim