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

Need help in DB2 Unload utility


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
salehi

New User


Joined: 30 Sep 2006
Posts: 14
Location: Iran

PostPosted: Wed Aug 22, 2007 11:50 am
Reply with quote

Hi all
I want to ask you something about DB2 UNLOAD program,
our UNLOADs are getting slower and slower time by time by increasing data in small rate !!!
maybe we are not using a good utility or either it's natural ,
but i 'am sure that IBM utilities should be much better than this
and maybe we are not using the appropriate ones,
for unloading we just create a primary master JCL in our sys1.proclib which accepts some parameters like table name ,region name and so on and uses IKJFT01 utility to copy a data set from one region to another one with simple renaming procedure
but i 've read some article which tells something about
Unload utility which is designed just for this purpose and this utility would bypass the SQL and directly work with table spaces leading to increase the speed.
Would u please give me a JCL sample of these utility or a good source with samples prepared...
also we are running DB2 V7.1 ..
now our jcll is like this ...

//UNLOADT PROC TABLE=,SPC='TRK,(1,300)'
//*
//* UNLOAD DATA FROM A TEST REGION DB/2 TABLE
//UNLOADT EXEC PGM=IKJEFT01,DYNAMNBR=20
//STEPLIB DD DSN=&DB2LOAD,DISP=SHR
//SYSREC00 DD DSN=BKUPUNLD.&SUBSYS..TS&TABLE.(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSALLDA,
// SPACE=(&SPC,RLSE),
// DCB=BLKSIZE=0
//SYSPUNCH DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD DUMMY
//SYSTSIN DD DISP=SHR,DSN=&PREFIX..FNETCOM.DB2DDL
//SYSIN DD DISP=SHR,DSN=&PREFIX..FNETCOM.UNLDCARD(&TABLE)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 28, 2007 5:04 am
Reply with quote

Hello,

Yes, the increase in time should be fairly linear. As you add more data, the unload/load will take longer.

Hopefully, when your data was defined/created, there was purge criteria specified also. If your data is forever-to-date, any unload/load process will continually take longer as will many/most of your other processes.

If you post your control statements, we may be able to offer suggestions.
Back to top
View user's profile Send private message
salehi

New User


Joined: 30 Sep 2006
Posts: 14
Location: Iran

PostPosted: Mon Nov 12, 2007 10:33 am
Reply with quote

Hi
Remember that always the problem may not be from the utility ,
they are other critical success factor which influence the time
for example in our site ofter a long investigation we found that
the volumes which was dedicated for unload datasets was MIRRORED
like all other volumes in Production system ,
mirroring may not have a sensible increase for small transaction but when you want to take an unload it would effect the total time so much,
mirroring a record of table(for online transactios) is not compatible with mirroing a full data base basckup(all tables) ,
so check the setting of your site through IS to see if the disks which you are going to take UNLOAD are mirrored? if so discard them from mirroring because it is not neccessary, in all site they are taking some other strategies for protecting such data(Daily back up, archiving log data to tape , ext ).

i hope this would help u.
Regards
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts REASON 00D70014 in load utility DB2 6
No new posts changing defaults in db2 admin - Unlo... DB2 0
Search our Forums:

Back to Top