Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create database Link

Status
Not open for further replies.
Dec 16, 2003
5
HK
Hello,
We have tablename called "T1" in two different db2 database servers.Structure and creator of the table is same in both databases.
1) One server is our live system.(say "LIVE1")
2) Another server is our archieve database which is in the remote location.(say "LIVE2")
We want to fetch all the records from "LIVE1"."T1" and "LIVE2"."T1".

The sql query would be like this.
Select * from "LIVE1"."T1"
union
Select * from "LIVE2"."T1".

Is there any command like "CREATE DATABASE LINK" in Oracle in db2 v8.1?
Regards,
Shiva
 
Yes Greg..But this is a different task.I have checked the link which you posted in the previous post.
That link is not working.
I am getting the following message.

Our apologies...


The document you requested does not exist on this server or cannot be served.

Please double check the URL or use the search function on this page to find what you are looking for.

If you know you have the correct URL but are encountering an error, please let our Webmaster know at Thank you.

404 Not Found

Regards,
Shiva
 
In that message, the location name is the servername or ip address of the other dbname.Both are not working.I am very new to DB2 and i cannot able to find more about DDF also.

Regards,
Shiva
 
DDF is distributed data facility ... You will have to configure this if you want DB2 on mainframe to talk with other DB2s on the network ... Ask you DBA or System programeer for more information ...

HTH

Sathyaram

For db2 resoruces visit More DB2 questions answered at
 
This is only applicable for MVS (Mainframe).If the db is not in mainframe, in that case if we want to talk to another db2 server, what should we do?

Regards,
Shiva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top