PDO
PDO support enabled
PDO drivers mysql, oci, sqlite 已开启
oci8
OCI8 Support enabled
Version 1.2.5
Revision $Revision: 1.269.2.16.2.44 $
Active Persistent Connections 0
Active Connections 0
Temporary Lob support enabled
Collections support enabled 已开启
测试:
$dbh = new PDO(‘oci:dbname=//192.168.1.118:1521/XE’, ‘Center’, ‘simon’);
可以连接 可以查询
yii db 配置
‘connectionString’=>‘oci:dbname=//192.168.1.118:1521/XE’,
‘username’=>‘Center’,
‘password’=>‘simon’,
创建 model user
提示
exception ‘CDbException’ with message 'CDbConnection failed to open the DB conne
ction: could not find driver’ in E:\wamp\www\yii7\framework\db\CDbConnection.php
:248
php日志提示
[05-Nov-2009 11:46:53] PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) ‘php_pdo_oci8.dll’ in Unknown on line 0
请各位帮忙?oracle服务器是10G