Re: oci8 DataObject DSN with instant client

From: Date: Thu, 06 Oct 2005 16:34:56 +0000
Subject: Re: oci8 DataObject DSN with instant client
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21264@lists.php.net to get a copy of this message
On 10/6/05, Leo Márquez <leo@calidae.net> wrote: > Hi again, more info... > > >>> > >> > >> > >> 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 > >> > > Ok thank you for your answer. > > I understand the problem but... how can I use the ext driver in a > > myconfig.ini file and createTables.php? > > > I'm tried to set a dsn with this driver. Firt I have copied the > oci8ext.php file in the DB directory with the other drivers. > Next I have putted this dsn in myconfig.ini: > > oci8ext://user:passwd@host/sid > > With the result: connect failed. > First make sure that the file got included ok (looks like it did). Next you need to look at how your other clients are connecting to oracle. Likely my solution doesn't work for you because you're set up differently. Sorry, I don't have any other info for you, I didn't *create* that connection string, I'm just using it. :-| -- Justin Patrin

« previous php.pear.general (#21264) next »