Re: oci8 DataObject DSN with instant client
| From: | Leo Márquez | Date: | Thu, 06 Oct 2005 07:17:40 +0000 |
| Subject: | Re: oci8 DataObject DSN with instant client | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21255@lists.php.net to get a copy of this message | ||
En/na Justin Patrin ha escrit:
On 10/4/05, Leo Márquez <leo@calidae.net> wrote:I understand the problem but... how can I use the ext driver in a myconfig.ini file and createTables.php? - Salutacions, Leo Márquez [ Enginyeria del Software / Internet ] [ Calidae - www.calidae.com ] [ Himalaya Servers - www.himalayaservers.com ]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 Ok thank you for your answer.