duanfu1945 2015-01-10 10:37
浏览 58

Laravel不与Oracle联系

I'm using yajra/laravel-oci8 for Oracle connection with laravel. But I couldn't connected to Oracle, from my client PC to Server.

showing this error: enter image description here

I'm using this code in database.php:

'oracle' => array(
       'driver' => 'oracle',
       'host' => '192.168.152.189',// this is my server IP
       'port' => '1521',
       'database' => 'ocp',
       'username' => 'ocpl',
       'password' => '123456',
       'charset' => 'AL32UTF8',
       'prefix' => '',
       'port' => 1521
  ),

But I'm connected with Sql Developer. see the Sql-Developer Property: enter image description here

  • 写回答

3条回答 默认 最新

  • doutucui0133 2015-07-10 00:08
    关注

    problem in this line : 'database' => 'ocp' , solve it with : 'database' => 'orcl' , or

    'database' => '192.168.152.189/orcl'

    评论

报告相同问题?

悬赏问题

  • ¥50 随机森林与房贷信用风险模型
  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备