How to call Oracle DBs via DBI ODBC

From: Javier Moreno (JavierMoreno_at_eaton.com)
Date: 01/17/05


Date: Mon, 17 Jan 2005 12:32:06 -0600
To: <dbi-users@perl.org>

All,

I have a web application which calls an Oracle database. I was unable to connect to it but I found out it was because the HTTP port the TNS was listening to was not the same one the webserver was running on. I have fixed that on the webserver end. However, it seems the call to the TNS is getting mixed up. The DBI ODBC driver appears to be sending the HOST_NAME as SERVICE_NAME. My call is very standard, is there something else I should do in order for this to work?

$::dbh = DBI->connect('dbi:ODBC:ILOG', 'system', '##########', { AutoCommit => 0 }) or
        &Error("Unable to connect to database.<br>$DBI::errstr");

17-JAN-2005 11:18:19 * (CONNECT_DATA=(SID=*)(SERVICE_NAME=slpmxwmorenojav)(CID=(PROGRAM=C:\Perl\bin\perl.exe)(HOST=SLPMXWMORENOJAV)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=151.110.117.153)(PORT=3772)) * establish * slpmxwmorenojav * 12514
TNS-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor

Regards,

Javier Moreno



Relevant Pages

  • Re: Windows Mail Problem
    ... Broadband internet access ... I am trying to resolve a problem with Outlook Express with regards to ...
    (microsoft.public.windowsxp.general)
  • Re: SPS2003 Alerts
    ... Managed to resolve this issue ... You need to apply to Microsoft for the Windows 2003 Hotfix 834859. ... Regards ... Rob ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Delphi 2007 and sa customers
    ... forwarded to the people who can resolve ... but the ftp and http links take me to a ...
    (borland.public.delphi.non-technical)
  • Re: FreeBSD 7.2 Intel i915 / Xorg issue
    ... Just install those ports and add them to rc.cond or rc.conf.local ... helped me resolve my own. ...
    (freebsd-questions)
  • Re: LDIFDE Command
    ... I managed to resolve the problem this morning. ... > take some time to troubleshoot this issue. ... Please check your DNS configuration to make sure the DNS server points ... > Best regards, ...
    (microsoft.public.windows.server.migration)