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 > differance between import and load

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-07, 01:44
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile differance between import and load

hi
there is one big differance between db2 import and load

db2move databasename import - u username -p password

db2move databasename load - u username -p password


1-In import values overwrites but in load values appends

and more are................
Reply With Quote
  #2 (permalink)  
Old 06-16-07, 04:30
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
what is the question ?
there are many differences between import and load
1-In import values overwrites but in load values appends
there are options to specify if insert/replace... into table should be used..
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 06-25-07, 05:52
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Load writes directly to the data pages while import sends regular INSERT statements. The former is usually faster, the latter has the advantage that UDFs or triggers will be executed, for example.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 06-26-07, 03:18
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Quote:
Originally Posted by ankur02018
hi
there is one big differance between db2 import and load

db2move databasename import - u username -p password

db2move databasename load - u username -p password


1-In import values overwrites but in load values appends

and more are................
Don't know how db2move is working by default, but you can specify how import is working by using switches:
http://publib.boulder.ibm.com/infoce...e/r0002079.htm
You can replace or append data.

This is not the difference between load and import!
Reply With Quote
  #5 (permalink)  
Old 06-26-07, 03:24
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
General info about load vs. import:
There is also performance and locking difference. Load usually loads 100-times faster or more. Load doesn't use transaction logic. I only use load if I am 100% sure that I am the only user on the database - for example data warehouse table. I use import when I am not the only one on database or there are some triggers on tables or when I would like inserted data to be executed just like usually data through user application.

Using load in multi-user environment using the same tables as you load into, can be dangerous, because table lock or even tablespace lock can be applied.
Reply With Quote
  #6 (permalink)  
Old 06-28-07, 12:20
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile

Thanks for giving general informatiom on import and load

if there is more than please continue
Reply With Quote
  #7 (permalink)  
Old 06-29-07, 03:24
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
you can also try searching the web by Google. I found out this page:
http://www.thescripts.com/forum/thread185636.html
Hope this helps,
Grofaty
Reply With Quote
  #8 (permalink)  
Old 06-29-07, 11:52
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile

Quote:
Originally Posted by grofaty
Hi,
you can also try searching the web by Google. I found out this page:
http://www.thescripts.com/forum/thread185636.html
Hope this helps,
Grofaty
thnks my dear
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