且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法使用PDO连接到Oracle

更新时间:2022-11-05 17:21:19

检查已安装的驱动程序,并查看是否已安装oci:

Check your installed drivers and see if oci is installed:

foreach(PDO::getAvailableDrivers() as $driver)
    echo $driver, '\n';

如果未显示oci,则需要安装它( http ://php.net/manual/en/ref.pdo-oci.php )

If oci don't shown, then need to install it (http://php.net/manual/en/ref.pdo-oci.php)