Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
Search
Recent Topics
Hottest Topics
Member Listing
Back to home page
Table access
Forum Index
»
Standard Server
Author
Message
3 Mar 2010 20:28:50
Subject:
Table access
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
3 Mar 2010 22:30:23
Subject:
Re:Table access
scottiebo
Senior member
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
4 Mar 2010 22:39:55
Subject:
Re:Table access
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.
8 Mar 2010 21:19:10
Subject:
Re:Table access
scottiebo
Senior member
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
12 Mar 2010 19:25:05
Subject:
Re:Table access
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:
Select a forum
News & Announcements
Website Issues
Postgres Plus Cloud Database
Postgres Enterprise Manager
Advanced Server
Standard Server
Postgres Plus AMIs with Amazon EC2
GridSQL - General
GridSQL - Developers
PostgreSQL Installers for Windows, Linux and OS X
Tuning and Migration Wizard
ApachePHP and application Installers
Powered by
JForum 2.1.8
©
JForum Team