|
CI3.0框架使用oci8连接oracle数据库,提示错误:
A PHP Error was encountered Severity: Notice
Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS'
Filename: database/DB.php
Line Number: 181
Fatal error: Call to undefined function oci_connect() in D:\wamp\www\ci_test\system\database\drivers\oci8\oci8_driver.php on line 239
一直没有找到解决办法,大虾们路过帮忙瞧一瞧哈。。。
我的配置文件:
$db ['default'] = array (
'dsn' => '',
'hostname' => '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.10)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ordb)))',
'username' => 'test',
'password' => 'test',
'database' => '',
'dbdriver' => 'oci8',
'dbprefix' => 'q_',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => 'q_',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array (),
'save_queries' => TRUE
); |
|