Jump to content


Photo

Unable To Load Dynamic Library Oci8.so

oci8 dynamic library connect

  • Please log in to reply
No replies to this topic

#1 kjc

kjc

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 19 December 2012 - 05:02 PM

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!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com