IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Diff b/w UNLOAD and IMAGE COPY


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Wed May 17, 2006 1:02 pm
Reply with quote

Hi,

as per I know that UNLOAD is used to load the table data to a flat file and IMAGE COPY is used to take the backup of a table.

May I know the difference between IMAGE COPY and UNLOAD as both the things are extracting the data from the table to a flat file......

and also

May I know whether can we both the things at the same time.........

thanx in advance............

pavan
Back to top
View user's profile Send private message
Rottenbacher

New User


Joined: 17 May 2006
Posts: 1

PostPosted: Wed May 17, 2006 7:59 pm
Reply with quote

Hi,

image copy produces a binary copy of the data, including all the internal db2 data (like object id, position of data within tablespace, etc.).

If the tablespace was not reorganized and all the data was in bad order within the tablespace, recovering to the imagecopy will put the tablespace in the same bad reorganization state.

When you drop a table and recreate it without any changes to the tabledefinition, the table will get a new obid by db2.

The old imagecopy still contains the obid of the table before dropping the table. Without translating old obids to new obids you can not use old imagecopies.

Unload contains the data in a more readable way. The data is structured in a way a load-utility may use it.

In case you want to move the data to different environment unload is probably your choice. Unload is slower though and has other drawbacks.


Yes you can use both unload and imagecopy because they target different situations.

regards Klaus
Back to top
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Thu May 18, 2006 10:47 am
Reply with quote

many many thank you Rottenbacher

cheers.............

pavan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts changing defaults in db2 admin - Unlo... DB2 0
Search our Forums:

Back to Top