MDB2 DSN and Oracle
| From: | Jeff Loiselle | Date: | Fri, 01 Sep 2006 17:09:24 +0000 |
| Subject: | MDB2 DSN and Oracle | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25044@lists.php.net to get a copy of this message | ||
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.
So my question is, am I doing something wrong? Are my tnsnames setup
wrong or something? Or is the MDB2 DSN parser that as smart as it
should be?
$dsn = array(
'phptype' => 'oci8',
'dbsyntax' => false,
'username' => 'username',
'password' => 'password',
'protocol' => false,
'hostspec' => 'databasename',
'port' => false,'socket' => false, 'database' => '', 'new_ink' => false, ); --- Jeff Loiselle Web Developer The NewNewMedia Group http://www.newnewmedia.com