pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDBLINK - PostgreSQL to ORACLE
4+ messages / 4 participants
[nested] [flat]
* DBLINK - PostgreSQL to ORACLE
@ 2014-10-20 18:43 Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>
0 siblings, 3 replies; 4+ messages in thread
From: Ferrell, Denise CTR NSWCDD, Z11 @ 2014-10-20 18:43 UTC (permalink / raw)
To: pgsql-admin
Using PostgreSQL 9.3.4 on Linux Red-Hat platform.
Is there a way to use dblink to link from a PostgreSQL database to an Oracle database?
Tried the following and it's returning a SQL state: 08001
SELECT * from dblink('host=<hostname> dbname=<database> port=1521 user=<username> password=<password>',
'select column1,
Column2,
Column3
FROM <schema.table>') as t1 (column1 name, column2 . . .);
Thank you in advance.
Attachments:
smime.p7s (application/pkcs7-signature, 5.5K) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DBLINK - PostgreSQL to ORACLE
@ 2014-10-20 18:50 desmodemone <desmodemone@gmail.com>
parent: Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>
2 siblings, 0 replies; 4+ messages in thread
From: desmodemone @ 2014-10-20 18:50 UTC (permalink / raw)
To: Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>; +Cc: pgsql-admin
2014-10-20 20:43 GMT+02:00 Ferrell, Denise CTR NSWCDD, Z11 <
denise.ferrell.ctr@navy.mil>:
> Using PostgreSQL 9.3.4 on Linux Red-Hat platform.
>
>
> Is there a way to use dblink to link from a PostgreSQL database to an
> Oracle database?
>
> Tried the following and it's returning a SQL state: 08001
>
> SELECT * from dblink('host=<hostname> dbname=<database> port=1521
> user=<username> password=<password>',
> 'select column1,
> Column2,
> Column3
> FROM <schema.table>') as t1 (column1 name, column2 . . .);
>
>
> Thank you in advance.
>
>
>
Hello Denise,
you could use postgresql fdw
https://wiki.postgresql.org/wiki/Foreign_data_wrappers
like multicorn
http://multicorn.org/foreign-data-wrappers/#sqlalchemy-foreign-data-wrapper
Regards
--
Matteo Durighetto
- - - - - - - - - - - - - - - - - - - - - - -
Italian PostgreSQL User Group <http://www.itpug.org/index.it.html;
Italian Community for Geographic Free/Open-Source Software
<http://www.gfoss.it;
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DBLINK - PostgreSQL to ORACLE
@ 2014-10-20 19:49 Gilberto Castillo <gilberto.castillo@etecsa.cu>
parent: Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>
2 siblings, 0 replies; 4+ messages in thread
From: Gilberto Castillo @ 2014-10-20 19:49 UTC (permalink / raw)
To: Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>; +Cc: pgsql-admin
> Using PostgreSQL 9.3.4 on Linux Red-Hat platform.
>
>
> Is there a way to use dblink to link from a PostgreSQL database to an
> Oracle database?
You prove oracla_fdw?
Saludos,
Gilberto Castillo
La Habana, Cuba
---
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com;, <http://www.viruslist.com;
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DBLINK - PostgreSQL to ORACLE
@ 2014-10-27 10:41 Albe Laurenz <laurenz.albe@wien.gv.at>
parent: Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>
2 siblings, 0 replies; 4+ messages in thread
From: Albe Laurenz @ 2014-10-27 10:41 UTC (permalink / raw)
To: Ferrell, Denise CTR NSWCDD, Z11 *EXTERN* <denise.ferrell.ctr@navy.mil>; pgsql-admin
Denise Ferrell wrote:
> Using PostgreSQL 9.3.4 on Linux Red-Hat platform.
>
> Is there a way to use dblink to link from a PostgreSQL database to an Oracle database?
No, dblink can only connect to PostgreSQL.
Try oracle_fdw: http://laurenz.github.io/oracle_fdw/
Yours,
Laurenz Albe
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2014-10-27 10:41 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20 18:43 DBLINK - PostgreSQL to ORACLE Ferrell, Denise CTR NSWCDD, Z11 <denise.ferrell.ctr@navy.mil>
2014-10-20 18:50 ` desmodemone <desmodemone@gmail.com>
2014-10-20 19:49 ` Gilberto Castillo <gilberto.castillo@etecsa.cu>
2014-10-27 10:41 ` Albe Laurenz <laurenz.albe@wien.gv.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox