Post on 29-Sep-2015
description
2013 IBM Corporation
Presented by Jarek MiszczykSCEM for OpenStackRochester Minnesota USA
Beyond the Glitz - Dispelling DB2 Myths
2013 IBM Corporation
2013 IBM Corporation
Traditional RPG and COBOL programmers
Java, PHP, .NETprogrammers
SQL Server,Oracle,
DB2 LUWDBAs
The Situation
EducateIlluminateHandle Objections
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
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
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
Ability to handle 435 Terabytes of data and/or 1,100 billion rows in a single SQL table on a single system
DB2 for i can bring to bear all configured processors against a single SQL statement using Symmetric Multiprocessing
Or run thousands of separate queries at a time Or mix the workloads
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
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 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?
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
IBM i Navigator provides a rich database management interface
Rational and InfoSphere tooling available from IBM
3rd party solutions via a vast ISV community
Various access drivers included, such as JDBC, ODBC and CLI offer plug and play capability for tools
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
Ah, heres a root cause
IBM stinks at marketing compared to the others
By the way:
Over 100,000 enterprises run on IBM i With 100,000s of systems With millions of users
In 115 countries
In virtually all industries
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
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!
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
Once again, IBM stinks at marketing
Educate yourself and educate others!
Youre here. Perfect!
Avoid throwing out the baby with the bath water
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
2013 IBM Corporation
The Truth
* ITG Management Brief: Value Proposition for IBM Power Systems Servers and IBM i - Minimizing Costs and Risks for Midsize Businesses; January 2011
Acquisition costs* 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
Capability
Capacity
Convenience
Contraptions
Crowd
Creaky
Credulous
Cost
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.
fromDatabase Corruption Part 1 :: Introduction to Database Corruption in SQL Serverhttp://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!
fromhttp://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?
fromIndex tuning for the reluctant DBAhttp://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.
fromOracle News by Burleson ConsultingDecember 3, 2011http://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)
Managing family compatibility Information Management Architecture Board SQL Language Council
Selective technology sharing Designs, algorithms, and code
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
5
10
15
20
25
z/OS 10.1 IBM i 7.1 LUW 9.7
1st 2nd 3rdOrder to Implement
Introducing Enhancements
2013 IBM Corporation
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)
DB2 for i Key Differences
2013 IBM Corporation
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
DB2 Family Products
2013 IBM Corporation
0
50000
100000
150000
200000
250000
300000
POWER6 8-CoreIBM i 6.1
POWER7 8-CoreIBM i 6.1
POWER7 8-CoreIBM i 7.1
SAP BI Mixed Load Benchmark
IBM i 7.1 and POWER7 deliver 80% Improvement
Q
u
e
r
y
N
a
v
i
g
a
t
i
o
n
S
t
e
p
s
/
h
o
u
r
POWER7 delivers 56% improvement
Leadership of DB2 for i
0 10 20 30 40 50 60 70 80 90
Typical DBA Tasks DB2 for iManage DASD Space Allocation Automated
Review Table Space Allocations & Extents AutomatedReview & Balance Indexes Automated
Application Rebinding AutomatedMaintain Database Integrity AutomatedUpdate Database Statistics Automated
Synchronized OS & DB User Security AutomatedReload Data for Hardware & Software Upgrades Automated
Load Data into Data Base Parallel Data Import/ExportBuild and Manage DB Backup & Recovery System i Navigator
Create & Review Indexes for Tables System i NavigatorPerformance Analysis & Tuning (DB & System) System i Navigator
Create and Maintain DB Schema System i Navigator & 3rd Party Tools (Infosphere Data Architect, ERwin, PowerDesigner,
Embarcedero,etc.)Automated DB Performance Profiling Centerfield HomeRun
Advanced DB Performance Analysis & Tuning System i Navigator - Certerfield HomeRun
Data Replication & Consolidation Multiple IBM & 3rd Party Products
IBM Power Systems Platform Leader in SAP Query Performance
ISO/ANS SQL Standard - CoreEase of Use - Self Managing
Integrated Security
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
Microsoft SQL Server 2012
Oracle 11g
DB2 for i 7.1
DB2 for LUW 9.7
DB2 for z/OS 10
2013 IBM Corporation
ISO/ANS Standard LimitsDatabase Constructs FIPS Oracle 11g Microsoft SQL
Server 2008 R2DB2 for i V7R1
DB2 for LUW V9.7
DB2 for z/OS V10
Length of an identifier (in bytes) 18 30 128 128 128 128 Length of CHARACTER datatype (in bytes) 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 9 38 10 10 10 10 Decimal precision of SMALLINT datatype 4 38 5 5 5 5 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 20 1000 1024 8000 1012 750 Length of a row * 2000 2000000 * 8060 * 32766 * 32 677 * 32714 * Columns in a UNIQUE constraint 6 32 16 120 64 64 Length of a UNIQUE constraint 120 .5
DB_BLOCK_SIZE900 32K 8192 2000
Length of foreign key column list 120 .5 DB_BLOCK_SIZE
900 32K 8192 2000
Columns in a GROUP BY clause 6 255 Limited by length
Limited by length
1012 750
Length of GROUP BY column list 120 DB_BLOCK_SIZE 8060 32766 32677 16000 Sort specifications in ORDER BY clause 6 255 Limited by
lengthLimited by
length1012 750
Length of ORDER BY column list 120 DB_BLOCK_SIZE 8060 32766 32677 16000 Columns in a referential integrity constraint 6 32 16 120 64 64 Tables referenced in a SQL statement 15 No limit No limit 1000 No limit 225
Cursors simultaneously open 10 OPEN_CURSORS 2 gig No limit No limit No limit Items in a SELECT list 100 1000 4096 8000 1012 750
Largest limit* LOB and long varchar columns are in addition to this lim it
2013 IBM Corporation
DB2 for i Interfaces OPEN for Business
123 Fish, Joe 555 20000 001124 Olson, Ole 501 20000 501125 Smith, Sally 555 32000 555126 Johnson, John 501 38000 001127 Smith, Jim 555 30000 555
SQL Table or View or DDS Physical or Logical File
Cobol
STARTREAD
RPG
SETLLREAD
C or C++
RopenRread
Native InterfacesSQL Interfaces
Extended Dynamic Remote SQL (XDA)
JDESAP
Distributed Relational Database (DRDA)
JDBC ODBC.NET ADO
Cobol
EXEC SQLFETCH
EXEC SQLFETCH
EXEC SQLFETCH
RPG C or C++
DB2 Connect Drivers
Host Server (ZDA)
System i Access Drivers
JDBC ODBC.NET ADO
System i Access Optimized APIs
Distributed Data Management (DDM
Cobol
STARTREAD
RPG
SETLLREAD
C or C++
RopenRread
JDBCToolbox JDBC DriverNative JDBC Driver
Cobol
EXEC SQLFETCH
EXEC SQLFETCH
EXEC SQLFETCH
RPG C or C++
Embedded SQL
CLICobol
SQLExecDirectSQL FETCH
SQLExecDirectSQLFETCH
SQLExecDirectSQLFETCH
RPG C or C++
Cobol
QSQPRCED
QSQPRCED
QSQPRCED
RPG C or C++
QSQPRCEDAPI
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 iIBM 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
ReliableEasy to InstallEasy to UpgradeEasy to Own
2013 IBM Corporation
IBM POWER - the Data-centric Infrastructure
DB2 for iIBM i
Power System
State of the Art Operating System Multi-User from the ground up Object based Single Level Storage Storage Management Work Management Technology Independence
SecureRobustReliableEasy to InstallEasy to UseEasy to Upgrade
2013 IBM Corporation
IBM POWER - the Data-centric Infrastructure
DB2 for iIBM i
Power System
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)
SecureRobustReliableOpenEasy to Use
2013 IBM Corporation
TheAdvantage?
IBM Power + IBM i for Data
2013 IBM Corporation
Solutions
IBM i DB2
POWER
Integration
Thekey toSimplicity!
Thekey to
Productivity!
IBM Power + IBM i for Data
2013 IBM Corporation
Open for Discussion