Click to See Complete Forum and Search --> : help (apache+php+oracle on winnt)


Anon
10-21-2000, 01:51 AM
I setup Apache+php4.0.3,but OCILogin
("usernae@tnsname","pwd") can not connect to
Oracle8 remote server(on hp k370). I test
tns by net8 easy config and it works.In
errorlog,host address,username, all is wrong.
why? Is it that php can't connect to remote
Oracle server? I found that you must
configure "oracle_home" in linux install
readme,Does it mean that I must install oracle on local?
please tell me why and how to do. thanks
very much.

Anon
10-21-2000, 07:25 AM
>I must install oracle on local?
please tell me why and how to do. thanks

NO, YOU MUST INSTALL JUST ORACLE CLIENT PACKAGES ON YOUR WEB SERVER MACHINE:

ORACLE TCP/IP Adapter
ORACLE TCP/IP protocol adapter
ORACLE Trace Collection Services
Required Support Files
SQL Net Client
System Support Files
Tool Utilities

Anon
10-22-2000, 01:53 AM
No, having the client libraries is OK too, you just need to make sure

1. Your php_oci8.dll was compiled for your platform, and that you have it in the right path. Looks like you are on Linux so it should work right if you just get the stuff from www.php.net.

2. Also, try it this way
OCILogon($user, $pass, $host)

instead of
OCILogon($user@host, $pass)

Hope this helps
Shanx