Connecting Tech Pros Worldwide Forums | Help | Site Map

Combine 2 databases into 1 database?

Joost Kraaijeveld
Guest
 
Posts: n/a
#1: Nov 12 '05
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.Kraaijeveld@Askesis.nl
web: www.askesis.nl



Serge Rielau
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Combine 2 databases into 1 database?


Joost Kraaijeveld wrote:[color=blue]
> 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?
>[/color]
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
Brian Wilkins
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Combine 2 databases into 1 database?


"Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl> wrote in message news:<pcCyc.3160$Zs4.2430@amsnews03.chello.com>...[color=blue]
> 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?
>[/color]
As well as a federated system, consider having a single database with
two different schema names.
Joost Kraaijeveld
Guest
 
Posts: n/a
#4: Nov 12 '05

re: Combine 2 databases into 1 database?


Serge Rielau wrote:[color=blue]
> Is the datasharing between the two DBs massive (lots of data, often
> and for many tables?)[/color]
Often, not much, 15 tables.
[color=blue]
> If you read up of federated (tons of material on developerWorks) you
> may be able to get away by creating a few nicknames.[/color]
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.Kraaijeveld@Askesis.nl
web: www.askesis.nl


Serge Rielau
Guest
 
Posts: n/a
#5: Nov 12 '05

re: Combine 2 databases into 1 database?


Joost Kraaijeveld wrote:[color=blue]
> Serge Rielau wrote:
>[color=green]
>>Is the datasharing between the two DBs massive (lots of data, often
>>and for many tables?)[/color]
>
> Often, not much, 15 tables.
>
>[color=green]
>>If you read up of federated (tons of material on developerWorks) you
>>may be able to get away by creating a few nicknames.[/color]
>
> Do I need the Enterprise Edition for this or does the Workgroup Edition also
> work?
>[/color]
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
Joost Kraaijeveld
Guest
 
Posts: n/a
#6: Nov 12 '05

re: Combine 2 databases into 1 database?


Serge Rielau wrote:[color=blue]
> 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.[/color]
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.Kraaijeveld@Askesis.nl
web: www.askesis.nl


Blair Adamache
Guest
 
Posts: n/a
#7: Nov 12 '05

re: Combine 2 databases into 1 database?


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:
[color=blue]
> Joost Kraaijeveld wrote:[color=green]
> > Serge Rielau wrote:
> >[color=darkred]
> >>Is the datasharing between the two DBs massive (lots of data, often
> >>and for many tables?)[/color]
> >
> > Often, not much, 15 tables.
> >
> >[color=darkred]
> >>If you read up of federated (tons of material on developerWorks) you
> >>may be able to get away by creating a few nicknames.[/color]
> >
> > Do I need the Enterprise Edition for this or does the Workgroup Edition also
> > work?
> >[/color]
> 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[/color]

Serge Rielau
Guest
 
Posts: n/a
#8: Nov 12 '05

re: Combine 2 databases into 1 database?


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
Joost Kraaijeveld
Guest
 
Posts: n/a
#9: Nov 12 '05

re: Combine 2 databases into 1 database?


Hi Serge,
[color=blue]
> 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).[/color]

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




Serge Rielau
Guest
 
Posts: n/a
#10: Nov 12 '05

re: Combine 2 databases into 1 database?


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
Closed Thread