You are here: Re: unable to load dynamic library /usr/lib/php4/oci8.so « PHP Programming Language « IT news, forums, messages
Re: unable to load dynamic library /usr/lib/php4/oci8.so

Posted by Mladen Gogala on 02/07/07 04:56

On Tue, 16 Jan 2007 00:56:20 -0800, danish wrote:

> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация