Re: Connect to oracle on another host
| From: | Philippe Saladin | Date: | Wed, 02 Oct 2002 09:13:00 +0000 |
| Subject: | Re: Connect to oracle on another host | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118563@lists.php.net to get a copy of this message | ||
> I've been writing PHP scripts for a long time but never needed to get data
> from an Oracle database. Till now.
- First, you need php compile with --oci
- Then, you have to install the "oracle client".
Note : you can't find the "oracle client" alone. you need to download the
entire oracle (500Mb !!) at
http://otn.oracle.com/software/products/oracle8i/content.html
and then
choose in the setup to install the oracle client.
After that, it would be possible to connect your remote oracle with
ocilogon($username, $pw, $host).
> host (e.g. somewhere.somewhere.com)
Note that I'm dubitative about your example. host is normally a string you
should see in the oracle file tnsnames.ora. I've never seen a "host" oracle
variable as an url ??
Hope it will help you
Regards,
Phlippe