Jump to content

Unable To Load Dynamic Library Oci8.so


kjc

Recommended Posts

I am trying to run the following simple php script:

 

<?php

$db = oci_connect("userId","password","//ipAddress:port/sid");

if ( !$db ) {

$e = oci_error();

trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);

}

$stmt_getPrinter = oci_parse($db, "select distinct printer from persons_printers where Machine_Name = '%PC-JZP%'");

oci_execute($stmt_getPrinter);

 

$status = OCIFetch($stmt_getPrinter);

if ( $status ) {

echo htmlentities("successful fetch<br>");

}

else{

echo htmlentities("fetch failed<br>");

}

?>

 

When I try to run the script above php -f testConn4.php

 

I get the following errors/warnings

 

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oci8.so' - /usr/lib/php/modules/oci8.so: undefined symbol: core_globals_id in Unknown on line 0

 

 

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oci8.so' - /usr/lib/php/modules/oci8.so: undefined symbol: core_globals_id in Unknown on line 0

 

PHP Fatal error: Call to undefined function oci_connect() in /share_area/www/docs/testConn4.php on line 2

 

Fatal error: Call to undefined function oci_connect() in /share_area/www/docs/testConn4.php on line 2

 

Runing Oracle 11g Enterprise Edition Release 11.2.0.1.0

PHP Version 5.4.9

PHPInfo() shows the following

OCI8 Suport: enabled

Version: 1.4.9

 

The OCI8.so file is located in the folder /usr/lib/php/modules with the correct privileges.

 

Any Ideas why I am getting these errors/warnings?

 

Thanks!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.