Forum Stats

  • 3,875,295 Users
  • 2,266,907 Discussions
  • 7,912,141 Comments

Discussions

MS Windows 2012 server + version of php/oracle client instant client to use

user5716448
user5716448 Member Posts: 1,767 Silver Badge
edited May 11, 2017 5:22AM in PHP

Hi,

We have access to a new test server and wish to install php and oracle client or instant client.

It will have to access a oracle 11.2.0.3 database.

What is the recommended version of php oracle client/instant client to use.

Also should we use 64-bit?

Thanks

Answers

  • Christopher Jones-Oracle
    Christopher Jones-Oracle Member Posts: 1,656 Employee
    edited May 11, 2017 12:16AM

    Use PHP 7 with the latest Instant Client.  I haven't seen comments either way about Windows PHP 7 32-bit vs 64-bit.  In older PHP versions only 32-bit worked.  Just make sure to be consistent about all the bitness of all components (web server, PHP, Instant Client).

    user5716448
  • user5716448
    user5716448 Member Posts: 1,767 Silver Badge
    edited May 11, 2017 4:38AM

    Thanks for advice.

    Would that be

    PHP 7.0 (7.0.19) as opposed to 7.15  from the site PHP For Windows: Binaries and sources Releases  and

    plan use 64-bit for both given a 64-bit server.

    and

    Version 12.2.0.1.0

    Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications
    Downloadinstantclient-basic-windows.x64-12.2.0.1.0.zip (75,062,441 bytes) (cksum - 1462971172)

    Just a few questions

    1) Any reason not to use 7.1 - this looks to be latest release, often .1 releases  of other software recommended above base .0 release

    2)  assume oci8 is bundled with the php 7 release and would that oci8 version be able to talk to  such a new oracle client version?

    3) If needed to get the very latest oci8.dll would we just need tp download the 2.1.4 version form  https://pecl.php.net/package/oci8 and uncomment the extesnion in the php.ini

    Notice mentions in the readme pecl install oci8-2.0.12 - assume this just for non-windows platforms.

    Given that we are using windows can we just simply dowonload the dll and uncomment the extensuion in the php.in?

    Thanks

  • user5716448
    user5716448 Member Posts: 1,767 Silver Badge
    edited May 11, 2017 5:21AM

    Also when look at the php downloads page there tends to be two near identical downloads available of both 7.1 and 7.0 seconds apart both x64- do you know why this is and what is difference between them?

  • user5716448
    user5716448 Member Posts: 1,767 Silver Badge
    edited May 11, 2017 5:22AM

    just relaise one says thread-safe for apache and one says non-thread safe for iis

This discussion has been closed.