I have spended almost 4days...Still don't get the way to solve it.
Please help me...
I would like to connect to Oracle database-11g through Laravel 5.7.1
I have created the Environment Variables for Path- C:\instantclient_12_2 and TNS_ADMIN- C:\instantclient_12_2 as well,
put the php_oci8-2.1.8-7.2-ts-vc15-x64 file in xampp/php/ext and
added the extensions in PHP.ini
[Oracle_10]
extension=php_oci8.dll
[Oracle_11g]
extension=php_oci8_11g.dll
[Oracle_12c]
extension=php_oci8_12c.dll
Tried to install Instant Client for Wins 64-bits or 32-bits/18.3 or 12.2 still can't not loaded the php_oci8-2.1.8-7.2-ts-vc15-x64.
What's the problem?
My computer config:
Win7 Sp1-64Bit PHP 7.2.1 XAMPP v3.22
we face a big problem to connect oracle server in php What i done
Setp 1:
Install Windows 7 32bit
Step 2 :
install XAMPP 32 [ Includes: Apache 2.4.29, PHP 7.1.11, phpMyAdmin 4.7.4, OpenSSL 1.0.2, XAMPP Control Panel 3.2.2]
Step :
Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications Download instantclient-basic-nt-12.2.0.1.0.zip and extract it into c drive with instantclient_12_2 name
Step 5:
Set environment in path "c:\instantclient_12_2"
Step 6:
Edit php.ini file and enable extension=php_oci8_12c.dll [By removing semicolon ] from front
Step 7 :
Restart my apache server , after that when i check phpinfo[] it not showing any oci8 module
Then i check my error log i see this
[30-Nov-2017 13:42:43 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8_12c.dll' - The specified procedure could not be found.
Can any one help me how to resolve this issue ,
Thanks in advance , and sorry for my English.
asked Nov 30, 2017 at 13:57
On the
Instant Client download page, the next line after the download link for instantclient-basic-nt-12.2.0.1.0.zip
states:
The 12.2 Basic package requires the Microsoft Visual Studio 2013 Redistributable.
As you haven't listed that in what you've tried, installing it should be your next step.
You should also reboot to ensure that your changes to the environment PATH are applied system wide [e.g. to the Apache service].
answered Dec 1, 2017 at 10:12
5
I've come with a solution.
copy oci.dll
, oraociei12.dll
, and oraons.dll
to apache/bin
folder and replace the existing one.
answered Apr 8, 2019 at 3:00
1
Not the answer you're looking for? Browse other questions tagged php oracle apache oracle11g oci8 or ask your own question.
Unable to load dynamic library 'php_oci8_12c.dll' | |||||||
2020-07-03 12:07 UTC | Modified:2020-07-15 06:07 UTC |
| |||||
thomas dot wiedmann at laek-bw dot de | Assigned:cmb [profile] | ||||||
Not a bug | Package:Oracle related | ||||||
7.4.7 | OS:Windows NT 10.0 build 14393 | ||||||
No | CVE-ID:None |
Patches
Add a Patch
Pull Requests
Add a Pull Request
History
AllCommentsChangesGit/SVN commitsRelated reports