EnterpriseDB: The Enterprise Postgres Company Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 

Table access  XML

Forum Index » Standard Server
Author Message
kiran_kumar_2

Member

Joined: 3 Mar 2010 09:47:03
Messages: 16
Offline

Hi all,
I am using Enterprisedb 8.2 Version
currently I am using 2 databases i.e
1.Testdb
2.Productiondb

My problem is how to access testdb table into productiondb.

Please help me.


Regards,
Kiran


scottiebo

Senior member
[Avatar]

Joined: 23 Oct 2005 21:05:02
Messages: 197
Offline

Upgrade to 8.3R2 and use the Oracle style dblinks:

http://www.enterprisedb.com/docs/en/8.3/oracompat/EnterpriseDB_OraCompat_EN_8.3-49.htm


You'll need to be running Advanced Server 8.3R2 however. If you want to use postgres, use postgres dblinks:

http://www.postgresql.org/docs/current/static/dblink.html

--Scottie

--Scottie
kiran_kumar_2

Member

Joined: 3 Mar 2010 09:47:03
Messages: 16
Offline

Hi,
Thanks for your replay.
i am facing problem to create dblink .

my username is enterprisedb
password is edb


CREATE "PUBLIC". DATABASE LINK access
CONNECT TO enterprisedb IDENTIFIED BY 'edb'

i am using above syntax to create dblink it will display error.

Error message : syntax error at or near ""PUBLIC"" at Position: 9.

Please help me.
scottiebo

Senior member
[Avatar]

Joined: 23 Oct 2005 21:05:02
Messages: 197
Offline

Sorry for the delay Kiran, I've been traveling a lot lately.


I think the problem you're having is the double quotes surrounding public and the '.' before the word database. I think the syntax you want is:

CREATE PUBLIC DATABASE LINK ....


Take a look at the docs:

http://www.enterprisedb.com/docs/en/8.3/oracompat/EnterpriseDB_OraCompat_EN_8.3-49.htm

--Scottie
kiran_kumar_2

Member

Joined: 3 Mar 2010 09:47:03
Messages: 16
Offline

Hi,

Thanks for your replay,

I got it,its working fine.


Regards,
Kiran


 
Forum Index » Standard Server
Go to:   
Powered by JForum 2.1.8 © JForum Team