OCIEnvNlsCreate() failed. When i try to connect my oracle database in php

前端 未结 5 487
旧时难觅i
旧时难觅i 2021-01-22 06:27

phpinfo

_ENV[\"ORACLE_HOME\"] C:\\oracle\\instantclient_11_2\\
_ENV[\"OS\"]  Windows_NT
_ENV[\"Path\"]    C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32         


        
相关标签:
5条回答
  • 2021-01-22 07:07

    Probably you should download InstantClient and replace contents of /instantclient folder of Oracle client with the .dll-s of InstantClient.

    0 讨论(0)
  • 2021-01-22 07:10

    https://forums.oracle.com/forums/message.jspa?messageID=1742926#1745145

    There are several potential solutions on that page ranging from re-installing xampp to checking permissions to using native php oci_connect(). Have you tried any of these things?

    0 讨论(0)
  • 2021-01-22 07:20

    I solved it copying all the content of C:\instantclient_11_2 (please check what´s yours) inside system and system32 folders in Windows , then I delete the path of C:\instantclient_11_2 in the PATH enviroment variable.

    I am using XAMPP and Windows 8 and it´s the first time I see this issue. I always configured properly oci 8 with xampp and windows in a few minutes. I hope this would help you.

    0 讨论(0)
  • 2021-01-22 07:22

    You need to copy all content of the instant client to apache/bin

    im using xampp and working for me.

    copy all files of the instant client enter image description here to apache/bin

    0 讨论(0)
  • 2021-01-22 07:28

    I was facing the same error on uwamp 3 in connecting to oracle 11gR2.

    I deleted the oracle instantclient from path variable and copied all files from instantclient to uwamp\bin\apache\bin

    and it worked.

    My setup:

    • System: Windows 7
    • Instantclient: instantclient-basiclite-win32-11.1.0.7.0
    • Web Server: Uwamp3
    0 讨论(0)
提交回复
热议问题