Can't setup Oracle DB connection with oci8
Posted by: gogy (---.84.52.190.102.dc.cable.static.telemach.net)
Date: June 03, 2014 08:23PM

Hello

Enabling PHP > php_oci8 extension from tray icon menu don't make it work.

Tried also manual enabling php_oci8 extension from other php.ini files and get this error.

Warning
---------------------------
PHP Startup: Unable to load dynamic library 'G:/wamp/bin/php/php5.3.13/ext/php_oci8.dll' - %1 is not a valid Win32 application.

I checked if php_oci8.dll is in extension directory and it is available in this directory.


Using
Windows 7 64bit
WAMP server 2.2 with
Apache 2.2.22
PHP 5.3.13

Any idea how to set this up?

Thank you and best regards

Options: ReplyQuote
Re: Can't setup Oracle DB connection with oci8
Posted by: RiggsFolly (---.as13285.net)
Date: June 03, 2014 08:29PM

You also have to install an oracle client.

The php_oci8.dll is just an interface to the oracle client software.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Can't setup Oracle DB connection with oci8
Posted by: gogy (---.84.52.190.102.dc.cable.static.telemach.net)
Date: June 03, 2014 11:56PM

I have installed Oracle client and I am able to connect to the database with SQL developer client.

When I run PHP script I get this error

Fatal error: Call to undefined function oci_connect()

Is it possible that there is wrong client installed? I have some old version (about 7 years old).

Can you point me to download oracle client for Windows 7 64bit?

I found [www.oracle.com] but only ZIP package, nothing to install.

Options: ReplyQuote
Re: Can't setup Oracle DB connection with oci8
Posted by: RiggsFolly (---.as13285.net)
Date: June 04, 2014 12:17AM

[fficial&client=firefox-a&channel=sb&gws_rd=cr&ei=bkmOU6fjL6HY7Aao7oDgBQ" rel="nofollow">www.google.co.uk]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Can't setup Oracle DB connection with oci8
Posted by: gogy (---.84.52.190.102.dc.cable.static.telemach.net)
Date: June 04, 2014 12:49AM

Thank you very much

it works after those steps

Oracle link
[www.oracle.com]

Downloaded this one
Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64)
win64_11gR2_client.zip (615,698,264 bytes) (cksum - 2947608743)

Installed Client (first option from 4)

Exit and start WAMP again.

Best regards

Options: ReplyQuote
Re: Can't setup Oracle DB connection with oci8
Posted by: gogy (31.15.144.---)
Date: May 14, 2016 11:46AM

Hey!

I just came across this topic again (which i see was opened two years ago by myself)

After troubles on Windows 10 I went through the same steps and it still works.

This time I have Wamp 2.5.

While installing Oracle client... if you receive a message
[INS-13001] Environment does not meet minimum requirements

Ignore it and continue. I choosed administrator installation option.

Good luck!

Options: ReplyQuote


Sorry, only registered users may post in this forum.