Sunteți pe pagina 1din 9

DB2's GOT TALENT

called there is a fire in his shop ! He is ready to give his exit interview !!

Mr. ABC

Scenario
Data load did not complete on time Compliance was unhappy till yesterday as the data loads were taking longer, today they are furious as they have stale data Website click used to take 1 second now it takes 10 minutes Data load failed with SQLSTATE=57011 and error code SQL0289N In essence he required H E L P !
3/19/2013 DB2's GOT TALENT Presented by Renu Sharma of ACE DBA Consulting Inc. 2

Here comes Renus rescue Squad With db2 Tools Asked for the connection to the database server
DB2's GOT TALENT Presented by Renu Sharma of ACE DBA Consulting Inc.

Steps To Solve The Problem


Error Code SQL0289N unable to allocate new pages to table space Table space was created over a single container (file type) Altered the table space added space Created the table space over multiple containers
3/19/2013 DB2's GOT TALENT Presented by Renu Sharma of ACE DBA Consulting Inc. 4

Steps To Solve The Problem

Load statement did not have


DATA BUFFER CPU_PARALLELISM DISK_PARALLELISM FASTPARSE Created SYSPROC.ADMIN_CMD for load statement with changed parameters

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc.

Steps To Solve The Problem


New load statement with changed parameters now takes 40% less time Application was using Perl and SQL SQL was dynamically getting the result set 2 Days before new indexes were added somehow SQL started using them Created Store procedure for the SQL and called it from the PERL Code That brought back the applications execution time to 1 second
3/19/2013 DB2's GOT TALENT Presented by Renu Sharma of ACE DBA Consulting Inc. 6

Steps to Solve the Problem


Created an email alert for the table space , if 70% filled Created an email alert if SQLs runtime goes more than 1 second Created more email alerts for website sqls run time greater than 5 minutes or greater than 500 timerons

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc.

Latest Update From Mr. ABC

Mr. ABC is now owner

3/19/2013

LINKS AND RESOURCES


Options for improving load performance http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2F com.ibm.db2.luw.admin.dm.doc%2Fdoc%2Fc0004605.html How to generate email notifications for threshold violations http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2F com.ibm.db2.luw.admin.wlm.doc%2Fdoc%2Ft0057200.html

Determining when to execute SQL statements statically or dynamically in SQL applications http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2F com.ibm.db2.luw.apdv.embed.doc%2Fdoc%2Fc0005785.html Contact Info: Renu Sharma ACE DBA Consulting Inc. renusharma@db2dbas.com Contact : 732-342-7630 : 732-995-9963

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc.

S-ar putea să vă placă și