webman-php/think-orm 连接oracle报错 求助

w353825

已经安装了oci8

截图
think\db\exception\PDOException: could not find driver in /home/webman/vendor/topthink/think-orm/src/db/PDOConnection.php:836
Stack trace:
/home/webman/vendor/topthink/think-orm/src/db/connector/Oracle.php(59): think\db\PDOConnection->getPDOStatement()
/home/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(438): think\db\connector\Oracle->getFields()
/home/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(376): think\db\PDOConnection->getTableFieldsInfo()
/home/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(424): think\db\PDOConnection->getSchemaInfo()
/home/webman/vendor/topthink/think-orm/src/db/PDOConnection.php(476): think\db\PDOConnection->getTableInfo()
/home/webman/vendor/topthink/think-orm/src/db/Query.php(325): think\db\PDOConnection->getPk()
/home/webman/vendor/topthink/think-orm/src/db/concern/WhereQuery.php(43): think\db\Query->getPk()
/home/webman/app/controller/IndexController.php(67): think\db\BaseQuery->where()
/home/webman/vendor/workerman/webman-framework/src/App.php(319): app\controller\IndexController->oracle()
/home/webman/vendor/workerman/webman-framework/src/App.php(141): Webman\App::Webman{closure}()
/home/webman/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage()
/home/webman/vendor/workerman/workerman/Events/Select.php(311): Workerman\Connection\TcpConnection->baseRead()
/home/webman/vendor/workerman/workerman/Worker.php(1629): Workerman\Events\Select->loop()
/home/webman/vendor/workerman/workerman/Worker.php(1423): Workerman\Worker::forkOneWorkerForLinux()
/home/webman/vendor/workerman/workerman/Worker.php(1397): Workerman\Worker::forkWorkersForLinux()
/home/webman/vendor/workerman/workerman/Worker.php(560): Workerman\Worker::forkWorkers()
/home/webman/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\Worker::runAll()
/home/webman/start.php(4): support\App::run()
{main}

845 1 0
1个回答

kangyu

看一下pdo_oci这个在phpini里面开没开启
截图

  • 暂无评论
年代过于久远,无法发表回答
×
🔝