Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 15th, 2007, 01:05 PM
danish
Guest
 
Posts: n/a
Default unable to load dynamic library /usr/lib/php4/oci8.so

I download the oci-1.2.2.tgz file and generated the oci8.so file. After

adding the
extension=oci8.so
in php.ini

I get the error


unable to load dynamic library /usr/lib/php4/oci8.so


Thanks
Danish

  #2  
Old January 15th, 2007, 04:05 PM
Toby Inkster
Guest
 
Posts: n/a
Default Re: unable to load dynamic library /usr/lib/php4/oci8.so

danish wrote:
Quote:
unable to load dynamic library /usr/lib/php4/oci8.so
At the command prompt:

ls -l /usr/lib/php4/oci8.so

What is the output?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

  #3  
Old January 15th, 2007, 04:45 PM
danish
Guest
 
Posts: n/a
Default Re: unable to load dynamic library /usr/lib/php4/oci8.so


Toby Inkster wrote:
Quote:
danish wrote:
>
Quote:
unable to load dynamic library /usr/lib/php4/oci8.so
>
At the command prompt:
>
ls -l /usr/lib/php4/oci8.so
>
What is the output?
>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
sorry..im not in the office...ill be able to post the output tomorrow
morning..apologies for the delay...

Ill post the output tomorrow. please do go through the post. I have
done a lot of head banging, but im still going wrong somewhere...

Thanks
Danish

  #4  
Old January 15th, 2007, 10:15 PM
Michael Austin
Guest
 
Posts: n/a
Default Re: unable to load dynamic library /usr/lib/php4/oci8.so

danish wrote:
Quote:
Toby Inkster wrote:
>
Quote:
>>danish wrote:
>>
>>
Quote:
>>>unable to load dynamic library /usr/lib/php4/oci8.so
>>
>>At the command prompt:
>>
>> ls -l /usr/lib/php4/oci8.so
>>
>>What is the output?
>>
>>--
>>Toby A Inkster BSc (Hons) ARCS
>>Contact Me ~ http://tobyinkster.co.uk/contact
>
>
sorry..im not in the office...ill be able to post the output tomorrow
morning..apologies for the delay...
>
Ill post the output tomorrow. please do go through the post. I have
done a lot of head banging, but im still going wrong somewhere...
>
Thanks
Danish
>
make sure the webserver owner userid has read+execute on oci8.so either via
group or world permissions.

--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
  #5  
Old January 16th, 2007, 09:05 AM
danish
Guest
 
Posts: n/a
Default Re: unable to load dynamic library /usr/lib/php4/oci8.so


Michael Austin wrote:
Quote:
danish wrote:
>
Quote:
Toby Inkster wrote:
Quote:
>danish wrote:
>
>
>>unable to load dynamic library /usr/lib/php4/oci8.so
>
>At the command prompt:
>
> ls -l /usr/lib/php4/oci8.so
>
>What is the output?
>
>--
>Toby A Inkster BSc (Hons) ARCS
>Contact Me ~ http://tobyinkster.co.uk/contact
Thanks a lot. I got it to work..just downloaded the source files of
apache web server and php4 ..then downloaded the oci8-1.2.2.tar.gz
files....compiled and built the apache, php4,oci8 files..added the
extension_dir and extension=oci8.so to php.ini..and yahoo! oci8 was
showing as supported..but now I have one other problem...

Im trying to connect to a remote oracle database, but when I run the
php code..it gives me the following error

ocilogon(): ORA-12514: TNS:listener does not currently know of service
requested in connect descriptor in /home/danish/htdocs/test.php

Thanks
Danish
Quote:
Quote:

sorry..im not in the office...ill be able to post the output tomorrow
morning..apologies for the delay...

Ill post the output tomorrow. please do go through the post. I have
done a lot of head banging, but im still going wrong somewhere...

Thanks
Danish
>
make sure the webserver owner userid has read+execute on oci8.so either via
group or world permissions.
>
--
Michael Austin
Database Consultant
Domain Registration and Linux/Windows Web Hosting Reseller
http://www.spacelots.com
  #6  
Old February 7th, 2007, 05:05 AM
Mladen Gogala
Guest
 
Posts: n/a
Default Re: unable to load dynamic library /usr/lib/php4/oci8.so

On Tue, 16 Jan 2007 00:56:20 -0800, danish wrote:
Quote:
ocilogon(): ORA-12514: TNS:listener does not currently know of service
requested in connect descriptor in /home/danish/htdocs/test.php
That is a TNS configuration error. You need to properly configure the
database entry in the tnsnames.ora. Essentially, TNS entry has 3 parts:
1) The hostname of the database server
2) Port at which Oracle listener is listening, usually 1521.
3) Service name of the service to which to connect.
Here is an example:
MEDO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = medo.noip.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = brundo.noip.com)
)
)

Service names are defined by the SERVICE_NAMES Oracle parameter for RDBMS
version 9 and 10 or by MTS_SERVICE parameter for RDBMS 8i. An alternative
method is to supply a SID instead of the service name, but that is
deprecated.

--
http://www.mladen-gogala.com
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles