Re: How I do from PostgreSQL to Oracle Db Link

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ray Stell <stellr(at)cns(dot)vt(dot)edu>
Cc: ?????? <jwchoi(at)modernlimes(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How I do from PostgreSQL to Oracle Db Link
Date: 2011-06-06 14:02:54
Message-ID: 26102.1307368974@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ray Stell <stellr(at)cns(dot)vt(dot)edu> writes:
> On Sat, Jun 04, 2011 at 10:05:46AM +0900, ?????? wrote:
>> ERROR: odbclink: unsuccessful SQLConnect call: [S1000] [12514]
>>
>> [[unixODBC][Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently
>> know of service requested in connect descripto

> sounds like you got to the listener, but didn't tell it the correct service name in
> the connect string. Did you spell it correctly? You can use the oracle cmd
> lsnrctl status on the oracle server to get the service names.

I wonder if the OP set up the service description in his personal
~/.odbc.ini file. If so, it would work for him from the command line,
but odbclink running in the postgres server wouldn't see it (unless the
server happened to be running as his userid, which wouldn't be a good
setup). The fix for that would be to put the info in the system-wide
/etc/odbc.ini file.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mike Broers 2011-06-06 19:11:58 Re: any tricks to get foreign key constraint builds faster
Previous Message Ray Stell 2011-06-06 12:33:16 Re: How I do from PostgreSQL to Oracle Db Link