Re: ocilogon
| From: | William Lovaton | Date: | Tue, 30 Mar 2004 22:04:04 +0000 |
| Subject: | Re: ocilogon | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181865@lists.php.net to get a copy of this message | ||
You need the Oracle cliente libraries installed where you have PHP for
this to work.
the third parameter in OCILogon() is the connection string configured in
tnsnames.ora ($ORACLE_HOME/network/admin)
Let's say that you make connection to Oracle using sqlplus:
User: scott
pass: tiger
dbstring: test
this in PHP would be: $conn = OCILogon("scott", "tiger", "test");
-William
El mar, 30-03-2004 a las 15:52, Adam Williams escribió:
> Hi, what is the syntax for using ocilogon() to connect to a remote server?
> The remote server's name is zed.mdah.state.ms.us (ip is 10.8.5.4) and the
> database is zed.aleph0. Locally on zed I can do
> ociogon("user","pw","zed.alpeh0") and connect fine, but on a
> remote server
> I try ociogon("user","pw","zed.alpeh0@10.8.5.4") but it errors
> out with an
> oci_open_server error. I tried going to www.php.net/ocilogon but the page
> doesn't exist, so does anyone know how the proper connect line to
> connect to a remote server that runs oracle? Thanks!