打开phpinfo , 查看是否开启OCI8 , 正常情况如下图

php 连接oracle 提示could not find driver

如果没有出现OCI8 , 可能的原因有:

  1. 没有安装oracle客户端
    下载对应版本的Oracle Instant Client , 将其解压到 D:\instantclient_11_2 (非固定位置)
    并将该路径加入到系统PATH环境变量的最前面 , 重启电脑 , 查看phpinfo()即可看到OCI8
    php 连接oracle 提示could not find driver
  2. 没有开启php.ini中的扩展,需要开启以下三个扩展
    php 连接oracle 提示could not find driver

相关文章:

  • 2022-12-23
  • 2018-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2021-07-15
  • 2021-08-22
  • 2021-08-22
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案