The PDO_OCI extension lets you access Oracle Database.
Documentation is at https://www.php.net/pdo_oci
Use ‘pecl install pdo_oci’ to install for PHP 8.3.
For older PHP versions, use php_pdo_oci.dll from the Windows PHP release bundle, or build from the PHP source code by running:
phpize
./configure -with-pdo_oci=shared,instantclient,/path/to/instant/client/lib
make install
To complete installation, add “extension=pdo_oci.so” to your php.ini file.
PHP is available from https://www.php.net/releases/
The PDO_OCI extension can be linked with Oracle client libraries from Oracle Database 11.2 or later. These libraries are found in your database installation, or in the free Oracle Instant Client from https://www.oracle.com/database/technologies/instant-client.html Install the “Basic” or “Basic Light” Instant Client package. If building from source, then also install the SDK package.
Oracle’s standard cross-version connectivity applies. For example, PHP PDO_OCI linked with Oracle Client 19c can connect to Oracle Database 11.2 onward. See Oracle’s note “Oracle Client / Server Interoperability Support” (ID 207303.1) for details.
Package | Signatures | Date | Pharext | ||
---|---|---|---|---|---|
PDO_OCI 1.1.0 |
⤋ phar (177.9 KB) |
# rsa.sig | # gpg.asc | 2024-08-20 | v4.1.4 |
⤋ phar.gz (44.6 KB) |
# rsa.sig | # gpg.asc | 2024-08-20 | v4.1.4 | |
⤋ phar.bz2 (38.1 KB) |
# rsa.sig | # gpg.asc | 2024-08-20 | v4.1.4 |
curl -sS \
-O https://replicator.pharext.org/phars/PDO_OCI/pdo_oci-1.1.0.ext.phar \
-O https://replicator.pharext.org/sigs/PDO_OCI/pdo_oci-1.1.0.ext.phar.sig \
-O https://replicator.pharext.org/sigs/PDO_OCI/pdo_oci-1.1.0.ext.phar.asc
curl -sSO https://replicator.pharext.org/replicator.pub
openssl dgst \
-verify replicator.pub \
-signature pdo_oci-1.1.0.ext.phar.sig \
pdo_oci-1.1.0.ext.phar
-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnzsDXNox5V0V9GLcnXEu kxnhFs9+/AMm//1qJAoNwP6sgmYShuyI3NDZzCmT7tOIcpqW0I4P8D1Psrftyqbt spedAvyOLCLZXaOuE130aMlvfqEiO+s8ZVZL8aHLE/orLbpOexEs33a1j6shl5C6 MoojzK3uYccL4XJfj0t2nrC+XMfWE9oQGvyLZv3tNCzH4Oy7knWVVy10EKbKgPft izCFR+0mPYw35RN3gAGrug+khnVRMRNpS7B0uZ6E29Bgsrud9l91mVbrL+DaoaSa IFGeYuFGe2ZpHUfxf16S0w7ybPrrJJsD6cYOtwXjRZo+4ux6PdKZ+m3hnKWoj9IF OwIDAQAB -----END PUBLIC KEY-----
curl -sSO https://replicator.pharext.org/4093AEF6.pub
gpg --import 4093AEF6.pub
gpg --verify pdo_oci-1.1.0.ext.phar.asc \
pdo_oci-1.1.0.ext.phar
-----BEGIN PGP PUBLIC KEY BLOCK----- mQENBFcBXgsBCACfOwNc2jHlXRX0YtydcS6TGeEWz378Ayb//WokCg3A/qyCZhKG 7Ijc0NnMKZPu04hympbQjg/wPU+yt+3Kpu2yl50C/I4sItldo64TXfRoyW9+oSI7 6zxlVkvxocsT+istuk57ESzfdrWPqyGXkLoyiiPMre5hxwvhcl+PS3aesL5cx9YT 2hAa/Itm/e00LMfg7LuSdZVXLXQQpsqA9+2LMIVH7SY9jDflE3eAAau6D6SGdVEx E2lLsHS5noTb0GCyu532X3WZVusv4NqhpJogUZ5i4UZ7ZmkdR/F/XpLTDvJs+usk mwPpxg63BeNFmj7i7Ho90pn6beGcpaiP0gU7ABEBAAG0K1BIQVJleHQgUmVwbGlj YXRvciA8cmVwbGljYXRvckBwaGFyZXh0Lm9yZz6JATcEEwEKACEFAlcBXgsCGwMF CwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQZJhrlUCTrvbYGAgAi120YHruidld uPTUS05/ZLoSn3orKkmkskOsjBrUqJvQHx1s8mqJpNJdbIrgPIxQPHauiE6Fj72q uv6TsVRxM+7VjiCHTbHmDheP5Zcyac7Nd/e62DsCYP7LAAx7MHbQvki6XQg4EsQZ cXMKRYuuizJxNGVUeZpusY5WXmc5PRIigsI4eh/2l96IK/eqTDSZiDUwv9ze+HMf JxOunBZVebYUQ3RYEWx1NseInxbiAnEdGM7phZH43jkohxPLROr3nWBmrJbBqULn m6M5fRucJoldU8VIzMdy0xxu+3PuX8aug96njK448r53wjb7yRf6WLonwjlFqTWq 0tZzZR3Ndw== =avra -----END PGP PUBLIC KEY BLOCK-----