Re: oci8 DataObject DSN with instant client
| From: | Justin Patrin | Date: | Wed, 05 Oct 2005 18:49:47 +0000 |
| Subject: | Re: oci8 DataObject DSN with instant client | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21251@lists.php.net to get a copy of this message | ||
On 10/4/05, Leo Márquez <leo@calidae.net> wrote:
> Hi!,
>
> I have a server with php 5.0.5 with OCI8 Instant client Support.
> I have tried to connect to a remote oracle instance but I don't know
> exactly how the dsn syntax must be:
>
> oci8://user:password@host:1521/instance don't work for me
> oci8://user:password@host/instance don't work either
>
> Using oracle instant client I don't have tnsnames.ora file.
> Anyone has tested this environtment?
>
Don't have it meaning that it is not needed (Instant client
"automatically" figures it out somehow?) or that you haven't created
one? In my experience with Oracle you always have to do some fudging
to make it connect properly as it doesn't follow normal DSN-like
rules. I use an extended oci8 driver which automatically munges my
hostspec into something that works for me.
http://pear.reversefold.com/oci8ext.phps
This may not quite work for you (try it and see, of course) but it
should be easily changeable to work with your setup.
--
Justin Patrin