PHP 8.5.0 Alpha 1 available for testing

Requerimientos

OCI8 3.0 está incluida con PHP 8. También está disponible desde » PECL. Para PHP 7, utilice OCI8 2.2 desde » PECL. OCI8 requiere Oracle 10g o bibliotecas cliente posteriores.

Si la base de datos Oracle está en la misma máquina que PHP, el software de base de datos ya contiene las bibliotecas y encabezados necesarios. Cuando PHP está en una máquina diferente, utilice las bibliotecas gratuitas » Oracle Instant Client.

Para utilizar Oracle Instant Client, instale el archivo comprimido ZIP Basic o Basic Light de Oracle Instant Client, el paquete RPM, o el paquete DMG. Al compilar OCI8 desde el código fuente, instale también el SDK de Instant Client.

Debe ejecutar PHP con la misma versión o una versión más reciente de las bibliotecas cliente de Oracle utilizadas para construir OCI8.

Nota:

La interoperabilidad estándar de red cliente-servidor de Oracle permite conexiones entre diferentes versiones de Oracle Client y Oracle Database. Para configuraciones certificadas, consulte la documentación Oracle Support ID ID 207303.1. En resumen, Oracle Client 19, 18 y 12.2 pueden conectarse a Oracle Database 11.2 o superior. Oracle Client 12.1 puede conectarse a Oracle Database 10.2 o superior. Oracle Client 11.2 puede conectarse a Oracle Database 9.2 o superior.

Nota:

El soporte de todas las funcionalidades de OCI8 solo está disponible al utilizar las versiones más recientes de las bibliotecas cliente de Oracle así como la base de datos más reciente.

add a note

User Contributed Notes 5 notes

up
7
Wilber
2 years ago
The OCI8 extension lets you access Oracle Database.

Use 'pecl install oci8' to install for PHP 8.1.

Use 'pecl install oci8-3.0.1' to install for PHP 8.0.

Use 'pecl install oci8-2.2.0' to install for PHP 7.

Use 'pecl install oci8-2.0.12' to install for PHP 5.2 - PHP 5.6.

Use 'pecl install oci8-1.4.10' to install for PHP 4.3.9 - PHP 5.1.

[username@hostname ~]# php -v
^ To see PHP version
up
2
Andi,post at rueckauer dot nospam dot ch
7 years ago
The provided link to the Oracle Instant Client is not valid anymore. Visit http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html instead.
up
0
sgfan at gmx dot net
7 years ago
I can confirm Rainer's observations and this not limited to PHP. One cannot link libopenldap with C with Oracle driver without crashing the app at runtime. Same here on HP-UX. Both won't play nice at all.
up
0
Rainer Perske
8 years ago
Oracle Instant Client provides its own LDAP library that may be incompatible to the LDAP library provided by the operating system.

Segmentation faults and other errors can happen if you load an OCI8 extension into a PHP containing LDAP support or if you load a PHP module with OCI8 into an Apache server with LDAP support.

But this depends heavily on the exact versions of operating system, system LDAP library, PHP, OCI8, and other pieces of software involved.
up
-1
charles dot fisher at arconic dot com
5 years ago
Oracle's development package includes an ldap.h file that causes compilation attempts of PHP to fail.

For the oracle-instantclient12.2-devel 64-bit RPM, this file is found in the following path:

/usr/include/oracle/12.2/client64/ldap.h

Rename this file to ldap.h-oracle.

After doing so, and assuming there are no other build problems, PHP will compile (even when ldap and oci are configured in the build).
To Top