Re: MDB2 DSN and Oracle

From: Date: Fri, 01 Sep 2006 17:22:13 +0000
Subject: Re: MDB2 DSN and Oracle
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25047@lists.php.net to get a copy of this message
Jeff Loiselle wrote:
In order for me to connect to my Oracle server, I have to supply a funky DSN. I have to put the name of my database in the hostspec. This is the only way it will connect. Being that it connected, it wasn't really bothering me. However, if I want to use MDB2_Schema, the method getDefinitionFromDatabase() checks for $this->db->database_name... but it's not there. When I hacked it to read from hostspec, I was able to get a schema dump.
Oracle does not have the concept of a database in the sense that MySQL etc have. For this reason MDB2 by default emulates this concept by using the database name as the username when it does a connect. If you do not define a database name or if you disable "emulate_database" option it will use the username as defined in the DSN. regards, Lukas

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