Re: 关于php pdo 连接 oracle的 问题

From: Date: Wed, 16 Jan 2008 11:57:40 +0000
Subject: Re: 关于php pdo 连接 oracle的 问题
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5076@lists.php.net to get a copy of this message
I'm sorry, I only speak English, so I'm not sure what you're asking here. Please file a bug report (in English) at http://bugs.php.net --Wez. On Jan 16, 2008, at 5:42 AM, liu_xin wrote:
我写的连接oracle数据库的代码如下: try { $dbh = new PDO('oci:host=hggjtest;dbname=cs', 'hggjv2', 'hggjtest'); print_r($dbh); }catch(PDOException $e){ die("connect oracle error :".$e->getMessage()."<br>"); } 报错信息如下: connect oracle error :SQLSTATE[HY000]: pdo_oci_handle_factory: ORA-12541: TNS:no listener (/root/php-5.2.4/ext/pdo_oci/oci_driver.c:513) 注:用oci_connent可以连接成功


« previous php.pecl.dev (#5076) next »