#37110 [NEW]: Docs for PDO_OCI DSN

From: Date: Mon, 17 Apr 2006 19:03:46 +0000
Subject: #37110 [NEW]: Docs for PDO_OCI DSN
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95894@lists.php.net to get a copy of this message
From: crescentfreshpot at yahoo dot com Operating system: Irrelevant PHP version: 5.1.2 PHP Bug Type: PDO related Bug description: Docs for PDO_OCI DSN Description: ------------ The docs state "If you are connecting to a database defined in tnsnames.ora, append the name of the database to the DSN prefix and your DSN is complete." However on php 5.1.2 i've had to append 'dbname=' first to get it to work. E.g. (my database name is 'prod'): <?php // should work according to docs but fails $dbh = new PDO('oci:prod', 'user', 'pass'); /* fails with ORA-12560: TNS:protocol adapter error */ // This works: $dbh = new PDO('oci:dbname=prod', 'user', 'pass'); ?> -- Edit bug report at http://bugs.php.net/?id=37110&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37110&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37110&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37110&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37110&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37110&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37110&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37110&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37110&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37110&r=support Expected behavior: http://bugs.php.net/fix.php?id=37110&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37110&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37110&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37110&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37110&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37110&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37110&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37110&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37110&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37110&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37110&r=mysqlcfg

« previous php.bugs (#95894) next »