thinkphp连接oracle数据库,该怎么处理

WBOY
Release: 2016-06-13 12:14:45
Original
923 people have browsed it

thinkphp连接oracle数据库
我把php.in中的extension=php_oci8.dll前面的注释去掉了,而db.php中的连接串也改了
return array(
'DB_TYPE'=>'Oracle',
'DB_HOST'=>'192.168.22.245',
'DB_PORT'=>'1521',
'DB_NAME'=>'ZHS16GBK.llsoft',
'DB_USER'=>'test',
'DB_PWD'=>'test',
'DB_PREFIX'=>'thinkphp_',
);
可是这样怎么都连接不上。

------解决思路----------------------

引用:
'DB_TYPE'               =>  'oracle',     // 数据库类型
    'DB_HOST'               =>  'localhost', // 服务器地址
    'DB_NAME'               =>  'ORCL',          // 数据库名
    'DB_USER'               =>  '',      // 用户名
    'DB_PWD'                =>  '',          // 密码
    'DB_PORT'               =>  '1521',        // 端口



我的连接上啦
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!