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 > exporting LOB related tables and loading back.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-04, 12:59
kingno1 kingno1 is offline
Registered User
 
Join Date: Mar 2004
Posts: 84
exporting LOB related tables and loading back.

Hi,
I have a DB2 8.1.5 DB where I loaded data from Oracle using MTK.
I want to export the data and load them back..(I inherited the script and responsible for maintaining from now on)..

Here is the syntax I am using for importing data back into empty schema.
-------------
db2move agile import -io insert -u db2admin -p agile
db2 import from tab8.ixf of ixf lobs from D:\Agile9DB2Tmp\ modified by lobsinfile insert into ADMIN_HISTORY_DETAILS
-----------------------------
db2move to load the regular data and db2 import to load LOB related tables.

When I looked at the existing scripts, DB2 export is exporting the lob related tables as
tab01.ixf, tab01.msg, tab1a.001 while for regular tables, it is exporting as tab02.ixf, tab02.msg only. What will be the export command that does that?
Thanks.
__________________
Kishore
Reply With Quote
  #2 (permalink)  
Old 06-04-04, 14:26
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by kingno1
Hi,
I have a DB2 8.1.5 DB where I loaded data from Oracle using MTK.
I want to export the data and load them back..(I inherited the script and responsible for maintaining from now on)..

Here is the syntax I am using for importing data back into empty schema.
-------------
db2move agile import -io insert -u db2admin -p agile
db2 import from tab8.ixf of ixf lobs from D:\Agile9DB2Tmp\ modified by lobsinfile insert into ADMIN_HISTORY_DETAILS
-----------------------------
db2move to load the regular data and db2 import to load LOB related tables.

When I looked at the existing scripts, DB2 export is exporting the lob related tables as
tab01.ixf, tab01.msg, tab1a.001 while for regular tables, it is exporting as tab02.ixf, tab02.msg only. What will be the export command that does that?
Thanks.
EXPORT TO xxx.ixf LOBS TO /directory/where/lobs/go LOBFILE tab1a modified by lobsinfile select...
__________________
--
Jonathan Petruk
DB2 Database Consultant
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