codeigniter配置oracle数据库连接错误

$db['default']['hostname'] = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=orcl)))';
$db['default']['username'] = 'dbuser';
$db['default']['password'] = 'dbpassword';
$db['default']['database'] = ''; // not used by this Oracle driver
$db['default']['dbdriver'] = 'oci8';


转自:http://tunps.com/codeigniter-oracle-conn-str-config

你可能感兴趣的:(codeigniter配置oracle数据库连接错误)