在本机(环境为:windows、wamp)链接ORACLE时正常,转移到LINUX服务器上测试时异常(环境为:ubuntu 1410 64 ng+php5.6),出错信息为:

发现文件“thinkphp\library\think\db\driver\Oracle.php”的 35行为
$dsn = 'oci:dbname=' . $config['database'];此写法并非是ORACLE的DSN写法,对比TP3.2.3将此行改为:$dsn = 'oci:dbname=//' . $config['hostname'] . ($config['hostport'] ? ':' . $config['hostport'] : '') . '/' . $config['database'];问题解决。请官方修正,多谢。
最佳答案