Heim  >  Artikel  >  Backend-Entwicklung  >  php 不安装oracle客户端,怎么连接本地oracle服务器

php 不安装oracle客户端,怎么连接本地oracle服务器

WBOY
WBOYOriginal
2016-06-06 20:39:07959Durchsuche

最近window开发遇到一个问题,我们需要用到oracle,而用oracle需要安装oracle客户端,
但是,在自己电脑上安装oracle的话太大了,也耗时,不如直接使用本地测试的服务器。

想请教大神需要如何配置!?

我的php版本是5.6,php/ext 的 php_oci 和 php_pdo_oci 都存在,也下载了一个oci.dll 到windows/system32,运行phpinfo 是OK的,但是连接本地服务器的时候就报错了。。。

php 不安装oracle客户端,怎么连接本地oracle服务器

回复内容:

最近window开发遇到一个问题,我们需要用到oracle,而用oracle需要安装oracle客户端,
但是,在自己电脑上安装oracle的话太大了,也耗时,不如直接使用本地测试的服务器。

想请教大神需要如何配置!?

我的php版本是5.6,php/ext 的 php_oci 和 php_pdo_oci 都存在,也下载了一个oci.dll 到windows/system32,运行phpinfo 是OK的,但是连接本地服务器的时候就报错了。。。

php 不安装oracle客户端,怎么连接本地oracle服务器

不用装完整的ORACLE,装个ORACLE客户端就行啦。
ORACLE客户端是必须装的,否则不可能有方法。
Ora10InstantClient 最多不超过100M

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn