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

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


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.


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


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