473,237 Members | 1,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 software developers and data experts.

Combine 2 databases into 1 database?

Hi all,

I have 1 database that is required for several applications (the data must
be shared ). They also have there own database. Is it possible to combine 2
databases into 1 database in DB2 7.x?

--
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.***********@Askesis.nl
web: www.askesis.nl
Nov 12 '05 #1
9 2778
Joost Kraaijeveld wrote:
Hi all,

I have 1 database that is required for several applications (the data must
be shared ). They also have there own database. Is it possible to combine 2
databases into 1 database in DB2 7.x?

Is the datasharing between the two DBs massive (lots of data, often and
for many tables?)
If you read up of federated (tons of material on developerWorks) you may
be able to get away by creating a few nicknames.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
"Joost Kraaijeveld" <J.***********@Askesis.nl> wrote in message news:<pc*****************@amsnews03.chello.com>...
Hi all,

I have 1 database that is required for several applications (the data must
be shared ). They also have there own database. Is it possible to combine 2
databases into 1 database in DB2 7.x?

As well as a federated system, consider having a single database with
two different schema names.
Nov 12 '05 #3
Serge Rielau wrote:
Is the datasharing between the two DBs massive (lots of data, often
and for many tables?) Often, not much, 15 tables.
If you read up of federated (tons of material on developerWorks) you
may be able to get away by creating a few nicknames.

Do I need the Enterprise Edition for this or does the Workgroup Edition also
work?

--
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.***********@Askesis.nl
web: www.askesis.nl
Nov 12 '05 #4
Joost Kraaijeveld wrote:
Serge Rielau wrote:
Is the datasharing between the two DBs massive (lots of data, often
and for many tables?)


Often, not much, 15 tables.

If you read up of federated (tons of material on developerWorks) you
may be able to get away by creating a few nicknames.


Do I need the Enterprise Edition for this or does the Workgroup Edition also
work?

For local federation I don't think there is any license needed.
You certainly do _not_ need a DB2 II license.
Blair is much more knowledgable than me on that.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #5
Serge Rielau wrote:
For local federation I don't think there is any license needed.
You certainly do _not_ need a DB2 II license.
Blair is much more knowledgable than me on that.

My questions was technical of nature: for some reason I do not succeed in
creating a federated database. I have followed the docs but I keep getting
errors so I assumed that I may have the wrong version. I checked but both
the Enterprise Edition (on Windows 2000) and the Workgroup Edition (on
Linux) do the same thing wrong (propably meaning that I am consistently
doing the same things wrong ;-) ).

My problem is that I do not fully understand what I have to fill in in the
Control Center. I have the following questions:

1. The name for the remote data source is completely arbitrary?
2. Is it correct that there is no DB2 server type choice for Linux? Should I
use DB2/2 or DB2/NT?
3. Does it matter if the actual version (7.2.7) differs from what I fill in?
4. Is the node name the same as System name in the Control Center or the
name of the instances (both type of names are shown in the drop down box)?
--
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.***********@Askesis.nl
web: www.askesis.nl
Nov 12 '05 #6
Correct, an II license is not needed when all databases involved are DB2. II is
required for federation with Oracle and SQL Server.

Serge Rielau wrote:
Joost Kraaijeveld wrote:
Serge Rielau wrote:
Is the datasharing between the two DBs massive (lots of data, often
and for many tables?)


Often, not much, 15 tables.

If you read up of federated (tons of material on developerWorks) you
may be able to get away by creating a few nicknames.


Do I need the Enterprise Edition for this or does the Workgroup Edition also
work?

For local federation I don't think there is any license needed.
You certainly do _not_ need a DB2 II license.
Blair is much more knowledgable than me on that.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab


Nov 12 '05 #7
Joost,

What kind of errors are you getting? Can you dump teh output here?
Best try it from the CLP (one less layer to do things wrong).

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #8
Hi Serge,
What kind of errors are you getting? Can you dump teh output here?
Best try it from the CLP (one less layer to do things wrong).


Thanks for this question: it forced me to do what you asked (use the CLP).
It seems that I had to catalog the node....... If you see a red shinig light
in the east: that's my face gloing in shame in the dark above the
Netherlands.

Now I get the next message:

CREATE NICKNAME "JKR"."BEDRYF" FOR "ASTERIX"."JKR"."BEDRYF"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL3324N Column "BEVESTIGEN" has a type of "LONGVAR" which is not
recognized.

The actual column type is LONG VARCHAR, just as the prvious column and the
one before that.

Groeten

Joost


Nov 12 '05 #9
Order means nothing. The code may well roll the columns up backwards.
I am not certain that nicknames support LONG VARCHAR.
While LONG VARCHAR/LONG VARGRAPHIC are not deprecated their use has been
stabilized.
Looking at the online docs it says:
"LONG VARCHAR and LONG VARGRAPHIC data source data types are mapped to
CLOB and DBCLOB data types, respectively. LONG VARCHAR FOR BIT DATA is
1mapped to BLOB."
Now that text was changed for V8 FP1....

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
2
by: Reidar Jorgensen | last post by:
I have several Access databases, identical in structure, but different data. Is there an easy way to combine them all into one database? There are six tables, I just want the data from all...
4
by: musicloverlch | last post by:
I have a table with multiple records in it. I am being forced to combine multiple records into one record in order to be uploaded to a website, and I only get one record per client. How can I...
0
by: achaudhri | last post by:
Can someone guide what is the best way to combine 3 databases into one. Thanks archana
5
by: Rodjk #613 | last post by:
Hello, I am working with a database that is in use in several locations. The structure of the databases are identical, but the data is different. I am tasked with combining the data into one...
10
ryanvmcgee
by: ryanvmcgee | last post by:
Hello, I am fairly new at doing advanced databases outside of excel. I am trying to combine records in a database I will be using, none of the, CONCAT Queries or scripts I have found seem to...
8
by: situ | last post by:
Hello all, i have Database1 and database2, is it possible to make database connection to database2 by running stored procedure on database1. Thanks and Regards Situ
3
by: Vik Rubenfeld | last post by:
I have to search 2 mySQL tables, and show the user a single sorted list that contains all the results from both mySQL queries. My question is, how do you get all the resulting items from both...
2
by: zalek | last post by:
Hello, I have at home and at work a program that adds info to a local Access data base. That means that my home Access and work Access database are not in sync. My question - how to sync both...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.