|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-17 19:04 UTC] crescentfreshpot at yahoo dot com
[2006-04-17 19:06 UTC] crescentfreshpot at yahoo dot com
[2006-04-26 12:32 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 21:00:02 2026 UTC |
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'); ?>