What’s New in DB2 Universal Database for iSeries on V5R3

48
© Copyright IBM Corp. 2004. All rights reserved. IBM Eserver iSeries ITSO Technical Forum ibm.com International Technical SupportO rganization IBM Confidential until Announcement What’s New in DB2 Universal Database for iSeries on V5R3 Presented by Jarek Miszczyk, IBM Rochester BP01

description

What’s New in DB2 Universal Database for iSeries on V5R3. BP01. Presented by Jarek Miszczyk, IBM Rochester. DB2 UDB for iSeries strategies. Openness - Industry standard support Accomodate independent software vendors (ISVs) Portability and compatibility Flexibility - PowerPoint PPT Presentation

Transcript of What’s New in DB2 Universal Database for iSeries on V5R3

Page 1: What’s New in DB2 Universal Database for iSeries on V5R3

© Copyright IBM Corp. 2004. All rights reserved.

IBM Eserver iSeries ITSO Technical Forum

ibm.com

International Technical Support Organization

IBM Confidential until Announcement

What’s New in DB2 Universal Database for iSeries on V5R3

Presented by Jarek Miszczyk, IBM Rochester

BP01

Page 2: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

The industry

trend toward off-the-shelf software

results in a move to SQL ...

• Openness - Industry standard support

− Accomodate independent software vendors (ISVs)

− Portability and compatibility− Flexibility

• Commitment to developing the latest database technologies

– Consistency across DB2 family– Shared R&D across IBM labs

• Continue leveraging iSeries strengths

− Availability− Scalability− Usability: Total cost of ownership− Application flexibility

DB2 UDB for iSeries strategies

1988 1992 1996 2000 20040%

20%

40%

60%

80%

100%

iSeries Customers using SQL

Page 3: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 UDB for iSeries V5R3 introductionApplication flexibility and portability

• Enhanced SQL standards support

– INTERSECT– GET DIAGNOSTICS

• Improved DB2 Family compatibility

− SEQUENCE object− UTF encodings for Unicode− Column encryption

• Native .NET Provider

Server consolidation

• Database migration toolkits

Availability

• Online and parallel reorganize

• "Ragged" save while active

• Journal enhancements

Performance

SQL query engine enhancements

− Star join enhancements− Constraint awareness− On demand statistics generation

Faster SQL deletes Faster stored procedure call

Usability

• iSeries Navigator enhancements

− Reorganize table − Referential Integrity Constraint Manager

• Enhanced RPG SQL Precompiler

Page 4: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Application development enhancements

Page 5: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Enhanced ILE RPG SQL Precompiler

− Qualified subfield names support based on the RPG IV D-spec QUALIFIED keyword

− New option for conditional precompilation: /If, /Define, /Include, and nested /Copy directives

− Properly parses source members with subprocedures (eliminates out of sequence error)

− Allows use of array data structures on blocked Fetch and Insert

− Supports host structure in Update statements (cannot be array datastructure)

− Allows use of LIKEDS and LIKEREC

− New COMPILEOPT parameter on CRTSQLRPGI to eliminate two-step compile process

− Supports RPG logical (indicator) variable

Application development enhancements: SQL & RPG

Page 6: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

OS/400 and DB2 UDB as the server

OS/400

Windows

Linux

AIX

OS/400

JDBCCLI*

EmbeddedDRDA

Native/DDMJDBCDRDA

JDBCODBCDRDA

JDBCODBC

OLE DB.NET

DRDA* OS/400 PASE only supports

call level interface (CLI)

iSeries Toolbox JDBCDB2 Connect (DRDA)DB2 Information Integrator (DRDA)

iSeries Toolbox JDBCiSeries ODBCDB2 Connect (DRDA)

iSeries ODBC and Toolbox JDBCDB2 Connect (DRDA)DB2 Information Integrator (DRDA)

DB2UDBfor

iSeries

Page 7: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Native .NET provider for iSeries

− Allows applications using Microsoft’s .NET framework to access DB2 UDB for iSeries databases

− Packaged in the iSeries Access for Windows V5R3 client

Application development enhancements: .NET

V5R3 functionality includes:− Connection pooling− Stored procedures− SQL naming − Unicode− Isolation level/commitment

control− Tracing− CompressionAdded in iSeries Accesss SI15176Service Pak− System naming ( / )− Large Objects (LOBs)

Restrictions:− Package support (Ext Dynamic)− Datalink columns− User-defined type (UDT) columns− Record-level access− CMD/PGM call− Data queues

Page 8: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Application development enhancements: .NET

DB2 Application Development Technology - DB2 LUW 8.2 "Stinger"Improved DB2 .NET Data Provider with better performance and support for DB2 UDB for iSeries servers - part of DB2 Connect

Enhanced DB2 add-ins for Microsoft Visual Studio Integrate DB2 into Microsoft Development ToolingEase Creation of DB2 Objects:

Stored ProceduresTriggersUser Defined Functions

Page 9: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Support for scrollable stored procedure result sets (all SQL interfaces)

Toolbox JDBC Driver enhancements

− Enhanced AutoCommit: Isolation level other than *NONE can now be used

− Enhanced XA (distributed transaction support)

− Extensible Program Call Markup Language (XPCML)

Native JDBC Driver enhancements

− Improved performance of character data processing

DB2 Web services

− Actually available after GA V5R2 with WebSphere Application Server Express V5.0

− Support for SQL Select, Insert, Update, and Delete statements along with stored procedure calls

− Web services Object Runtime Framework (WORF) component handles invocation and Extensible Markup Language (XML) formatting out of results

Application development enhancements: Java and Web services

Page 10: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Enhanced OLE DB provider

− SQL-only provider (IBMDASQL) including Microsoft Transaction Server (MTS) support

− Support for commitment control

− Support for SQL packages (for example, Extended Dynamic)

ODBC driver enhancements

− Enhanced MTS and XA transaction support

− Enhanced autocommit

− ODBC driver for Linux applications

CLI improvements

− Column-wise binding to complement existing row-wise binding support

− SQLGetInfo enhanced to return SQL_Keywords and Connection_Job_Name

− New connection attributes for:• Setting minimum and maximum values for precision and scale• Hex literals designation

Application development enhancements: OLE DB, ODBC, CLI

Page 11: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 and SQL enhancements

Page 12: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Binary and VarBinary data types

Large decimals: Up to 63-digit precision

New Unicode support: UTF-8 and UTF-16 encodings

− Enhances performance in Unicode-based environments, such as Java, by eliminating EBCDIC to Unicode conversion

− Examples:• UTF-8: name CHAR(10) CCSID(1208)• UTF-16: name GRAPHIC(10) CCSID(1200)• UCS-2 : name GRAPHIC(10) CCSID(13488)

New column types and attributes

Page 13: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Encrypt and decrypt SQL scalar functions

− ENCRYPT_RC2, ENCRYPT, DECRYPT_BINARY, DECRYPT_BIT, DECRYPT_CHAR, DECRYPT_DB and new SQL statement SET ENCRYPTION PASSWORD

− These are not related to table or column-level security, just data encrypting

− Require the IBM Cryptographic Access Provider 128-bit productCREATE TABLE emp( id VARCHAR(16) FOR BIT DATA, name VARCHAR(50))

SET ENCRYPTION PASSWORD = 'protect‘ /* set the default to use in this program */

INSERT INTO emp VALUES(ENCRYPT('112233'), 'BOB SANDERS' ) /*use the default */

SELECT DECRYPT_CHAR(id), name FROM emp /* no need to specify a password –use the default which has been set */OR

SELECT DECRYPT_CHAR(id, ‘protect’), name FROM emp /* explicitly specify the

password */

New functions for column encryption and decryption

Page 14: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Password management– When connected to remote databases, the password is sent in the clear. Consider

using communication encryption (for example, IPSEC or SSL).– The best option is to store the password in an OS/400 validation list.

The encryption password is stored in the encrypted data value, and the list entry name can be the table name or some other identifier.

Validation list suggestions: Make public authority *EXCL Programs need authority to access validation list; best to use

program adopted authority– Password Hint (if stored) retrieved with GETHINT function

SELECT GETHINT(id) FROM...

Native programs access:− Encryption: Use Before triggers to intercept write requests and then have the

trigger execute the Encrypt function against sensitive columns.

− Decryption: Define SQL View containing decrypt and then open SQL View as a logical file to read unencrypted data.

New functions for column encryption and decryption

Page 15: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Another DB2 construct that supports the automatic generation of column values

− Viewed as a superset of V5R2 identity columns

− Generated values easily shared across tables

− Can create constant sequence to be used as global DB2 variables

Example:

CREATE SEQUENCE order_seq

START WITH 1 INCREMENT BY 1 NO MAX VALUE

INSERT INTO orders(ordnum,custnum)

VALUES (NEXT VALUE FOR order_seq, 123)

VALUES NEXT VALUE FOR order_seq INTO :hostvar

UPDATE orders SET ordnum = :hostvar

WHERE custnum = 123

Sequence object

Page 16: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Sequence object (cont.)

CREATE SEQUENCE s1 CACHE 20 NO ORDERJob1: NEXTVAL FOR s1 => VALUE = 1Job 2: NEXTVAL FOR s1 => VALUE = 21Job 1: NEXTVAL FOR s1 => VALUE = 3Job 1: NEXTVAL FOR s1 => VALUE = 4Job 2: NEXTVAL FOR s1 => VALUE = 22

CREATE SEQUENCE s1 CACHE 20 ORDERJob1: NEXTVAL FOR s1 => VALUE = 1Job 2: NEXTVAL FOR s1 => VALUE = 2Job 1: NEXTVAL FOR s1 => VALUE = 3Job 1: NEXTVAL FOR s1 => VALUE = 4Job 2: NEXTVAL FOR s1 => VALUE = 5

Sequence values can be changed and altered with ALTER SEQUENCE statement

Sequence values can be used to generate non-numeric key

CREATE SEQUENCE s START WITH 1001; ... ID='N'||CAST(NEXTVAL FOR s AS CHAR(4))

Customizable sequence attributes

− START WITH & INCREMENT BY

− MINVALUE & MAXVALUE

− CYCLE & NO CYCLE

− CACHE & NO CACHE: To improve performance, DB2 allocates a block of sequence values at the job or connection level.

− ORDER & NO ORDER: ORDER ensures that values are returned in the actual order that they are requested independent of the job or connection. NO ORDER is the default. ORDER also disables caching.

Page 17: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

INSERT row expression values for blocked inserts

INSERT INTO table1 VALUES (11,‘TESTING'), (2,‘ADMINISTRATION')

EXCEPT and INTERSECT operators

− Return all rows that are in t1, but not t2

(SELECT cusnum FROM orders2003) EXCEPT DISTINCT (SELECT cusnum FROM orders2004 )

− All rows that exist in both t1 and t2

(SELECT cusnum FROM orders2003) INTERSECT DISTINCT (SELECT cusnum FROM orders2004 )

Named column joinsSELECT * FROM t1 INNER JOIN t2 USING (c1, c2, c3)

Lateral correlation

SELECT * FROM t1,TABLE(SELECT * FROM t2 WHERE t1.c1=t2.c1) AS t3

INSERT and SELECT enhancements

Page 18: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Cursor sensitivity controls if the database recognizes table changes (insert, update, delete) after a cursor is open

− ASENSITIVE: The default. DB2 can choose any setting. Updatable cursors always default to SENSITIVE.

− INSENSITIVE: Cursor is insensitive to table changes and behaves as a read-only cursor by creating a temporary result file to process.

− SENSITIVE: Cursor implementation has some sensitivity to table changes (NEW)

Interface

− Embedded SQL: New keywords on DECLARE CURSOR and PREPARE ATTRIBUTES

− OLE DB "Cursor Sensitivity" connection property (0-Asensitive/1- Insensitive/2-Sensitive)

• Static cursors are always insensitive (same for ODBC)

• Forward Only cursors can never be sensitive (same for ODBC)

− ODBC: SQL_ATTR_CURSOR_SENSITIVITY attribute on SQLSetStatementAttr (ODBC 3.0) or CURSORSENSITIVITY Connection keyword (ODBC 2.0)

− JDBC: "Cursor sensitivity" connection property (asensitive/insensitive/sensitive)• Insensitive value only recognized with TYPE_FORWARD_ONLY result set type

• Sensitive value only recognized with TYPE_SCROLL_SENSITIVE result set type

Cursor sensitivity

Page 19: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Dynamic cursor control with cursor attributes on PREPARE

− Allows you to adjust the sensitivity, scrolling, lock holding, and result set attributes of an existing cursor

PREPARE s1 ATTRIBUTES :hv1 FROM :stmt

New GET DIAGNOSTICS statement

− Superset of all SQL error and diagnostic interfaces

− Provides functionality and information similar to ODBC "SQLGet" functions like SQLGetConnectAttr & SQLGetStmtAttr

− Two examples:

Dynamic cursor control and improved diagnostics

Statement info:

GET DIAGNOSTICS rcount = ROW_COUNT,

rcmd = COMMAND_FUNCTION,

rnbr = NUMBER,

more = MORE

Connection info:

GET DIAGNOSTICS rcname = CONNECTION_NAME,

rcsts = CONNECTION_STATUS,

rnbr = DB2_PRODUCT_ID

Page 20: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Scrollable stored procedure result sets (cursor only) Faster call processing

− Up to 50% performance improvement on repeated calls within a connection

− Improved processing of long SQL procedure names

− Improved procedure resolution with unqualified procedure calls & *SYS naming

External procedure enhancements− Support for service program objects

− Improved external program marking

Improved SQL procedure (function and triggers) with more efficient code generation

DB2 Family compatibility:− WITH HOLD clause for FOR loop

− RETURN TO CLIENT & RETURN TO CALLER syntax for result set processing

Stored procedure enhancements

Proc n

Proc 1

.

.

.

Proc n-1

RETURN TO CLIENT

Proc n

Proc n-1

Proc 1

.

.

.RETURN TO CALLER

Page 21: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Other new functions include MULTIPLY_ALT, BIT_LENGTH, OCTET_LENGTH, DATABASE

REPLACE Returns a string where a given string is replaced with another string.

SELECT REPLACE('ABCXYZ','ABC','123') FROM t1returns '123XYZ'.

EXTRACT Returns the specified portion of a datetime value.

SELECT EXTRACT(YEAR FROM datecol) FROM t1returns the year from the date.

INSERT Returns a string where one substring is deleted and another substring is inserted.

SELECT INSERT('INSERTING',1,3,'XX') FROM t1returns 'XXERTING'

REPEAT Returns a string composed ofanother string repeated n times

SELECT REPEAT('ABC', 2) FROM t1returns 'ABCABC'.

DAYNAME Returns the name of the day of the week.

SELECT DAYNAME(datecol) FROM t1returns the name of the day from the date

MONTHNAME Returns the month name from a datetime value.

SELECT MONTHNAME(datecol) FROM t1returns the name of the month from the date.

RIGHT Returns the rightmost N characters from a string.

SELECT RIGHT('ABCXYZ',3) FROM t1returns 'XYZ'.

TIMESTAMP_ISO Returns a timestamp based on a date, time, or timestamp argument.

SELECT TIMESTAMP_ISO(datecol) FROM t1returns the timestamp from datecol.

Richer SQL function set

Page 22: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Scalability improvements

− 256 Tables in a view

− 1.7 TB table size limit

CPYFRMIMPF support for BLOBs (V5R2 PTF available: SI08237)

DATE, TIME, and TIMESTAMP literals

LOCAL TIME and LOCAL TIMESTAMP special registers

New Exit Point for Database Open: QIBM_QDB_OPEN

- Offers more info & control than Object-Level Auditing

- Exit Program can cancel the Open operation if it considers access to be unauthorized

- Exit Program can differentiate between Opens caused by query versus application

Miscellaneous DB2 enhancements

Page 23: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Partitioned tables

− Allow a table to be stored in multiple members but treated as one

− ONLY should be used in cases where the single table limit of 1.7 TB or 4.2 billion rows is exceeded

− Partition tables should not be used to improve performance

• Limited optmizer awareness of partitions, especially the CQE query optimizer• Fast delete of rows in a partition is supported

− Requires the DB2 Multisystem feature of OS/400

− If you are considering using partitioned tables in V5R3, then contact the DB2 Solutions Enablement Team first

Technology preview: Materialized query tables (automatic summary tables)

− Only creation of MQTs supported

− Query Optimizer is not aware of MQTs; MQTs are not used by optimizer to improve query performance until future releases

• Can manually query the MQTs

Positioning partitioned and materialized query tables

Page 24: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Performance enhancements

Page 25: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Enhanced SQE capabilities

Caching of deterministic UDF calls

− SQE only

Faster stored procedure call processing

Improved SQL function and procedure expressions

Faster DELETE without WHERE clause statements

− CLRPFM used when used with "No Commit" isolation level

− Special ALTER TABLE used when run with isolation level/commit

Enhanced database monitor

− Ability to suppress monitor records for short-running SQL requests

− Filter to eliminate DB2 generated SQL statements

− More diagnostic details on events that force full open/ODP creation

Parallel reorganize

V5R3 DB2 performance enhancements

Page 26: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Elimination of the following V5R2 restrictions:

− View references

− UNION

− Subqueries

− Derived Tables and common table expressions

− Update and delete-capable statements

− ALWCPYDTA(*YES) & SENSITIVE cursors

Remaining SQE restrictions:− LIKE predicate− LOB columns− Sort sequences− ALWCPYDTA(*NO)− Logical file references− Select/omit logical files− Non-SQL interface

V5R3 SQE enhancements

Page 27: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Star Join recognition

− Or lookahead predicate generation

Check constraint awareness

− SQE Stats Manager can use constraints to improve accuracy of filter factors and cardinality

− SQE Optimizer rewrites a query to avoid execution when input data is out of range

Constraint Def: CHECK(col1 BETWEEN 1 AND 100)

Original Query: SELECT * FROM t2 WHERE col1=:hv

Rewritten Query:

SELECT * FROM t2 WHERE (:hv BETWEEN 1 AND 100) AND col1 = :hv

RI constraint awareness

− SQE Optimizer can rewrite query to eliminate join combinations

Immediate on-demand statistics generation

Result set caching

V5R3 SQE enhancements (cont.)

Page 28: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Performance: New QAQQINI optionsOption Description Possible valuesDATABASE_MONITOR_THRESHOLD Allows only SQL statements with an

estimated runtime exceeding the threshold to be captured by the monitor

Integer, 2147483647 secs

SQL_DBMON_OUTPUT Controls the types of SQL statements collected by the monitor based on the requestor

*USER, *ALL, *SYSTEM

SQL_STMT_COMPRESS_MAX* Allows the user to adjust background access plan compression when using SQL packages

Integer(1-255, 2)

IGNORE_DERIVED_INDEX Allows SQE to process SQL statement even when an unsupported index type exists over the table(s)

*NO, *YES

SQL_FAST_DELETE_COUNT * Allows user to control when and how V5R3 SQL Fast Delete support is used

*NONE, *OPTIMIZE, Integer

CACHE_RESULTS * Allows SQE queries to use cached results sets from previously run queries

*SYSTEM, *JOB,*NONE

* Available only on V5R3; no PTFs for prior releases

Page 29: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Availabilityenhancements

Page 30: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

"Ragged" save while active (SWA)

No need to wait for commit boundaries to be reached

SAVACTWAIT(*NOCMTBDY)

New wait time parameters:

− Commit record changes

− Commit object changes

Supported by Backup Recovery and Media Services (BRMS)

Save-while-active enhancement

Page 31: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

New Change Journal Object (CHGJRNOBJ) command to adjust journal attributes on the fly

New journal sequence maximum: *MAXOPT3

New defaults for journal commands and settings

− CRTJRNRCV: THRESHOLD default changes from *NONE to 1.5 GB

− CRTJRN: MNGRCV default changes from *USER to *SYSTEM

− APYJRNCHG/RMVJRNCHG: CMTBDY default changed to *YES

− AUDIT Journal: Uses RCVSIZOPT(*MAXOPT1)

− SMAPP (EDTRCYAP): *SYSDFT drops from 90 to 60 minutes

Journal performance improvements

− Faster long-running ROLLBACKs

− Remote journal super bundling

− RCVJRNE performance improved 15 to 20%

Journal enhancements

Page 32: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Online and parallel reorganize New reorganize capabilities activated with new parameter ALWCANCEL(*YES)

− ALWCANCEL(*YES) requires file to be journaled− New parameter, LOCK, controls the concurrent access − If Exclusive lock is not requested, then row order may be different and space

may not be reclaimed

Parallel capabilities rely on DB2 SMP licensed featurebeing installed and activated

New Index Rebuild parameter RBDACCPTH

RI and unique indexes are always maintained

Page 33: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

ALWCANCEL(*NO)

KEYFILE(*NONE)

KEYFILE(*FILE or keyfile)

KEYFILE(*RPLDLTRCD)

KEYFILE(*NONE)

KEYFILE(*FILE or keyfile)

Cancel and restart No No Yes Yes Yes

Concurrent Access No No Yes Yes Yes

Parallel processing Only index rebuilds Only index rebuilds Data movement and index rebuilds

Data movement and index rebuilds

Data movement and index rebuilds

Non-parallel performance Very fast Fast Very fast Slower Slowest

Temporary storage Double data storage Double data storage Journal receiver storage Journal receiver storage Journal receiver storage

LIFO KEYFILE index processing N/A Duplicates reversed N/A N/A Duplicate ordering preserved

Index processing (non-KEYFILE) Synchronous or asynchronous rebuilds

Synchronous or asynchronous rebuilds

Maintain indexes or synchronous or

asynchronous rebuilds

Maintain indexes or synchronous or

asynchronous rebuilds

Maintain indexes or synchronous or

asynchronous rebuilds

Final row position exact Yes Yes Only if LOCK(*EXCL) and not restarted

Only if LOCK(*EXCL) and not restarted

Only if LOCK(*EXCL) and not restarted

Amount of CPU & I/O used Smallest Next smallest Smallest More Most

Variable length segment reorganize

Good Good Worse Worse Worse

Allows referential integrity parents and FILE LINK CONTROL DataLinks

Yes Yes No No No

Allows QTEMP &Database Cross Ref Files

Yes Yes No No No

HABP replication cost Minimal - one journal entry

Minimal - one journal entry

More - journal entires for all rows moved

Most - journal entires for all rows moved

Most - journal entires for all rows moved

ALWCANCEL(*YES)

Online and parallel reorganization comparison

Page 34: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

iSeries Access and utilities

Page 35: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

iSeries Navigator enhancements

DB2 object type folders Show related (graphical

DSPDBR) Constraint management

interface (graphical WRKPFCST)

Reorganize Table Manager Index Analyzer SQE Aware Visual Explain Run SQL enhancements

− Font Chooser− Integrated support for

Graphical Debugger− Run & Explain support for

stored procedure calls

New Show command Improved multitasking support

Page 36: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

iSeries Navigator: Show related objects

Page 37: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

iSeries Navigator – Index Evaluator

Note: This feature requires iSeries Access V5R3 Service Pak #2 and the following PTFs: SI12938 & SI12873

Page 38: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

iSeries Navigator: RI constraint management

Page 39: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

iSeries Navigator - Graphical Procedure Debugger

Page 40: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 Query Manager and SQL Development Kit (5722-ST1)

− Interactive SQL

• Session attributes for SQL rules and password visibility

• Partitioned table support

− Query Manager

• Data type support added for binary, varying binary, larger decimal numbers, UTF-8, and UTF-16

− SQL Precompilers

• BINARY, VARBINARY, and larger decimal numbers host variables

• New command parameters COMPILEOPT and DECRESULT

• Data structure allowed in an UPDATE statement

• SQL diagnostic area changes

• Increased length of user ID parameter in DRDA connections

• ILE RPG enhancements

Database program product enhancements

Page 41: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 UDB Extenders for iSeries V8 (5722-DE1)

− Full schema support

− Support for decomposing documents that contain non-unique attribute and element names

− XML Extender uses the XML Parser, which is delivered in the XML Toolkit for iSeries (5733-XT1 option 5). You must install this product before using XML Extender for iSeries on V5R3.

Query for iSeries (5722-QU1)

− Data type support added for binary, varying binary, CLOB, BLOB, DBCLOB, larger decimal numbers, user defined types, UTF-8 and UTF-16

− New functions: HEX, LENGTH, BINARY and VARBINARY

− Support for partitioned tables

Database program product enhancements (cont.)

Page 42: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 migration toolkits Oracle Migration Toolkit

− Support for V5R3 SQL enhancements,

− Sequence objects a big improvement

for Oracle migrations

− Services available from the IBM Custom Technology Center

− Free download at: http://www.ibm.com/servers/enable/site/db2/porting.html

Other toolkits− Re-engineering of existing SQL Server

& Sybase Migration Tool into the "Oracle" MTK architecture and interface

− Informix Migration Toolkit in beta

Page 43: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 UDB Extenders for iSeries

− Support for XML Schemas and not fenced UDFs

QMF for WebSphere

− Follow on to QMF for Windows

− Currently available in beta

DB2 Information Integrator

DB2 Development Center

− Support for Java and external stored procedures

SWG utilities for DB2 UDB for iSeries

Page 44: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 OLAP Server

DB2 Web Query Tool (Websphere based)

DB2 Table Editor (graphical STRDFU)

DB2 Data Propagator

SWG utilities for DB2 UDB for iSeries (cont.)

Page 45: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Rational XDE Data Modeler: iSeries support soon

Page 46: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

DB2 UDB Family certifications

• Certified Database Associate - DB2 UDB Family (Test 700)− Web site: http://www.ibm.com/certify/certs/dbdaudv81.shtml

− Education resources: http://www.ibm.com/certify/tests/edu700.shtml

− Online tutorial: http://www7b.boulder.ibm.com/dmdd/library/tutorials/db2cert/db2cert_V8_tut.html

• Certified Application Developer - DB2 UDB Family (Test 703)− Web site: http://www.ibm.com/certify/certs/dbapudv81.shtml

− Education resources: http://www.ibm.com/certify/tests/edu703.shtml

• Sample Tests: http://www.ibm.com/certify.torolab.ibm.com/ice

• Exams were refreshed and updated for DB2 UDB for iSeries

Page 47: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

Greater functionality for key application development environments

New SQL functions and data types Optimizer enhancements

Increased system availability options

iSeries Navigator usability improved

Many complementary database utilities or products now available

Summary of V5R3 DB2 UDB enhancements

Page 48: What’s New in DB2 Universal Database for iSeries on V5R3

ibm.com/redbooks© Copyright IBM Corp. 2004. All rights reserved.

– DB2 UDB for iSeries home page:http://www.iseries.ibm.com/db2

– Newsgroups

• USENET: comp.sys.ibm.as400.misc, comp.databases.ibm-db2• iSeries Network (NEWS/400 Magazine) SQL & DB2 Forum:

http://www.iseriesnetwork.com/Forums/main.cfm?CFApp=59

– Education Resources - Classroom and online

• http://www.iseries.ibm.com/db2/db2educ_m.htm• http://www.iseries.ibm.com/developer/education/ibo/index.html

– DB2 UDB for iSeries Publications

• Online Manuals: http://www.iseries.ibm.com/db2/books.htm• Porting Help: http://www.iseries.ibm.com/developer/db2/porting.html• DB2 UDB for iSeries Redbooks (http://ibm.com/redbooks)

– Stored Procedures & Triggers on DB2 UDB for iSeries, SG24-6503– DB2 UDB for AS/400 Object Relational Support, SG24-5409

• SQL/400 Developer's Guide by Paul Conte and Mike Cravitz– http://as400network.com/str/books/Uniquebook2.cfm?NextBook=183

Additional information