Unix Technical Forum

Backup DB2 UDB 7.x on Linux Restore on Windows?

This is a discussion on Backup DB2 UDB 7.x on Linux Restore on Windows? within the DB2 forums, part of the Database Server Software category; --> Hi, I'm new to DB2 and have what may be a stupid question: Is it possible to backup a ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 03:29 AM
Al
 
Posts: n/a
Default Backup DB2 UDB 7.x on Linux Restore on Windows?

Hi,

I'm new to DB2 and have what may be a stupid question:

Is it possible to backup a DB2 UDB 7.x database on a Linux server and
restore it on a Win2k server (both running the same version of DB2)?

Backups on the Linux box seem to be a single file. Backups on the Windows
box seem to be a directory structure.

The DBMOVE command doesn't look like the answer since it leaves behind CLOB
data.

Am I missing something?

-Al



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 03:29 AM
db2inst1
 
Posts: n/a
Default Re: Backup DB2 UDB 7.x on Linux Restore on Windows?

This has exactly what you are looking for.

http://www-106.ibm.com/developerwork...dm-0403melnyk/

CLOB data is not a problem..

GOODLUCK

Al wrote:
> Hi,
>
> I'm new to DB2 and have what may be a stupid question:
>
> Is it possible to backup a DB2 UDB 7.x database on a Linux server and
> restore it on a Win2k server (both running the same version of DB2)?
>
> Backups on the Linux box seem to be a single file. Backups on the

Windows
> box seem to be a directory structure.
>
> The DBMOVE command doesn't look like the answer since it leaves

behind CLOB
> data.
>
> Am I missing something?
>
> -Al


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 03:29 AM
Knut Stolze
 
Posts: n/a
Default Re: Backup DB2 UDB 7.x on Linux Restore on Windows?

Al wrote:

> Hi,
>
> I'm new to DB2 and have what may be a stupid question:
>
> Is it possible to backup a DB2 UDB 7.x database on a Linux server and
> restore it on a Win2k server (both running the same version of DB2)?


No, you can't. Have a look at the documentation for RESTORE DATABASE.
http://publib.boulder.ibm.com/infoce...e/r0001976.htm

> The DBMOVE command doesn't look like the answer since it leaves behind
> CLOB data.


How's that? After all, the documentation says that LOBs are handled:
http://publib.boulder.ibm.com/infoce...e/r0002079.htm

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 03:29 AM
Al
 
Posts: n/a
Default Re: Backup DB2 UDB 7.x on Linux Restore on Windows?

----- Original Message -----
From: "Knut Stolze"

> Al wrote:


> > The DBMOVE command doesn't look like the answer since it
> > leaves behind CLOB data.


> How's that? After all, the documentation says that LOBs are
> handled:
>

http://publib.boulder.ibm.com/infoce...e/r0002079.htm


Thanks for responding. I may be misunderstanding the docs, but what leads me
to believe this is:

| tabnnnc.yyy
| The exported LOB files of a specific table.
| "nnn" is the table number. "c" is a letter of
| the alphabet. "yyy" is a number ranging from
| 001 to 999.

| These files are created only if the table being
| exported contains LOB data. If created, these
| LOB files are placed in the "lobpath" directories.
| There are a total of 26 000 possible names for
| the LOB files.

This would seem to imply that tables with one or more CLOB fields and more
than 26,000 rows (a comically small number for a production DB) will lose
data. Is this really the case?

-Al


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 03:29 AM
Al
 
Posts: n/a
Default Re: Backup DB2 UDB 7.x on Linux Restore on Windows?

Thanks. My concern with the CLOB data is that it appears that only the first
26,000 rows come across due to the naming scheme. I'll try experimenting
with multiple LOBPaths and see if that works.

-Al


"db2inst1" wrote in message
news:1103158829.765100.238460@z14g2000cwz.googlegr oups.com...
This has exactly what you are looking for.

http://www-106.ibm.com/developerwork...dm-0403melnyk/

CLOB data is not a problem..

GOODLUCK

Al wrote:
> Hi,
>
> I'm new to DB2 and have what may be a stupid question:
>
> Is it possible to backup a DB2 UDB 7.x database on a Linux server and
> restore it on a Win2k server (both running the same version of DB2)?
>
> Backups on the Linux box seem to be a single file. Backups on the

Windows
> box seem to be a directory structure.
>
> The DBMOVE command doesn't look like the answer since it leaves

behind CLOB
> data.
>
> Am I missing something?
>
> -Al



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 03:29 AM
Knut Stolze
 
Posts: n/a
Default Re: Backup DB2 UDB 7.x on Linux Restore on Windows?

Al wrote:

> ----- Original Message -----
> From: "Knut Stolze"
>
>> Al wrote:

>
>> > The DBMOVE command doesn't look like the answer since it
>> > leaves behind CLOB data.

>
>> How's that? After all, the documentation says that LOBs are
>> handled:
>>

>

http://publib.boulder.ibm.com/infoce...e/r0002079.htm
>
>
> Thanks for responding. I may be misunderstanding the docs, but what leads
> me to believe this is:
>
> | tabnnnc.yyy
> | The exported LOB files of a specific table.
> | "nnn" is the table number. "c" is a letter of
> | the alphabet. "yyy" is a number ranging from
> | 001 to 999.
>
> | These files are created only if the table being
> | exported contains LOB data. If created, these
> | LOB files are placed in the "lobpath" directories.
> | There are a total of 26 000 possible names for
> | the LOB files.
>
> This would seem to imply that tables with one or more CLOB fields and more
> than 26,000 rows (a comically small number for a production DB) will lose
> data. Is this really the case?


I don't know for sure but you can specify multiple directories, and you can
place the 26000 files (the alphabet has 26 letters and the "yyy" numbers
rango from 000 through 999) in each of the directories.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com