Re: MDB2 with oci8 DSN
| From: | Lorenzo Alberton | Date: | Fri, 26 Sep 2008 11:16:47 +0000 |
| Subject: | Re: MDB2 with oci8 DSN | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29298@lists.php.net to get a copy of this message | ||
Ryan Taylor wrote:
I'm having trouble connecting to am oracle database using MDB2. I've installed oci8 extension for PHP and think that is working. I've also installed the MDB2_Driver_oci8.try with the array syntax, it's safer: $dsn = array(
'phptype' => 'oci8',
'hostspec' => '//localhost/XE',
'username' => 'hr',
'password' => 'oracle',
//'hostspec' => '127.0.0.1:1521',
);
or
//oracle's "Easy Connect" syntax (Oracle 10g)
$dsn = array (
'phptype' => 'oci8',
'dbsyntax' => 'oci8',
'username' => 'XXXX',
'password' => 'YYY',
'protocol' => 'tcp',
'hostspec' => '//localhost/XE',
'service' => 'servicename',
'port' => false,
'socket' => false,
'database' => false,
'mode' => false,
);
HTH
Cheers,
--
Lorenzo Alberton
http://pear.php.net/user/quipo
________________________________________________________________________
Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza
canone, 2 e-mail da 50 Mb, 150 Mb di spazio web e molto di più!
Registrati gratis: http://www.quipo.it