首先在php.ini开启 php_pdo_oci 扩展
php.ini
php_pdo_oci
然后,配置应用的数据库配置文件database.php的type参数为:
database.php
type
'type' => '\think\oracle\Connection',