DB2 v10: Top New Features for Developers

DB2 v10 introduces several key features and mandatory changes that developers must understand when planning their migration strategy. This guide outlines the critical technical requirements and provides actionable steps for a successful transition. Organizations upgrading from earlier versions should plan their migration carefully, as several long-deprecated practices are no longer supported.

Key Changes in DB2 v10 for Developers

  1. REBIND Legacy Plans and Packages: If you have plans and packages originally bound at DB2 Version 5 or earlier, they will not work in DB2 v10 without rebinding. While this requires action, many organizations completed similar migrations during their transition to DB2 Version 8.
  2. Discontinuation of Direct DBRM Binding: DB2 v10 no longer supports DBRMs bound directly to plans. Developers must transition to package-based binding now. This shift has been recommended since DB2 v2.3, and DB2 9 provided tools to facilitate this migration.
  3. Update ACQUIRE Clauses: Migrate all ACQUIRE(ALLOCATE) packages to ACQUIRE(USE) to align with DB2 v10 standards and optimize resource management.
  4. XML Extender Retirement: The XML Extender is discontinued in DB2 v10. Organizations that need XML support should migrate to the native XML data type, which offers better performance and integrates more easily with modern application frameworks.

Understanding DB2 v10 Technical Requirements

Package-based binding represents a fundamental shift in how DB2 organizes executable code. Unlike direct DBRM binding to plans (an approach that limited flexibility and created dependency management challenges), packages provide modularity, easier versioning, and better support for application updates. Modern DB2 applications rely on packages exclusively, allowing you to update application logic without requiring plan rebinds.

The ACQUIRE clause controls when DB2 allocates resources for cursors. ACQUIRE(ALLOCATE) reserves resources when the plan or package is allocated, while ACQUIRE(USE) defers allocation until the cursor is actually opened. Migrating to ACQUIRE(USE) improves resource utilization, particularly for applications that open cursors conditionally or process variable numbers of data sets.

The native XML data type in DB2 v10 offers significant advantages over the deprecated XML Extender. The native type provides native storage, efficient indexing, and integrated query support through XQuery. Applications benefit from superior performance, reduced storage overhead, and seamless integration with SQL queries and application frameworks.

Planning Your DB2 v10 Migration

Start planning your migration to DB2 v10 immediately to avoid service disruptions. Begin with a thorough audit of your current plans, packages, and XML implementations. The rebinding process—while requiring significant effort—has become standard practice since DB2 v8 and is well understood across the industry. Many organizations find that investing adequate time in planning and testing these updates results in smoother transitions, better performance, and long-term operational benefits. Package-based binding provides superior manageability and flexibility compared to legacy approaches. Testing your ACQUIRE clause changes and XML data type migration in a non-production environment first will help identify any application compatibility issues before production deployment.