PHP 5.3.1 not loading php_oci8.dll on Windows - windows

I'm trying to load the oracle extension on php but im having the error:
Warning: PHP Startup: Unable to load dynamic library 'D:\Program Files\xampp\php\ext\php_oci8.dll' - The specified procedure could not be found.
in Unknown on line 0
I have done so far:
Included on windows path the the fullpath of oracle instant client
on php.ini, the extension_dir is pointing to the right place
on php.ini extension=php_oci8.dll is ok
restarted the apache, and nothing works.

Problem solved by copying the files orannzsbb11.dll , oci.dll and oraociei11.dll to c:\windows\system32

I solved this problem by adding "C:\Program Files (x86)\PHP\v5.3\ext" to my Windows PATH environment variable. You'll just have to remember to change the path if you upgrade PHP. I think this is better than copying dlls which could lead to issues down the road if you end up with multiple dlls with different versions on the same machine.

You will need to download Oracle Instant client from this hyperlink http://www.oracle.com/technetwork/topics/winsoft-085727.html .
Add the path to the instant client on the user environment vriables and the system variables.

For me, this was caused by not having the Visual C++ Redistributable for Visual Studio 2008 SP1 (for VC9) installed. I had to get the x64 package as I'm running Windows 7 64bit. Hopefully this helps someone with the same problem. After installing it, PHP no longer reported those errors.

Possibly quite obvious to some, but wasn't initially for me: if you're still seeing this The specified procedure could not be found. in Unknown on line 0 error, even after installing the instant client, SDK, and so on - make sure you put the Oracle instant client path in your system "PATH" variable, not the user variable, as user obviously doesn't get used when Apache runs. You can verify that the instant client path is set properly by reviewing the PATH value shown in your phpinfo() output.

I found the main cause behind this issue is the oci8 driver version of oracle. Finally i was able to connect to oracle and the steps i described here at http://angularcode.com/connecting-php-to-oracle-database-10g/

Related

odi-12.2.1.3.0 unable to create an instance of the Java Virtual Machine

I have successfully installed odi-12.2.1.3.0, but when I run it, it displays this error:
Unable to create an instance of the Java Virtual Machine Located at path: C:\Program Files(x86)\Java\jdk1.8.0_144\jre\bin\client\jvm.dll
try to do this go to C:\Oracle\Middleware\jdk\jre\bin\server and copy this file jvm.dll and paste this file in this path C:\Oracle\Middleware\jdk\jre\bin\client but before you paste it make backup from jvm.dll in client folder if the path dose not exist try the path in the error massage
Its a simple solution i have personally tested all you need to do is the following
download the missing file from the below url
https://www.dll-files.com/download/f86b5057928fddd315f9a9f46357003e/msvcr100.dll.html?c=OGhpL0hDOUw2bzRrNk1ySDRxc0I1dz09
place the downloaded file in the designated error message path and thats it reopen ODI
100% working
This is an old post but when I encountered this exact same error message today, I found the below article from Oracle stating "The odi.conf file contains a location for a 32-bit Java JDK". I installed the 64 bit version of jdk and jre from Oracle then manually updated the product.conf file (c:\users<username>\AppData\Roaming\odi<version>\product.conf) to point to the 64 bit version and relaunched ODI Studio. It worked at this point.
https://support.oracle.com/knowledge/Middleware/1501490_1.html
I hope that this helps someone else having this issue in the future.
I had the exact same problem.
I managed to fix it by installing a 64bit jdk and updating the jdk path.
Link: https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u301-b09/d3c52aa6bfa54d3ca74e617f18309292/jdk-8u301-windows-x64.exe
Download the missing msvcr100.dll from https://www.dll-files.com/msvcr100.dll.html and place it in C:\Program Files\Java\jdk1.8.0_301\bin
Hint: Download the latest version
I face same issue and i tried above solution but did not resolve my problem. But when i updated my JDK from 32 to 64 bit. it works for me.
We need 64bit Java JKD (Java SE Development Kit 8u171).
Product / File Description: Windows x64
File Size: 207.27 MB
Download: jdk-8u171-windows-x64.exe

I could not find a NETWORK\ADMIN folder in ORACLE installtion path

I have installed oracle 11g 64 bit version followed by 32 bit version.
I have heard that the TNS files will be in the folder structure - ...NETWORK\ADMIN folder in ORACLE installation path.
But there is no such folder created after oracle installation/
Following #NidhinSPradeep suggestion I've reinstalled 12.2 client using Runtime option and it resolved the issue.
My machine had 12.1 32-bit Oracle client installed first at C:\app\client\administrator\product\12.1.0\client_1
and 12.2 64-bit installed second at C:\app\client\%UserName%\product\12.2.0\client_1
12.2 was installed as InstantClient type and NETWORK\ADMIN folder was missing for this installation.
This generated following error while using OraClient12Home1(64bit) in Toad Data Point:
[Oracle Database Error] Server did not respond within the specified timeout interval
I've reinstalled 12.2 client using Runtime option. NETWORK\ADMIN folder appeared and Toad Data Point error got resolved. If you reinstalling same version, change location from suggested (client_2) to whatever your existing location. Generally it is client_1.
Check your ORACLE_HOME if correctly points to the given directory in the system variables. It may be sometimes Oracle would not be able to find the mentioned ORACLE_HOME directory.
Other probable reason would be the directory permissions. Make sure that all directories and subdirectories have proper permissions for the user from which Oracle is being installed.
Hope that helps :)

libsybcs.dll error when installing composer

Running a windows install I keep getting error listed below.
"The program can't start because libsybcs.dll is missing from your computer.
Try reinstalling the program to fix this problem."
Not sure what this means.
This isn't a Composer issue, but an PHP or server stack configuration issue.
You enabled the Sybase Extension in your php.ini: php_sybase_ct.dll.
This DLL requires another DLL to support Sybase, the libsybcs.dll.
But this file is missing on your system.
When you want to work with Sybase, install it correctly, then the DLL is present. Set the folder where the Sybase DLL resides to the ENV path or drop the DLLs into PHPs ext folder.
When you don't need Sybase, disable the PHP extension php_sybase_ct.
Then restart PHP and retry the Composer installation.

Oracle Designer wants the OCI.dll

I have a problem with the Oracle Designer 10g which I have downloaded recently. The problem is that the program is missing the OCI.dll file. Due to this file I can't open it the program.
How to solve the problem?
Here is a link to an oracle client that will install an OCI.dll on your windows system.
The other thing to check before you do this is to ensure that the Windows environment variable include a path to the oracle bin folder
Running echo $PATH from the command line will show all the existing variables. If you do not see a path to an Oracle Bin folder then you need to add the path if it exists or install the client

Perl script raising oci.dll error, DBD

I have perl script which connects to an Oracle database, opens a text file and loads the data from the file in a database table, the script works perfectly on my development machine (windows xp 32 bit), however when i load the script to the production server (windows 2003 64 bit) and run it from a command line, it opens a perl.exe - unable to locate component windows, the message says
This application has failed to start because OCI.dll was not found. Re-installing the application may fix this problem.
The command line output is:
install_driver(Oracle) failed: Can't load
'C:/Perl64/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle:
load_file:%1 is not a valid Win32 application at
C:/Perl64/lib/DynaLoader.pm line 191. at (eval 14) line3 Compilation
failde in require at (eval 14) line 3. Perhaps a required shared
library or dll isn;t installde where expected at
c:\warranty\warrantyImport.pl line 15
I have reinstalled the oracle client, i have tried uninstalling both active perl and the oracle client and then installing the oracle client before perl as heard this might cause the issue.
I thought it could be permissions so i wrote a simple perl script to open to oci.dll and raised an error if unable, it was able to open it correctly.
I have ensured C:\oracle\product\10.2.0\client_1\bin is in the PATH enviroment variable.
I can connect to the database using SQLPlus
I have added the OCI.dll to the same directory as the perl script.
and i've now finally run out of ideas....can anyone suggest anything, i'm tearing my hair out trying to get it working.
Details
Server is running ActivePerl 5.14.1 Build 1401 (64-bit)
Oracle database is 10g
Oracle client is 10.2.0
I had a similar issue but for the 64bit version of Perl. I managed to resolve it by getting the correct client libraries and reading this guide:
http://www.pythian.com/news/11115/dbdoracle-and-windows-64bit/
Bascially, I’m running Oracle 11g XE R2, which only comes as 32bit. So I suspected that it was looking for the 64bit client libraries and not finding them. So I downloaded:
instantclient-basic-windows.x64-11.2.0.3.0.zip
instantclient-sqlplus-windows.x64-11.2.0.3.0.zip
instantclient-sdk-windows.x64-11.2.0.3.0.zip
From:
http://www.oracle.com/technetwork/topics/winx64soft-089540.html
And installed to c:\oraclexe\instantclient_11_2
I added these to my path:
C:>set PATH = c:\oraclexe\instantclient_11_2;%PATH%
But unfortunately the error persisted :(
On checking my PATH:
echo %PATH%
I could see that the set was getting ignored. I guess that was a permissions issue.
So I edited the system path variable and restarted the command prompt. This fixed the issue and allowed me to connect :)
Have you mixed some 32 bit and 64 bit components. Obviously you need 64 bit Perl, 64 bit DBI and DBD::Oracle and 64 bit dlls for Oracle client. I only suggest you check as the error says "is not a valid Win32 application at".

Resources