If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Moving data from OS/390 to DB2 UDB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-04, 12:40
winterb winterb is offline
Registered User
 
Join Date: Jun 2004
Posts: 16
Question Moving data from OS/390 to DB2 UDB

What is the best or easiest way to move / copy data from a db2 database for OS/390 version (7.2) to a db2 database on UDB version (8) on Linux?

I have a few databases that have to be moved off the mainframe.

Thanks for any hellp.

Last edited by winterb; 06-09-04 at 14:10.
Reply With Quote
  #2 (permalink)  
Old 06-09-04, 15:15
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I would connect to the mainframe using DB2 Connect and EXPORT the data. Then use IMPORT or LOAD to get the data into Linux DB2 ..

The other option is to use federation ...
INSERT INTO ... SELECT * FROM ...

This may fill up the transaction logs ... If you are going to do just once, you can use 'Not logged intially' with the 'INSERT INTO' option ...

For larger tables, federation may throw memory related erros ..

Using db2look, you can get the CREATE TABLE statements ... You may have to customize it a bit to suit LUW version of DB2.



If this is a one time process, then you do not need to worry about licensing DB2 Connect ... If you are using ESE, you are automatically licensed for five user connections to the mainframe ... Otherwise, you will have to license ..

I have not tried V8 client connecting to V7 OS/390 server, but I do not expect any major limitations, though I suggest you to check the manuals ..

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.

Last edited by sathyaram_s; 06-09-04 at 15:18.
Reply With Quote
  #3 (permalink)  
Old 06-14-04, 12:41
famudba famudba is offline
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
by using SQL generate data files in db2 udb format , ftp those files to db udb server , lod it by using load utility

let me know , if you need more info


lekharaju ennam
Reply With Quote
  #4 (permalink)  
Old 06-15-04, 14:50
winterb winterb is offline
Registered User
 
Join Date: Jun 2004
Posts: 16
I like using the export /import but I"m having a problem with blob columns. when I do the export I get the following message

"SQL3132W The character data in column "REPORT_PDF" will be truncated to size
"32700".

I run into this same limitation on the mainframe using unload. I'm limited to the file length of 32700. I don't kow why but it seems to be doing the same thing on the export to the client.

Have you seen this before?, am I just doing something worng?
Any ideas?
Thanks Bob


"QUOTE=sathyaram_s]I would connect to the mainframe using DB2 Connect and EXPORT the data. Then use IMPORT or LOAD to get the data into Linux DB2 ..

The other option is to use federation ...
INSERT INTO ... SELECT * FROM ...

This may fill up the transaction logs ... If you are going to do just once, you can use 'Not logged intially' with the 'INSERT INTO' option ...

For larger tables, federation may throw memory related erros ..

Using db2look, you can get the CREATE TABLE statements ... You may have to customize it a bit to suit LUW version of DB2.



If this is a one time process, then you do not need to worry about licensing DB2 Connect ... If you are using ESE, you are automatically licensed for five user connections to the mainframe ... Otherwise, you will have to license ..

I have not tried V8 client connecting to V7 OS/390 server, but I do not expect any major limitations, though I suggest you to check the manuals ..

Cheers
Sathyaram[/QUOTE]
Reply With Quote
  #5 (permalink)  
Old 06-15-04, 17:40
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Can you post the EXPORT command you use

Cheers
sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 06-16-04, 08:14
winterb winterb is offline
Registered User
 
Join Date: Jun 2004
Posts: 16
Here's the command I used.


db2 "export to tpp018.ixf of ixf lobs to /home/db2inst1/unldir/blobs lobfile blobfile messages /home/db2inst1/expmesg.msg select * from ppguru.tpp018"


Thanks for you help.
Bob.


Quote:
Originally Posted by sathyaram_s
Can you post the EXPORT command you use

Cheers
sathyaram
Reply With Quote
  #7 (permalink)  
Old 06-16-04, 09:13
winterb winterb is offline
Registered User
 
Join Date: Jun 2004
Posts: 16
I found the problem. I had left out the modified by lobsinfile. Oops...

Thanks for all you help
Bob.

Quote:
Originally Posted by winterb
Here's the command I used.


db2 "export to tpp018.ixf of ixf lobs to /home/db2inst1/unldir/blobs lobfile blobfile messages /home/db2inst1/expmesg.msg select * from ppguru.tpp018"


Thanks for you help.
Bob.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On