Anda di halaman 1dari 47

Presented by Jarek Miszczyk

SCEM for OpenStack


Rochester Minnesota USA

Beyond the Glitz - Dispelling DB2 Myths

2013 IBM Corporation

2013 IBM Corporation

The Situation
Java, PHP, .NET
programmers

Traditional RPG and


COBOL programmers

Educate
Illuminate
Handle Objections

SQL Server,
Oracle,
DB2 LUW
DBAs

2013 IBM Corporation

2013 IBM Corporation

2013 IBM Corporation

2013 IBM Corporation

2013 IBM Corporation

2013 IBM Corporation

2013 IBM Corporation

No, were not using DB2, were using DDS, PFs, LFs and RPG

We want to use SQL, how do we get DB2?

We need to move to another platform to use a relation database

IBM told us we need to buy DB2, so we are moving to SQL Server

2013 IBM Corporation

2013 IBM Corporation

DB2 for i is back level as compared to the other DB2 family members
How do I get version 10 of DB2 for i?
DB2 for i is not strategic
DB2 for i has not been enhanced for many years
DB2 for i is not a relational database management system
DB2 for i is closed and proprietary
On Oracle we partition, how do I do this with DB2 for i?
We extract data from IBM i to Windows to avoid green screens

2013 IBM Corporation

2013 IBM Corporation

DB2 for i cannot handle SQL queries


SQL is slower than "native"
RPG is better than SQL
DB2 for i cannot handle our data warehouse
Running SQL on IBM i kills the system
We moved to SQL Server to run SQL better
We use QUERY/400 to extract data because ODBC is slow
This database is slow because its not partitioned
2013 IBM Corporation

2013 IBM Corporation

We dont need a DBA, we use AS/400


DB2 for i is more expensive than other databases

System i Navigator is a risk to the security of the system, we do not


allow anyone to use it
There are limited DBA tools available for DB2 for i
I dont know about AS/400, but I can do it with Oracle
Whats a table, we use physical files
We are using .NET so its best to use SQL Server
2013 IBM Corporation

Let me Summarize

2013 IBM Corporation

Reasons given for wanting to move off DB2 for i?


Capability

it doesnt have the functionality that we need

Capacity

the database cant handle our growth

Convenience

the other database is easier to use and maintain

Contraptions

there are more tools available over there

Crowd

everyone else is doing it, right?

Creaky

this box doesnt have anything new

Credulous

I dont know anything about IBM i

Cost

Im sure its more expensive to stay on IBM i

2013 IBM Corporation

The Truth
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost

DB2 for i is both ISO 2011 and ANSI 2011 SQL


Standards (core) compliant
DB2 for i provides a fully functional standard SQL
programming language in addition to rich data
access capabilities (and the first to do so)
DB2 for i has always been a strong transaction
processing database, with very high data integrity
DB2 for i has technologies specially suited for
data warehouse and BI environments
Encoded Vector Indexes
LPG technology
SMP parallelism
Autonomic Learning
MQT summarized tables

2013 IBM Corporation

The Truth
Capability
Capacity

Ability to handle 435 Terabytes of data and/or 1,100


billion rows in a single SQL table on a single system

Convenience

DB2 for i can bring to bear all configured processors


against a single SQL statement using Symmetric
Multiprocessing

Contraptions

Or run thousands of separate queries at a time


Or mix the workloads

Crowd
Creaky
Credulous
Cost

2013 IBM Corporation

The Truth
Capability
Capacity

DB2 for i as an integrated database is one of the


easiest databases to use and maintain
which is a blessing and a curse no DBA to talk about it!

DB2 for i provides lots of interfaces for access


Convenience
Contraptions
Crowd
Creaky

DRDA, JDBC, CLI, ODBC, .net, embedded, PHP


driver.

Oracle is synonymous with Oracle DBA


Ever wonder why?

SQL Server configurations are often configured as


farms
Ever wonder why?

Credulous
Cost

2013 IBM Corporation

The Truth
Capability
Capacity

IBM i Navigator provides a rich database


management interface
Rational and InfoSphere tooling available
from IBM

Convenience
3rd party solutions via a vast ISV community
Contraptions
Crowd

Various access drivers included, such as


JDBC, ODBC and CLI offer plug and play
capability for tools

Creaky
Credulous
Cost

2013 IBM Corporation

The Truth
Capability
Capacity

Ah, heres a root cause


IBM stinks at marketing compared to the others

Convenience
Contraptions
Crowd
Creaky

By the way:
Over 100,000 enterprises run on IBM i
With 100,000s of systems
With millions of users

In 115 countries
Credulous
In virtually all industries
Cost

2013 IBM Corporation

The Truth
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost

IBM i leverages the latest capabilities in


Power Systems Technology
DB2 for i has dozens of patents, most which
remain industry leading edge
Automatic column stats, Autonomic learning,
Automatic index creation, LPG, Encoded
Vector Indexes

JVM is the latest from IBM research


PHP is full function on IBM i
Integrated Web Server

And, I mean this sincerely:

RPG Rocks!
2013 IBM Corporation

The Truth
Capability
Capacity
Convenience
Contraptions

Once again, IBM stinks at marketing


Educate yourself and educate others!
Youre here. Perfect!
Avoid throwing out the baby with the bath water

Crowd
Creaky
Credulous
Cost

2013 IBM Corporation

The Truth
Acquisition costs*
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost

18% less than x86 servers with Windows


Server and SQL Server databases
43% less than x86 servers with Linux and
Oracle databases

Three-year ongoing costs* full time


equivalent administrators
55% less than Windows / SQL Server
60% less than Linux / Oracle

IBM provides an IBM i for BI appliance


starting at ~$40K (US)
Requires no additional training to learn a new
operating environment
Comes with everything needed to have a
reporting server up and running
Many industry appliances start well over
$100K, several over $500K

* ITG Management Brief: Value Proposition for IBM Power Systems Servers and IBM i - Minimizing Costs and Risks for Midsize Businesses; January 2011
2013 IBM Corporation

2013 IBM Corporation

Search for Corruption

2013 IBM Corporation

I think you will all agree with me that database corruption is one of the
nightmares in the life of a DBA.

The most common cause of database corruption (more than 95% of all
corruption cases) that we in PSS encounter turn out to be caused by a
platform issue, which is a layer below the SQL Server. The most common
individual cause is a 3rd party driver or firmware bug. The next most
common cause is an actual hardware fault and are typically either of
Disk, Controller, CPU, or Memory Module(s). As of all Database
Management Systems, SQL Server heavily relies on the Disk Subsystem
for storing and retrieving data. Any issues in the Disk Subsystem, the
Disk Controllers or the Communication Channels or even the Disk Drivers
can cause databases to become corrupt.
from
Database Corruption Part 1 :: Introduction to Database Corruption in SQL Server
http://blogs.msdn.com/b/suhde/archive/2009/04/08/introduction-to-database-corruption-in-sql-server.aspx
2013 IBM Corporation

My SQL Server Database is Corrupt - Now What?!

I was asked how often corruption really occurs in the real world.
My answer was, "hundreds to thousands of times every week across the world, in the tens
of millions of SQL Server databases.".

Every single week I receive multiple emails asking for some advice about corruption
recovery. When I'm teaching about corruption in our High Availability and Disaster Recovery
Immersion Event, I always tell the class that I expect every DBA to see database corruption
at some point during their career.

I'll end by saying this: if you think that corruption won't happen to you at some point in your
career, I think you'll be surprised. Be prepared!

from
http://www.sqlservercentral.com/articles/Corruption/96117/

2013 IBM Corporation

Thus, one of the most important and often-overlooked index tuning


tasks is managing the index page's fill factor. In other words, when you
rebuild or reorganize an index putting its pages back in order so that
SQL Server doesnt have to jump around how much free space
should you leave on each page?

from
Index tuning for the reluctant DBA
http://searchsqlserver.techtarget.com/tip/Index-tuning-for-the-reluctant-DBA?

2013 IBM Corporation

Oracle DBA Salaries are among the highest in the IT


industry, with Oracle DBA salaries now averaging over
$100,000 per year.

from
Oracle News by Burleson Consulting
December 3, 2011
http://www.dba-oracle.com/t_2012_dba_salary.htm

2013 IBM Corporation

2013 IBM Corporation

IBM's DB2 Family

Three code bases...


Based on the system history, architecture and operating system
DB2 for i (System i, iSeries, AS/400)
DB2 for z (System z, zSeries, S/390, mainframe)
DB2 for luw (Linux, UNIX, Windows , System p, System x, distributed)

Version/Release is based on packaging and level of integration


DB2 for i 7.1 plus TR6 is the latest and greatest

2013 IBM Corporation

DB2 Family
z/OS, IBM i, Linux/Unix/Windows (LUW)
Introducing Enhancements

Managing family compatibility


Information Management Architecture Board

25

SQL Language Council


20

Selective technology sharing


15

Designs, algorithms, and code


10

Two Types of Differences


Short term differences based on different
release dates and different customer
priorities
Long term differences based on Operating
System differences
(isolated to database configuration,
management, and utilities)

0
z/OS 10.1

IBM i 7.1

LUW 9.7

Order to Implement
1st

2nd

3rd

2013 IBM Corporation

DB2 for i Key Differences


Not a separate product the RDBMS is integrated into IBM i
IBM i operating system uses DB2 for i and vice versa
RDBMS not a separate charge, but a few priced options or LPPs

DB2 Multisystem

DB2 Symmetric Multiprocessing

Query Manager and SQL Development Kit

DB2 Web Query

Release numbering is not the same, or equivalent to other DB2 members


Native and SQL Interfaces preserves investment
Excellent interoperability and national language support
Easier to own, use and maintain
Management GUI via
IBM i Navigator (windows client)
Navigator for i (web client)
2013 IBM Corporation

DB2 Family Products

InfoSphere Data Architect


Enterprise data modeling and management
Compare & synchronize
Version Control
Forward & reverse engineering

Model analyzer for enterprise standard


conformance
Database development SQL and Java
Procedures and Functions

IBM Data Studio


SQL procedures
Java procedures
External procedures
Functions
Run and Deploy
Graphical Debug
SOA

2013 IBM Corporation

Leadership of DB2 for i


ISO/ANS SQL Standard - Core
Oracle 11g
Microsoft SQL Server 2012
DB2 for z/OS 10
DB2 for LUW 9.7
DB2 for i 7.1

10

20

30

40

50

60

70

80

90

IBM Power Systems Platform Leader


in SAP Query Performance

Ease of Use - Self Managing


Typical DBA Tasks

DB2 for i

Manage DASD Space Allocation


Review Table Space Allocations & Extents
Review & Balance Indexes
Application Rebinding
Maintain Database Integrity
Update Database Statistics
Synchronized OS & DB User Security
Reload Data for Hardware & Software Upgrades
Load Data into Data Base
Build and Manage DB Backup & Recovery
Create & Review Indexes for Tables
Performance Analysis & Tuning (DB & System)
Create and Maintain DB Schema

Automated DB Performance Profiling

Automated
Automated
Automated
Automated
Automated
Automated
Automated
Automated
Parallel Data Import/Export
System i Navigator
System i Navigator
System i Navigator
System i Navigator & 3rd Party Tools (Infosphere
Data Architect, ERwin, PowerDesigner,
Embarcedero,etc.)
Centerfield HomeRun

Advanced DB Performance Analysis & Tuning

System i Navigator - Certerfield HomeRun

Data Replication & Consolidation

Multiple IBM & 3rd Party Products

Integrated Security

Query Navigation Steps/hour

SAP BI Mixed Load Benchmark


300000
250000
200000
150000
100000

POWER7
delivers 56%
improvement

50000
0
POWER6 8-Core
IBM i 6.1

POWER7 8-Core
IBM i 6.1

IBM i 7.1 and


POWER7 deliver
80% Improvement

POWER7 8-Core
IBM i 7.1

Self-protecting
User profiles integration (IBM
i and SQL)
Object & column level
privileges
Row-level authority via views,
table functions, and/or exits
Authorization lists
Program adopted authority
Extensive auditing
Kerberos & EIM

Encryption

128-bit encryption (3DES & AES)


SSL communications
CGA Cryptographic Service
Provider
Interfaces
Java Cryptography Extension
CCA Hardware APIs
Cryptographic Services APIs
SQL ENCRYPT / DECRYPT
Key Management
Field Procedures

2013 IBM Corporation

ISO/ANS Standard Limits


Database Constructs

FIPS

Length of an identifier (in bytes)


Length of CHARACTER datatype (in bytes)

Oracle 11g

Microsoft SQL
Server 2008 R2

DB2 for i
V7R1

DB2 for LUW


V9.7

DB2 for z/OS


V10

18

30

128

128

128

128

240

2000

8000

32766

254

255

Decimal precision of NUMERIC datatype

15

38

38

63

31

31

Decimal precision of DECIMAL datatype

15

38

38

63

31

31

Decimal precision of INTEGER datatype

38

10

10

10

10

Decimal precision of SMALLINT datatype

38

Binary precision of FLOAT datatype

20

126

53

53

53

53

Binary precision of REAL datatype

20

63

24

24

24

21 or 24

Binary precision of DOUBLE PRECISION datatype

30

126

53

53

53

53

Columns in a table

100

1000

1024

8000

1012

750

Values in an INSERT statement

100

1000

1024

8000

1012

750

Set clauses in an UPDATE statement


Length of a row *

20

1000

1024

8000

1012

750

2000

2000000 *

8060 *

32766 *

32 677 *

32714 *

Columns in a UNIQUE constraint

16

120

64

64

Length of a UNIQUE constraint

120

.5
DB_BLOCK_SIZE

900

32K

8192

2000

Length of foreign key column list

120

.5
DB_BLOCK_SIZE

900

32K

8192

2000

Columns in a GROUP BY clause

1012

750

Length of GROUP BY column list

120

Sort specifications in ORDER BY clause


Length of ORDER BY column list
Columns in a referential integrity constraint

6
120

15

Cursors simultaneously open

10

* LO B a nd lo ng va rcha r colu m n s a re in add ition to this lim it

255

100

Limited by
length

DB_BLOCK_SIZE

255
DB_BLOCK_SIZE

Tables referenced in a SQL statement

Items in a SELECT list

32

8060

32766

32677

16000

Limited by
length
8060

Limited by
length
32766

1012

750

32677

16000

16

120

64

64

32
No limit
OPEN_CURSORS

1000

Limited by
length

No limit

1000

2 gig

No limit
4096

8000

No limit

225

No limit

No limit

1012

750

Largest limit
2013 IBM Corporation

DB2 for i Interfaces OPEN for Business


SQL Interfaces
JDBC

Native Interfaces
Cobol RPG C or
C++

START
READ

SETLL
READ

Ropen
Rread

START
READ

SETLL
READ

C or C++

Ropen
Rread

RPG

C or
C++

Embedded SQL
Cobol

SQL Table or View or


DDS Physical or Logical File

Distributed Data
Management (DDM

RPG

Cobol

SQLExecDirect

SQL FETCH SQLExecDirect

SQLFETCH SQLExecDirect

SQLFETCH

123 Fish, Joe


124 Olson, Ole
125 Smith, Sally
126 Johnson, John
127 Smith, Jim

Cobol

CLI

Toolbox JDBC Driver


Native JDBC Driver

Host Server (ZDA)

System i Access
Optimized APIs

System i Access
Drivers

JDBC
ODBC
.NET ADO

555
501
555
501
555

20000
20000
32000
38000
30000

Cobol

RPG

C or
C++

QSQPRCED

QSQPRCED

Distributed Relational
Database (DRDA)

JDBC
ODBC
.NET ADO

C or
C++

EXEC SQL
FETCH
EXEC SQL

FETCH
EXEC SQL

FETCH

001
501
555
001
555

DB2 Connect Drivers

RPG

Cobol

QSQPRCED

QSQPRCED
API

Extended Dynamic
Remote SQL (XDA)

RPG

C or
C++

EXEC SQL
FETCH
EXEC SQL

FETCH
EXEC SQL

FETCH

JDE
SAP

2013 IBM Corporation

Data Centric Application Infrastructure

Why use IBM Power Systems and IBM i

2013 IBM Corporation

IBM POWER - the Data-centric Infrastructure

DB2 for i
IBM i

Power System

IBM POWER7 and POWER7+


Scalable with up to 256 CPUs
Very Large Memory System
Very Large I/O System
Symmetric Multiprocessing
Resource Virtualization
Logical Partitioning
Dynamic Resource Sharing
Support for running multiple OS
Reliable
Easy to Install
Easy to Upgrade
Easy to Own
2013 IBM Corporation

IBM POWER - the Data-centric Infrastructure


State of the Art Operating System
Multi-User from the ground up
Object based
Single Level Storage
Storage Management
Work Management
Technology Independence

DB2 for i

IBM i
Power System

Secure
Robust
Reliable
Easy to Install
Easy to Use
Easy to Upgrade
2013 IBM Corporation

IBM POWER - the Data-centric Infrastructure


State of the Art Integration
State of the Art Query Optimizer
State of the Art Database Engine
Object based
Scalable
Parallelism without partitioning
Remote Journaling (log shipping)

DB2 for i
IBM i
Power System

Secure
Robust
Reliable
Open
Easy to Use
2013 IBM Corporation

IBM Power + IBM i for Data

The
Advantage?

2013 IBM Corporation

IBM Power + IBM i for Data

Solutions

IBM i

The
key to
Simplicity!

Integration

POWER

DB2

The
key to
Productivity!
2013 IBM Corporation

Open for Discussion

2013 IBM Corporation

Anda mungkin juga menyukai