Installing oci8 driver for MDB2

easander

If you are seeing errors similar to:

Warning: include_once(MDB2/Driver/oci8.php): failed to open stream: No such file or directory in /usr/share/pear/PEAR/MDB2.php on line 330 Warning: include_once(): Failed opening 'MDB2/Driver/oci8.php' for inclusion

when you are trying to use MDB2 with oci8, then you just need to do the following to fix it.

  1. Open a terminal
  2. Type ‘sudo pear install MDB2_Driver_oci8‘ and you should see:


    Password:
    downloading MDB2_Driver_oci8-1.4.1.tgz ...
    Starting to download MDB2_Driver_oci8-1.4.1.tgz (37,027 bytes)
    ..........done: 37,027 bytes
    install ok: channel://pear.php.net/MDB2_Driver_oci8-1.4.1

  3. Restart Apache

The problem here is that you had MDB2 installed correctly, but you didn’t have the specific driver that tells MDB2 how to handle Oracle (oci8) connections.


2 Responses to “Installing oci8 driver for MDB2”

Leave a Reply

You must be logged in to post a comment.