我需要与oracle db建立连接才能调用基于oracle的过程。为了建立连接,我遵循了以下方法。
$db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST
= 172.25.16.140)(PORT = xxxx)))((CONNECT_DATA=
(SERVICE_NAME=xxxx)
(UR=A)))" ;
$db_username = "xxxx";
$db_password = "xxxx";
try{
$conn = new PDO("oci:dbname=".$db,$db_username,$db_password);
}catch(PDOException $e){
echo ($e->getMessage());
}
这给了我错误:
cannot find drivers
任何解决方案将不胜感激:)