You are on page 1of 9
DB2's GOT TALENT
DB2's GOT TALENT

Mr. ABC

called there is a “fire” in his shop !

He is ready to give his exit interview !!

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc.

1

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

essence he required

In

H

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc.

E L

P

!

2

3/19/2013

Here comes

Renu’s rescue

Squad With db2 Tools

Asked for the connection to

the database

DB2's GOT TALENT

server

Presented by Renu Sharma of ACE DBA Consulting Inc.

3

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.

5

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 application’s

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 SQL’s

runtime goes more than 1 second

Created more email alerts for website sql’s 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.

7

Latest Update From Mr. ABC

Mr. ABC is now owner
Mr. ABC
is now
owner

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc

8

LINKS AND RESOURCES

Options for improving load performance

How to generate email notifications for threshold violations

Determining when to execute SQL statements statically or dynamically in SQL

applications

Contact Info:

Renu Sharma ACE DBA Consulting Inc.

Contact : 732-342-7630 : 732-995-9963

3/19/2013

DB2's GOT TALENT

Presented by Renu Sharma of ACE DBA Consulting Inc.

9