Oracle 11.1.0.7 and WAMP oci_connect failure

后端 未结 2 815
我在风中等你
我在风中等你 2021-01-20 15:11

I\'m trying to configure a simple connection between my local WAMP server and some Oracle 11.1.0.7 I have. Apparently PHP has all sorts of solutions and magic situations whe

2条回答
  •  半阙折子戏
    2021-01-20 16:13

    Looking at your configuration, you have both the Oracle Client and the Oracle Instant Client installed:

    Oracle Run-time Client Library Version  10.2.0.1.0
    Oracle Instant Client Version   11.2
    

    However, my experience is that PHP will only use one or the other - basically, whichever set of libraries is found first will get used. Since you can connect fine to Oracle 10g, but not to 11g, that suggests that the 10g Client Library is "higher" in your path than the Instant Client libraries.

    Two options I'd suggest exploring:

    1. Install the full Oracle 11g Client
    2. Specifically alter your path to ensure that the Instant Client libraries are found first - making sure, of course, that you are impacting the effective path used by PHP, not just a PATH variable in a separate context...

    I've never actually got PHP to work correctly with the Instant Client - I gave up and installed the full client - so my personal recommendation is option 1, but if that's not practical in your environment, work with the PATH first.

提交回复
热议问题