wamp 开启 OCI 扩展怎么连接 oracle 报错啊!!!求助大神了!!!

2017-12-01 17:25:33 +08:00
 PerNet

根据这个操作的: http://www.jianshu.com/p/152d45913b76

Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\wamp64\www\1\1.php on line 12 Oracle 连接失败

这个是系统变量:

C:\Users\zgx>echo %path%

C:\instantclient_12_2;c:\app\zgx\product\11.2.0\client_1\bin;C:\oc\product\12.2. 0\client_1\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C: \Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;C:\Windows\system32;C:\W indows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\P rogram Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microso ft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn ;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE ;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Users\zgx\AppData \Local\Programs\Fiddler

PHP 7.19

OCI8 Support enabled OCI8 DTrace Support disabled OCI8 Version 2.1.8 Revision $Id: 8a26cf66ca0f9556b6376408c8f71ead69bdbcbf $ Oracle Run-time Client Library Version 0.0.0.0.0 Oracle Compile-time Instant Client Version 12.1 Directive Local Value Master Value oci8.connection_class no value no value oci8.default_prefetch 100 100 oci8.events Off Off oci8.max_persistent -1 -1 oci8.old_oci_close_semantics Off Off oci8.persistent_timeout -1 -1 oci8.ping_interval 60 60 oci8.privileged_connect Off Off oci8.statement_cache_size 20 20

2436 次点击
所在节点    PHP
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/411202

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX