'DB_TYPE'            => 'pdo', // 数据库类型
'DB_USER' => 'user101', // username
'DB_PWD' => 'zb~!@#$%', // password
'DB_PREFIX' => 'TB_', // 数据库表前缀
'DB_DSN' => 'oci:dbname=127.0.0.1:1158/orcl;charset=utf8',

ThinkPHP 3.2.2 连接Oracle 的配置写法。结果提示内容:

因为眼下PDO临时不能完美支持OCI 请使用官方的OCI驱动

错误位置

FILE: D:\PC\zbphp.com\ThinkPHP\Library\Think\Db\Driver\Pdo.class.php  LINE: 61

TRACE

#0 D:\PC\zbphp.com\ThinkPHP\Library\Think\Db\Driver\Pdo.class.php(61): E('\xE7\x94\xB1\xE4\xBA\x8E\xE7\x9B\xAE\xE5\x89\x8DPDO...')

#1 D:\PC\zbphp.com\ThinkPHP\Library\Think\Db.class.php(166): Think\Db\Driver\Pdo->connect()

#2 D:\PC\zbphp.com\ThinkPHP\Library\Think\Db\Driver\Pdo.class.php(244): Think\Db->initConnect(true)

#3 D:\PC\zbphp.com\ThinkPHP\Library\Think\Model.class.php(130): Think\Db\Driver\Pdo->getFields('tb_base_game')

#4 D:\PC\zbphp.com\ThinkPHP\Library\Think\Model.class.php(118): Think\Model->flush()

#5 D:\PC\zbphp.com\ThinkPHP\Library\Think\Model.class.php(1298): Think\Model->_checkTableInfo()

#6 D:\PC\zbphp.com\ThinkPHP\Library\Think\Model.class.php(95): Think\Model->db(0, '', true)

#7 D:\PC\zbphp.com\ThinkPHP\Common\functions.php(554): Think\Model->__construct('BaseGame', '', '')

#8 D:\PC\zbphp.com\Application\Home\Controller\IndexController.class.php(8): M('BaseGame')

#9 [internal function]: Home\Controller\IndexController->index()

#10 D:\PC\zbphp.com\ThinkPHP\Library\Think\App.class.php(155): ReflectionMethod->invoke(Object(Home\Controller\IndexController))

#11 D:\PC\zbphp.com\ThinkPHP\Library\Think\App.class.php(193): Think\App::exec()

#12 D:\PC\zbphp.com\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()

#13 D:\PC\zbphp.com\ThinkPHP\ThinkPHP.php(96): Think\Think::start()

#14 D:\PC\zbphp.com\index.php(24): require('D:\\PC\\zbphp.com...')

#15 {main}

( by default7#zbphp.com )

ThinkPHP pdo连接Oracle的配置写法,提示报错的更多相关文章

  1. ThinkPHP 连接Oracle的配置写法,(使用Oci扩展而非PDO的写法)

    測试了非常多遍,TP官网根本就没有给出正确的写法,并且网上搜索到的全都是错误的. 跟踪代码.终于找出了正确的配置写法,备份例如以下.(by default7#zbphp.com) 'DB_TYPE' ...

  2. 运行连接Oracle数据库时,Idea报错: Error : java 不支持发行版本5

    按照上面的截图步骤,一步步往下走,再运行程序时就不会报错了. 原文链接:https://blog.csdn.net/qq_22076345/article/details/82392236 感谢原文作 ...

  3. PLSQL Develope连接oracle数据库配置

    首先我们在讲PLSQL Develope连接oracle数据库配置之前,先讲下如果不用PLSQL Develope连接oracle数据库,那该怎么办,那就是在本机安装oracle数据库,不过这个对于配 ...

  4. Oracle中建立物化视图报错

    Oracle中建立物化视图报错 今天在建立视图的时候,报了一个错:ORA-01723: zero-length columns are not allowed. 建视图的语句: create mate ...

  5. 不知道哪里alert undefined 用下面的语句是js报错.F12能提示报错的地方window.alert=function(aa){ if (typeof (aa)"undefined"){ throw "就是这";}};

    不知道哪里alert undefined 用下面的语句是js报错.F12能提示报错的地方 var oldalert=window.alert; window.alert=function(aa){ i ...

  6. 【Mac 10.13.0】安装 libimobiledevice,提示报错:warning: unable to access '/Users/lucky/.config/git/attributes': Permission denied解决方案

    打开终端,执行命令: 1.sudo chown -R XXX /usr/local  (XXX表示当前用户名) 2.ruby -e "$(curl -fsSL https://raw.git ...

  7. egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; consider upgrading MySQL client

    egg 连接 mysql 的 docker 容器,报错:Client does not support authentication protocol requested by server; con ...

  8. AndroidStudio导入开源项目提示报错:Gradle sync failed: SSL peer shut down incorrectly

    问题描述: AndroidStudio导入开源项目提示报错:Gradle sync failed: SSL peer shut down incorrectly (1 m 12 s 92 ms) 解决 ...

  9. 配置MySQL主从复制报错Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work

    配置MySQL主从复制报错 ``` Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave ha ...

随机推荐

  1. 响应式设计的5个CSS实用技巧

    正如我在教程响应式Web设计三步走当中所讲的,响应式的Web设计其实并不难,但是要让元素在布局切换时能够平滑过渡就比较考验技巧了.现在我分享在编码时常用的五个CSS技巧并举例说明.这些技巧都是使用简单 ...

  2. yii框架的foreach 已经优化好了,可以“$user_model->attributes=$_POST['Admin'];”

    yii框架的foreach 已经优化好了, 以前我们遍历数组的时候是用foreach循环 foreach ( as $key=>$value){                    $user ...

  3. ueditor的过滤、转义、格式丢失问题

    1. 过滤 http://www.cnblogs.com/Olive116/p/3464495.html 2. 转义 http://segmentfault.com/q/101000000048928 ...

  4. 那些年被我坑过的Python——第十章Broker(rabbitMQ/redis)

    基于RabbitMQ的direct任务驱动异步RPC程序实现: RPC_dispatcher指令分发器: #!/usr/bin/env python # -*- coding:utf-8 -*- __ ...

  5. Python Tutorial 学习(四)--More Control Flow Tools

    4.1 if 表达式 作为最为人熟知的if.你肯定对这样的一些表达式不感到陌生: >>> x = int(raw_input("Please enter an intege ...

  6. nth_element学习

    今天学习到STL中的nth_element,她是一个默认能求第k小的数的方法,需要的头文件为algorithm. 默认为:nth_element(start, start+n, end) 使第n大元素 ...

  7. 老oj3444 && Pku3241 Object Clustering

    Description We have N (N ≤ 10000) objects, and wish to classify them into several groups by judgemen ...

  8. 转:2014 年 15 款新评定的最佳 PHP 框架

    原文来自于:http://blog.jobbole.com/59999/ 原文出处: codegeekz   译文出处:oschina   欢迎分享原创到伯乐头条 通常,框架都会被认为是帮助开发者快速 ...

  9. 用nodejs,express,ejs,mongo,extjs实现了简单了网站后台管理系统

    源代码下载地址:http://download.csdn.net/detail/guoyongrong/6498611 这个系统其实是出于学习nodejs的目的而改写的系统. 原来的系统前端使用了ex ...

  10. VS快捷键和技巧

    1. 怎样调整代码排版的格式? 选择:编辑->高级->设置文档的格式或编辑->高级->设置选中代码的格式. 格式化cs代码:Ctrl+k+f 格式化aspx代码:Ctrl+k+ ...