Re: [NOVICE] How to read oracle table's data from postgre

Lists: pgsql-generalpgsql-novice
From: venkatrao(dot)b(at)tcs(dot)com
To: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: How to read oracle table's data from postgre
Date: 2010-03-08 05:10:04
Message-ID: OF64A93E6B.2AC70C6F-ON652576E0.001B996F-652576E0.001C62EE@tcs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-novice

Hello ,

I want to read oracle database table data from postgre. (like in oracle we
can use database links, is there something like this available in
postgre).
I tried below -

select dblink_connect('host=.., dbname=..user=.. pwd=..'); but it is
giving error database refused connection. Do i need to add anything in
oracle datbase server tnsnames. how should be this entry.(since here we
are connecting oracle to postgre and not the oracle to oracle)

Thanks in advance..

Regards,
Venkat
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to read oracle table's data from postgre
Date: 2010-03-08 06:04:36
Message-ID: 4B949374.5000604@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-novice

venkatrao(dot)b(at)tcs(dot)com wrote:
>
> Hello ,
>
> I want to read oracle database table data from postgre. (like in
> oracle we can use database links, is there something like this
> available in postgre).
> I tried below -
>
> select dblink_connect('host=.., dbname=..user=.. pwd=..'); but it is
> giving error database refused connection. Do i need to add anything in
> oracle datbase server tnsnames. how should be this entry.(since here
> we are connecting oracle to postgre and not the oracle to oracle)

postgresql's dblink functions can only connect to other postgresql
databases. it has no idea how to connect to Oracle, or any other sort
of database.


From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: venkatrao(dot)b(at)tcs(dot)com
Cc: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [NOVICE] How to read oracle table's data from postgre
Date: 2010-03-08 06:07:02
Message-ID: 1268028422.2098.6.camel@hp-laptop2.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-novice

On Mon, 2010-03-08 at 10:40 +0530, venkatrao(dot)b(at)tcs(dot)com wrote:
>
> I want to read oracle database table data from postgre. (like in
> oracle we can use database links, is there something like this
> available in postgre).

(It is not postgre, it is PostgreSQL or Postgres.)

You can try dbi-link:

http://pgfoundry.org/projects/dbi-link/

--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: venkatrao(dot)b(at)tcs(dot)com, pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [NOVICE] How to read oracle table's data from postgre
Date: 2010-03-08 07:33:38
Message-ID: dcc563d11003072333l31a9528eu238d62e8b69e446e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-novice

2010/3/7 Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>:
> On Mon, 2010-03-08 at 10:40 +0530, venkatrao(dot)b(at)tcs(dot)com wrote:
>>
>> I want to read oracle database table data from postgre. (like in
>> oracle we  can use database links, is there something like this
>> available in postgre).
>
> (It is not postgre, it is PostgreSQL or Postgres.)
>
> You can try dbi-link:
>
> http://pgfoundry.org/projects/dbi-link/

Anyone know if this is still active / developed?

http://wiki.postgresql.org/wiki/SqlMedConnectionManager


From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, venkatrao(dot)b(at)tcs(dot)com, pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [NOVICE] How to read oracle table's data from postgre
Date: 2010-03-09 07:15:32
Message-ID: 4B95F594.5000900@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-novice

Scott Marlowe wrote:
> Anyone know if this is still active / developed?
> http://wiki.postgresql.org/wiki/SqlMedConnectionManager
>

That's still the right long-term approach for a lot of these problems,
so while activity on it happens in bursts I don't think it will ever go
completely inactive. I expect SQL/MED plans for the next release may
get fleshed out at this year's developer's meeting in a couple of
months, should have a better idea who might be working on this by the
end of May.

--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us