'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. [C#]获取最近在Windows上所使用的文件

    class RecentlyFileHelper { public static string GetShortcutTargetFile(string shortcutFilename) { var ...

  2. JS自执行函数的几种写法

    一:整体写在一个括号中 代码如下: (function Show(){alert("hello");}()) 二:function函数整体外加括号 代码如下: (function ...

  3. wdcp-apache配置错误导致进程淤积进而内存吃紧

    内存总是越来越少,虚拟内存使用越来越多 首先确定到底是什么占用了大量的内存 可以看到,大部分内存被闲置的httpd进程占用 且当我重启mysql服务后,内存没有出现明显变化,但是当我重启apache时 ...

  4. Python Tutorial 学习(一)--Whetting Your Appetite

    Whetting Your Appetite [吊你的胃口]... 这里就直接原文奉上了... If you do much work on computers, eventually you fin ...

  5. 关于ueditor1.4.3版复制section标签丢失class和style样式问题

    在复制微信的文章格式到ueditor时发现section标签中的style和class属性丢失,严重影响美观. 原文格式,排版清晰段落分明赏心悦目: 复制到ueditor后的格式...这跟原文是没法比 ...

  6. WEB工程数据库相关安装脚本写作

    1. 数据库oracle安装 2. 数据库用户创建,表空间创建,表创建 #!/bin/bash current_path=`pwd` create_tablespace=${current_path} ...

  7. QiQi and Bonds

    只有链接:http://sdu.acmclub.com/index.php?app=problem_title&id=961&problem_id=23685 题意:现在有n个QiQi ...

  8. 查看Ubuntu操作系统位数

    查看系统是32位还是64位 #查看long的位数,返回32或64 getconf LONG_BIT

  9. codeforces Minesweeper 1D

    题意:就是挖地雷,给你一个字符串,‘*’代表地雷,‘1’代表在它的周围有1个地雷,‘2’代表在左右都有个地雷,‘?’代表不确定是不是地雷,可以是1,2,*,问你最后有几种方式确定所有的的地雷. 思路: ...

  10. cf B Bear and Strings

    题意:给你一个字符串,然后找多少区间内含有“bear”,输出数目: #include <cstdio> #include <cstring> #include <algo ...