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 > DB parameters that could help peformance of load from cursor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-07, 03:21
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
DB parameters that could help peformance of load from cursor

Hi,
I need to transfer multiple tables from one DB to another DB. I have chosen "load from cursor" method.
I created multiple "load from cursor" commands from remote database using federated system and I need to execute them in parallel. Are there any DB2 parameters that could benefit (speed up) performance if they are changed/increased?

Sample:
Code:
CREATE NICKNAME ADMIN.SOURCE_TABLE FOR MYSYSTEM.ADMIN.SOURCE_TABLE
DECLARE MYCURSOR CURSOR FOR SELECT COL1 FROM ADMIN.SOURCE_TABLE;
LOAD FROM MYCURSOR OF CURSOR INSERT INTO ADMIN.TARGET_TABLE;
So what are DB parameters that could help increase performance?

My system:
Source (remote) DB: DB2/VSE/zSeries v7.5
Target DB: DB2/Linux/zSeries v8.2 FP11

Thanks,
Grofaty

Last edited by grofaty; 09-12-07 at 03:29.
Reply With Quote
  #2 (permalink)  
Old 09-12-07, 04:30
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You should use separate connections to avoid a serialization of the different LOAD operations. I would also declare the cursor as FOR READ ONLY to allow blocked cursor operations. Other than that, it's basic performance considerations that apply.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 09-12-07, 04:37
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
stolze,
thanks for help.

When this commands are executed there are no other application on source and on target database. So the "for read only" is probably not needed.

Thanks,
Grofaty
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