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 > Performance Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-08, 10:03
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
Performance Issue

Hi folks

I have a ddl file that contains 100K statements(It contains drops , creation of table , creation of indexes,commits).

This process ran all night and still finished only 20% of the statements.
All it is doing is dropping the table and recreating table and adding indexes to the new table. I dont understand why DB2 is processing these statement so slow. What parameters can i tunne to improove the performance of DDLs(creation of objects).

Iam on AIX5.3 UDB8.1 fixpack6.

In the past 300K statement ran in less than two hours and iam trying to figure out why this perticular DDL is running so long.

Any ideas !!!
Reply With Quote
  #2 (permalink)  
Old 01-31-08, 12:30
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
The first place I would look would be the disk subsystem. Try to track the IO waits and go from there
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
Reply With Quote
  #3 (permalink)  
Old 01-31-08, 14:46
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Convert your script to a shell script were you can add a "date" command after each one to figure out which statements are taking a long time.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 02-01-08, 14:18
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Do you have dropped-table-recovery turned on for your tablespaces? That may slow down the DROP statements.

Also, if you add data to the tables, it is usually better to first load the data and then create indexes and foreign keys.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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