Release
Release
Release
Contents
About the Release Notes
About this release
New in this release
Default page size increase
Deadlock event monitor elements provide more information
Import and export utilities support nicknames
DB2_SKIPINSERTED registry variable
Direct I/O enablement expanded to temporary table spaces
Linux 2.6 kernel installation images
DB2NOLIOAIO registry variable replaced by DB2LINUXAIO (Linux)
New table function to query the database history file
Product fix history
Compatibility issues
Backward compatibility
Product compatibility
Installation, migration, upgrade, and configuration information
Hardware and software requirements
Installation notes
New options for the DB2 Setup wizard (Windows)
Changes to the DB2 Setup wizard (Windows)
Extended security installation restrictions (Windows)
Directory path cannot contain blanks (Linux)
Red Hat Enterprise Linux 4 Requirement
JDK levels for DB2 UDB (Linux on IA64 and Linux on POWER)
Uncompressing installation images (Linux)
DB2 UDB does not allow non-English installation path (Windows)
Downloading and uncompressing FixPaks for multiple products
(Windows)
Installing DB2 UDB from installation images (Linux)
Installing DB2 UDB from installation images (Windows)
Disk space required for a DB2 UDB response file installation
Restrictions to adding products using the db2setup command (Linux)
DB2 Web Tools
Recreating beta versions of databases
Installing MDAC files for national language versions of DB2 UDB
Installing additional Asian fonts (Linux)
Configuring the Development Center to use Java Development Kits
(Linux)
Creating group and user IDs on United Linux 1.0 and SuSE Linux
distributions
Help system daemon does not start after installing with the
db2_install command (Linux)
Installation image reduction tool - db2iprune (Windows)
DB2 Universal Database, Version 8 documentation installation
restriction (Windows)
Previous installations updated to the latest level (Windows)
System requirements for the DB2 .NET Data Provider (Windows)
Installing DB2 Version 8 Clients and DB2 Connect PE as a
non-Administrator (Windows)
Migration notes
Migrating DB2 Universal Database (Windows)
Migrating DB2 Universal Database when using DataJoiner or
replication
Migrating a DB2 Version 8 Windows 32-bit database to Windows 64-bit
Migration of EXPLAIN tables
Migrating XML Extender from previous versions
Uninstallation information
Uninstalling DB2 UDB silently (Windows)
Product code for DB2 Information Center removal using a silent
uninstall (Windows)
Known limitations, problems, and workarounds
Limitations
SNAP_GET_DB table function returns incomplete results
IMPORT REPLACE does not honor the Not Logged Initially clause
Data export with ODBC to file warehouse program
Data types that are not supported in the Development Center's
integrated SQL debugger
Structured types in the Development Center
Development Center limitations for 64-bit operating systems
Development Center (Linux)
Debugging stored procedures with double quotation marks
Path settings needed to enable Java routines to compile in the
Development Center
Development Center limitations to run and debug Java stored
procedures simultaneously
DB2SystemMonitor.getServerTimeMicros method not supported
Universal JDBC Driver Type 2 not supported on DB2 UDB Version 8.2.2
(Linux AMD64 )
Cursors in PHP applications
Bind option limitations for CLI packages
CLI LOAD restriction for specifying column names
Tools catalog database creation not supported (Linux for AMD64)
Memory limitations for DB2 UDB Express and DB2 Workgroup Server
Edition V8.2
Scheduling a warehouse process to run at intervals
Load and Import Columns page does not support DBCS characters in
IXF files
Security plug-in problem and restriction for DB2 UDB clients
(Windows)
Two-part user ID not supported (Windows ME)
Minimum display settings for GUI tools
Improper display of GB18030 characters in the title bar of a window
Health indicator restrictions
Known problems and workarounds
The "db2gcf -k" command fails on DB2 UDB Express Edition
Hotkeys not working in Microsoft Visual Studio .NET Framework 1.1
The simplified Chinese locale (Red Hat Linux)
SQLFLAG (STD) precompiler option error
DB2 Connect Custom Advisor
Displaying Indic characters in the DB2 GUI tools
Enclose DB2 Information Center search terms within quotation marks
if they contain numbers
Secure environments (Windows)
XML Extender sample programs renamed
Decomposing documents in XML Extender that contain non unique
attribute and element names
Documentation updates
Administration: Implementation
Automatic storage
Defining a generated column on an existing table
Aggregate registry variables
Authentication considerations for remote clients
Direct I/O (DIO) support
Distributor technology and automatic client rerouting
Local system account support (Windows)
Two-part user ID support
Kerberos authentication details
Additional information for Kerberos support
Administration: Performance
New system environment variables (Linux)
New communication registry variable
SQL compiler variables
Configuration parameter updates
SQLDBCONF database configuration parameter file
Change to the DB2_HASH_JOIN default value
DB2NTNOCACHE registry variable is deprecated
Explain tables and organization of explain information
Guidelines for capturing explain information
Additional return codes from db2CfgGet API, collate_info parameter
Automatic setting of default prefetch size and update defaults
Administration: Planning
Catalog table space design
Supported territory codes and code pages
XA function supported by DB2 Universal Database
Updated TPM and tp_mon_name values for xa_open string formats
Activating conversion tables for code pages 923 and 924
Conversion table files for euro-enabled code pages
API Reference
SYNCPOINT option support
New field for SQLEDBDESC structure
Correction to new field in the SQLB-TBSPQRY-DATA structure
Application development: Building and Running Applications
Linux supported development software
Customizing precompile and bind options for SQL procedures
C/C++ compile option required (Linux on POWER 64-bit)
Setting environment variables for Micro Focus COBOL stored
procedures (Windows)
Application development: Call Level Interface (CLI)
Additional environment attributes
Dynamic scrollable cursors requirement
ReceiveTimeout CLI/ODBC configuration keyword
SQL_ATTR_RECEIVE_TIMEOUT statement attribute
Reopt CLI/ODBC configuration keyword
SQL_ATTR_REOPT statement attribute
CurrentPackageSet CLI/ODBC configuration keyword
SQL_ATTR_CURRENT_PACKAGE_SET connection attribute
MapBigintCDefault CLI/ODBC configuration keyword
DescribeOutputLevel CLI/ODBC configuration keyword
Application development: Programming Client Applications
OleDbReportIsLongForLongTypes CLI/ODBC configuration keyword
OleDbSQLColumnsSortByOrdinal CLI/ODBC configuration keyword
DB2 Data Source property group for the IBM DB2 OLE DB Provider
Incorrect URL syntax in the DB2Binder syntax diagram
Rerouting DB2 Universal JDBC driver clients
Customizing the DB2 Universal JDBC driver configuration properties
db2secFreeToken function removed
Deploy custom security plug-ins carefully
Security plug-ins
Security plug-in APIs
Security plug-in naming conventions (Linux)
GSS-API security plug-ins do not support multiple-flow
authentication
GSS-API security plug-ins do not support message encryption and
signing
Implicit ending of transactions in stand-alone applications
Distributed transaction support
Application development: Programming Server Applications
Multiple result set common language runtime (CLR) procedures
Common language runtime (CLR) routine execution control modes
(EXECUTION CONTROL clause)
Maximum decimal precision and scale in common language runtime
(CLR) routines
Command Reference
Migrating Databases
db2inidb - Initialize a mirrored database command
Usage note for the db2iupdt command
New parameter for the db2sqljcustomize command
New parameter for the sqlj command
Monitor and troubleshoot command (db2pd) updates
Update to the SET CLIENT command
Update to the PRECOMPILE command
Update to the UPDATE HISTORY FILE command
Updates to the EXPORT and IMPORT commands
Update to the LOAD command
File type modifiers for the load utility
File type modifiers for the import utility
ATTACH command
RECOVER DATABASE command
UPDATE HISTORY FILE command
db2updv8 - Update database to version 8 current level command
Formatting trap files (Windows)
Data Movement
Bind files used by the export, import and load utilities
Using import with buffered inserts
Index information lost when the import utility is used
Data Recovery and High Availability
High availability disaster recovery overview
Cross-platform backup and restore support
Backing up to tape (Linux)
Tivoli Storage Manager
Value restrictions for the HADR local host and local service
parameters
Additional system requirements for high availability disaster
recovery
Non-replicated operations for high availability disaster recovery
HADR does not support raw logs
Data Warehouse Center
DB2 Data Warehouse Center requires Unicode format database
Defining DB2 warehouse sources and targets
Updates to the Business Intelligence tutorial
Setting the purge limit for warehouse log files
Data Warehouse Center support for CURSOR load
Unicode warehouse control database migration and limitations
Change in date format for Modified column
Defining statistical transformers in the Data Warehouse Center
Prerequisite for the iSeries warehouse agent
DB2 .NET Data Provider
Concurrent active data reader support
DB2Connection.ConnectionString property
Development Center
DB2 Development Center Version 8.2 requires level 9.2.9 of the
Distributed Debugger
Length restriction in the DB2 Development Center Change Variable
Range window
Restrictions to DB2 Universal type 2 and type 4 drivers
GUI Tools
Modifying the statement termination character
Database unavailable status in the database details pane of the
Control Center
Default write to table output generation (Create Event Monitor)
Installation and Configuration Supplement
Application server for DB2 UDB
DB2 Embedded Application Server enablement
Deploying DB2 Web Tools
Direct I/O on block devices (Linux)
DB2 Information Center daemon (Linux)
Response file keywords and sample files
Response file installation error codes
Required user accounts for installation of DB2 servers (Windows)
Asynchronous I/O support (Linux)
db2ln command modified to create DB2 UDB 64-bit library links
(Linux)
Quick Beginnings
Clarification of DB2 UDB client support
Modifying kernel parameters (Linux)
DB2 Universal Database Express Edition Version 8.2 Basics manual
available for download
Verifying that your databases are ready for migration
Common Criteria certification for DB2 UDB
Spatial Extender
Verifying the Spatial Extender installation
SQL Administrative Routines
Incorrect column name documented in result set for SNAP_GET_DYN_SQL
table function
Snapshot monitor table functions have version-specific views
GET_DB_CONFIG procedure requires an 8K minimum page size for a user
temporary table space
SQL Reference
EXPLAIN_DIAGNOSTIC: A new Explain table
EXPLAIN_DIAGNOSTIC_DATA: A new Explain table
Schema used by the Explain facility
String representations of datetime values
System monitor
Health indicators summary
Decoupled applications list without connection concentrator enabled
Progress monitoring of the runtime rollback process
XML Extender
Decomposing documents larger than 1 MB
Configuring MQ XML UDFs with XML Extender
XML Extender environment variable DB2DXX_MIN_TMPFILE_SIZE
DB2XML.XMLVarchar UDT redefinition
Appendix A. DB2 UDB FixPak CD directory structure
Appendix B. Contacting IBM
B.1 Product information
Appendix C. Notices
C.1 Trademarks
About the Release Notes
Content
The release notes contain the latest information for the following
DB2(R), Version 8 products:
DB2(R) Universal Database Personal Edition
DB2 Universal Database(TM) Workgroup Server Edition
DB2 Universal Database Workgroup Server Unlimited Edition
DB2 Universal Database Enterprise Server Edition
DB2 Personal Developer's Edition
DB2 Universal Developer's Edition
DB2 Warehouse Manager
DB2 Warehouse Manager Sourcing Agent for z/OS(R)
DB2 Data Links Manager
DB2 Net Search Extender
DB2 Spatial Extender
DB2 Intelligent Miner(TM) Scoring
DB2 Intelligent Miner Modeling
DB2 Intelligent Miner Visualization
DB2 Connect(TM) Application Server Edition
DB2 Connect Enterprise Edition
DB2 Connect Personal Edition
DB2 Connect Unlimited Edition
DB2 Query Patroller(TM)
Version information
The most up-to-date documentation is available in the latest version of
the DB2 Information Center, which is accessed through a browser. The
URL for downloading the latest documentation is provided in the
Additional resources section that follows this section.
Directory paths
Windows(R) systems use backslashes (\) to delimit directories in a
directory path. Linux(TM) systems use forward slashes (/) as delimiters.
The Release Notes follow this convention when the information is
platform specific. However, when the information is platform
independent, you might need to enter the directory path differently than
shown. For example, if you have a Windows system, you must enter the
directory path using backslashes (\) if the Release Notes show forward
slashes (/). Conversely, if you have a Linux system, you must enter the
directory path using forward slashes (/) if the Release Notes show
backslashes (\).
DB2 Information Integrator
For information about currently known outstanding issues with DB2
Information Integrator and its associated technologies, including
federated systems, SQL replication, Q replication, event publishing, Web
services, and metadata management, see the DB2 Information Integrator
Release Notes. The DB2 Information Integrator Release Notes are
available on the DB2 Information Integrator support Web page at:
http://www.ibm.com/software/data/integration/db2ii/support.html
Additional resources
The Data Links Manager Administration Guide and Reference was updated in
PDF form (book number SC27-1221-01) at the time of FixPak 1 and is
available for download at the DB2 support site:
http://www.ibm.com/software/data/db2/udb/support.html.
Documentation for the DB2 Life Sciences Data Connect product is
available for download from the IBM(R) software site:
http://www.ibm.com/software/data/db2/lifesciencesdataconnect/
If you want to view the DB2 documentation in HTML format, you can access
the DB2 HTML Information Center online from
http://publib.boulder.ibm.com/infocenter/db2help/.
Alternatively, you can install the DB2 HTML Information Center on your
system; a DB2 HTML Documentation CD image is available for download from
the same Web site. Updates are made to the DB2 HTML documentation with
every release. For the latest documentation, access the DB2 HTML
Information Center online or download the DB2 HTML Documentation CD
image for installation on your system. PDF documentation is updated less
frequently than the HTML Information Center.
More information on the DB2 Development Center and DB2 for z/OS(R) is
available at http://www.ibm.com/software/data/db2/os390/spb/.
For the latest information about the DB2 family of products, obtain a
free subscription to DB2 Magazine. The online edition of the magazine is
available at http://www.db2mag.com; instructions for requesting a
subscription are also posted on this site.
About this release
New in this release
This section provides a brief summary of the enhancements available with
this release of DB2 Universal Database Express Edition.
Default page size increase
When creating a database, DB2(R) Universal Database (UDB) now allows you
to establish a default page size that is greater than the previous
default of 4096 (4 K) bytes. After creating the new database with an
explicit page size, that page size becomes the new default for all
buffer pools and table spaces you create within the database. The
initial table spaces for the database (SYSCATSPACE, TEMPSPACE1, and
USERSPACE1), as well as the system buffer pool (IBMDEFAULTBP), use the
new default page size. Once the default has been set, you can still
explicitly create other buffer pools and table spaces using a page size
different from the default.
The new default page size can have a value of 4096 (4 K), 8192 (8 K),
16384 (16 K), or 32768 (32 K) bytes.
If you create a database with a page size larger than 4 K, that database
cannot be migrated to a database with a different default page size.
Deadlock event monitor elements provide more information
Several new clauses have been added to the CREATE EVENT MONITOR
statement to provide detailed information about statements. The
increased detail includes historical information about statements and
statement values when a deadlock occurs.
The CREATE EVENT MONITOR statement has been modified so that DEADLOCKS
WITH DETAILS can use the HISTORY option to capture historical
information about the statements in the current unit of work and
information about the statement compilation environment. Additionally,
the VALUES option can be specified to capture data values for any input
variables for each SQL statement.
When a deadlock event monitor is active using the new HISTORY or VALUES
options, performance will suffer because data values are copied and
memory is used to store the data. The degree to which performance will
suffer depends on the number of applications and database partitions
involved in the deadlock scenario. Another factor which affects
performance is the number of statements and data values in the statement
history lists.
Import and export utilities support nicknames
Import utility
Prior to Version 8.2.2, the Import utility did not support the use of
nicknames.
Starting with Version 8.2.2, IMPORT INTO NICKNAME (remote table) is
supported with the following restrictions:
* The federated wrapper, which manages the operations on the nickname
must be one of the following relational wrappers:
* DB2 DRDA(R)
* Oracle NET8
* Sybase CTLIB
* SQL Server MSSQLODBC3
* Informix(R)
* Teradata
The ODBC and OLEDB wrappers are not supported.
* The remote target, on which the nickname is defined, must be a table.
* The file type must be IXF, ASC or DEL.
* Online Import mode must be used. Specifically, the ALLOW WRITE ACCESS
clause must be specified.
* The COMMITCOUNT AUTOMATIC mode is not allowed. COMMITCOUNT n must be
specified, where n is a valid non-zero number.
* INSERT and INSERT_UPDATE are the only supported operations.
* The following column types are not supported:
* Datalink
* LOBs
* Generated columns
* The following file type modifiers are not supported:
* indexixf or indexschema
* dldelfiletype
* nodefaults or use defaults
* no_type_idfiletype
* generatedignore, generatedmissing, identityignore, or
identitymissing
* lobsinfile
* Hierarchical tables (typed tables) are not supported.
* If the database was created prior to installing DB2 UDB Version
8.2.2, the db2updv8 utility program must be run against the target
database after migrating. This requirement creates two new stored
procedures that are required by the Import utility.
Failure to meet the restrictions listed previously results in an error
with SQL code -27999:
SQL27999N The requested IMPORT operation into a remote target
(nickname) cannot be performed.
Reason code = "<reason-code>".
Note: Import into a nickname for a DB2/VM remote table does not work
correctly for binary data (FOR BIT DATA) columns at this time.
Export utility
Prior to Version 8.2.2, the Export utility did not support the use of
nicknames.
Starting with Version 8.2.2, EXPORT INTO NICKNAME (remote table) is
supported with the following restrictions:
* The description of the target table necessary to perform the Import
CREATE operation is not saved in the IXF file format. You should
manually recreate the target table and nickname, if necessary, prior
to running the IMPORT command.
* The supported file types are IXF and DEL.
DB2_SKIPINSERTED registry variable
You can use the DB2_SKIPINSERTED registry variable to skip uncommitted
inserted rows for Cursor Stability (CS) and Read Stability (RS)
isolation levels.
The registry variables DB2_SKIPDELETED and DB2_EVALUNCOMMITTED are used
to skip uncommitted deletions and uncommitted updates. Otherwise, CS and
RS isolation levels require the processing of committed data only.
If you decide that you can skip any row that is locked because it is an
uncommitted inserted row, you can now turn the DB2_SKIPINSERTED registry
variable on to allow you to skip those rows. Having this registry
variable on produces greater concurrency and would therefore be the
preferred choice for most applications.
There are cases where skipping uncommitted inserts may not be preferred.
For example:
* When two applications use a table to pass data between them
* When an application does not use UPDATE statements, but instead
deletes the old data and then inserts the new data.
Direct I/O enablement expanded to temporary table spaces
Starting with DB2 Universal Database(TM) (UDB) Version 8.2.2, enablement
of Direct I/O on all platforms is expanded to include SMS and DMS
temporary table spaces. Similar to DB2 UDB Version 8.2, this feature
can be switched on using the NO FILE SYSTEM CACHING keyword in the
CREATE and ALTER SQL statements.
Linux 2.6 kernel installation images
Starting with DB2 Universal Database (UDB) for Linux(TM) Version 8.2.2,
a new set of installation images is available for Linux distributions
based on the 2.6 kernel for the following architectures:
* x86: 32-bit Intel(R) and AMD processors
* x86-64: 64-bit Intel EM64T and AMD64 processors
The new installation images automatically enables the asynchronous I/O
and vector I/O performance enhancements for DB2 UDB for Linux.
You can install these new installation images only on Linux
distributions based on a 2.6 kernel, including Red Hat Enterprise Linux
4 and SuSE Linux Enterprise Server 9. The installation images for the
2.6 kernel include the phrase "2.6 kernel" on the CD label to
differentiate them from the installation images for the 2.4 kernel.
If you have installed a previous version of DB2 UDB for Linux on a
distribution based on a 2.6 kernel, you must install the FixPak for DB2
UDB for Linux (2.6 kernel) to upgrade your DB2 UDB installation to
Version 8.2.2 or higher.
DB2NOLIOAIO registry variable replaced by DB2LINUXAIO (Linux)
The DB2 Universal Database (UDB) registry variable DB2NOLIOAIO is
deprecated as of Version 8.2.2. For Linux users, the DB2NOLIOAIO
registry variable has been replaced with DB2LINUXAIO.
* To enable asynchronous I/O (AIO) support on Linux, run the following
command:
db2set DB2LINUXAIO=true
and restart DB2 UDB.
Note: To use AIO, users must install libaio-0.3.98 or later and have
a kernel that supports AIO.
* To disable asynchronous I/O (AIO) support on Linux, run the following
command:
db2set DB2LINUXAIO=false
and restart DB2 UDB.
New table function to query the database history file
Prior to DB2 Universal Database Version 8.2.2, the CLP's LIST HISTORY
command or C APIs were required to query the database history file for
the database partition you were connected to.
Starting with Version 8.2.2, you can use the ADMIN_LIST_HIST() table
function to query the database history file. Once connected to a
database, ADMIN_LIST_HIST() returns the contents of the database history
file in a table format for the database partition you are connected to.
Product fix history
For a list of Authorized Program Analysis Reports (APARs) addressed by
this fix pack, visit the following Web page:
http://www.ibm.com/software/data/db2/udb/support.html
Compatibility issues
Backward compatibility
Backward compatibility of DB2 UDB Version 8.2 databases
If you create a database with DB2 Universal Database(TM) Version 8.2,
you cannot use that database at a Version 8.1 level. That database can
only be used at a Version 8.2 or later level.
Databases created at the DB2 UDB Version 8.2 level may have additional
functionality that was not available on earlier versions. This
difference may result in unexpected and undesirable behavior if you
attempt to move your new database to a previous release of DB2 UDB.
Note: The only way to move a database from Version 8.2 back to Version
8.1 is if the database was originally created under Version 8.1.
Even then, backward migration is possible only after running the
db2demigdb tool. However, you might encounter problems if you used
built-in functions that have changed in Version 8.2.
Clarification of DB2 UDB client support
The "DB2 client overview" section of the DB2 Quick Beginnings for
Clients book states the following:
DB2 clients can connect to DB2 servers two releases later or one
release earlier than the client's release level, as well as to
servers at the same release level.
The amendment to that statement is as follows:
1. To point DB2 UDB to the correct IBM(R) Developer Kit, run the
following command:
db2 update dbm cfg using JDK_PATH path
where path is the 1.5 installation path, such as /opt/IBMJava2-15.
* If the DB2 fixpak level is higher than the fixpak level of the
product being added, the combination is allowed. However, since the
fixpak level of the product being added is lower than the DB2 fixpak
level, the DB2 fixpak level must be reapplied after installing the
additional product. See the appropriate FixPak Readme for
instructions to reapply the fixpak.
* If the DB2 fixpak level is lower than the fixpak level of the product
being added, an error is generated. The product being added cannot be
at a higher fixpak level than DB2 UDB. In this case, you must first
bring DB2 UDB to the appropriate level, then install the additional
product. See the appropriate FixPak Readme for instructions.
The following table summarizes the db2setup combinations:
Table 5. db2setup combinations
+----------+--------------+-------------------------------------------+
| DB2 | Additional | Is this combination permitted? |
| fixpak | product | |
| level | fixpak level | |
+----------+--------------+-------------------------------------------+
| Version | Version 8 | Yes. This is recommended. |
| 8 FixPak | FixPak 3 | |
| 3 | | |
+----------+--------------+-------------------------------------------+
| Version | Version 8 GA | Yes, but Version 8 FixPak 3 must be |
| 8 FixPak | | reapplied. See the appropriate FixPak |
| 3 | | Readme for instructions to reapply the |
| | | fixpak by going to the DB2 Support Web |
| | | site. |
+----------+--------------+-------------------------------------------+
| Version | Version 8 | No. DB2 must first be brought to the |
| 8 FixPak | FixPak 5 | higher fix pack level (in this example, |
| 3 | | Version 8 FixPak 5) before installing the |
| | | additional product. See the appropriate |
| | | FixPak Readme for instructions to install |
| | | the required Version 8 FixPak by going to |
| | | the DB2 Support Web site. |
+----------+--------------+-------------------------------------------+
The DB2 Support Web site address is
http://www.ibm.com/software/data/db2/udb/support.html
DB2 Web Tools
The application servers supported by DB2 Web Tools for the following
languages are required to be compliant with the Servlet 2.3
specification:
* Japanese
* Korean
* Simplified Chinese
* Traditional Chinese
* Russian
* Polish
Recreating beta versions of databases
If you created databases in a beta version of DB2 UDB Version 8.2, you
must recreate them in the official version of Version 8.2.
This includes recreation of spatial databases for of DB2 Geodetic
Extender Version 8.2.
Installing MDAC files for national language versions of DB2 UDB
If you do not install the national language version of Microsoft Data
Access Components (MDAC) 2.7 prior to installing the national language
version of DB2 Universal Database (UDB) Version 8.2, DB2 UDB installs
English MDAC files by default. This installation causes the Windows ODBC
Data Source Administrator panels to appear untranslated if your
operating system is in a language other than English. To fix this
problem, install the "MDAC 2.7 RTM - Refresh" bundle from the Microsoft
Web site at
http://msdn.microsoft.com/data/downloads/updates/default.aspx.
Choose the language that you want to install, download the required
executable file, and run it. This procedure installs the translated ODBC
Data Source Administrator files.
Installing additional Asian fonts (Linux)
IBM offers additional font packages for Linux that contain additional
double-byte character set (DBCS) support for Asian characters. These
font packages are necessary with some versions of Linux that install
only the fonts required to display the country-specific or
region-specific characters.
If you run the db2setup command and find missing characters in the DB2
setup wizard interface, it is likely that your Linux system does not
have all the necessary fonts installed. To enable the db2setup command
to properly refer to the fonts embedded in the installation CD, perform
the following task:
1. Enter the following command:
export JAVA_FONTS=/<cdrom>/db2/<linux_platform>/java/jre/lib/fonts
where <cdrom> is the location of the installation image and
<linux_platform> is a directory name with a Linux prefix.
2. Re-run the db2setup command.
If you notice missing characters when using the DB2 GUI tools after
installation, install the necessary fonts provided with the DB2 product.
These fonts can be found in the fonts directory on any of the following
CDs:
* IBM Developer Kit, Java Technology Edition (64-bit) for AIX 5L
* DB2 Embedded Application Server and applications (XML registry, Web
Administration tools and Java distributed debugger) for your
operating system
In the fonts directory, there are two typefaces available: Times New
Roman WorldType and Monotype Sans Duospace WorldType. For each typeface,
there is a country-specific or region-specific font. The following table
lists the eight fonts provided in compressed format in the fonts
directory.
Table 6. File names for additional Asian fonts
+-------------------------+---------------------+---------------------+
| Font typeface | Font file name | Country or Region |
+-------------------------+---------------------+---------------------+
| Times New Roman WT J | tnrwt_j.zip | Japan and other |
| | | countries or |
| | | regions |
+-------------------------+---------------------+---------------------+
| Times New Roman WT K | tnrwt_k.zip | Korea |
+-------------------------+---------------------+---------------------+
| Times New Roman WT SC | tnrwt_s.zip | China (Simplified |
| | | Chinese) |
+-------------------------+---------------------+---------------------+
| Times New Roman WT TC | tnrwt_t.zip | Taiwan (Traditional |
| | | Chinese) |
+-------------------------+---------------------+---------------------+
| Monotype Sans Duospace | mtsansdj.zip | Japan and other |
| WT J | | countries or |
| | | regions |
+-------------------------+---------------------+---------------------+
| Monotype Sans Duospace | mtsansdk.zip | Korea |
| WT K | | |
+-------------------------+---------------------+---------------------+
| Monotype Sans Duospace | mtsansds.zip | China (Simplified |
| WT SC | | Chinese) |
+-------------------------+---------------------+---------------------+
| Monotype Sans Duospace | mtsansdt.zip | Taiwan (Traditional |
| WT TC | | Chinese) |
+-------------------------+---------------------+---------------------+
Note: These fonts do not replace the system fonts. These fonts are to be
used in conjunction with or for use with DB2 Universal Database.
You cannot engage in the general or unrestricted sale or
distribution of these fonts.
Procedure
To install an additional Asian font:
1. Unzip the font package.
2. Copy the font package to the /opt/IBMJava2-141/jre/lib/fonts
directory. You need to create the directory if it does not already
exist.
3. Enter the following command:
export JAVA_FONTS=/opt/IBMJava2-141/jre/lib/fonts
As a minimum, you need to install one font of each typeface for your
country or region. If you are in China, Korea, or Taiwan, use the
country-specific or region-specific versions; otherwise, use the
Japanese version of the fonts. If you have space on your system, install
all eight fonts.
Configuring the Development Center to use Java Development Kits (Linux)
In some cases, DB2 Universal Database does not install a Java
Development Kit on the client operating system. To use the Development
Center to develop Java stored procedures on these clients, you must
point the Development Center to the location of an installed Java
Development Kit .
Follow these steps to identify the location of a Java Development Kit:
1. In Development Center, select the Project -> Environment Settings
menu item.
2. In the Environment Settings notebook, select the Process node.
3. In the Java Home section of the Process page, select the JDK level
that will be used to build and run Java stored procedures.
4. In the Directory field, specify a directory path that exists or is
accessible on the client where the selected JDK is installed.
5. If the client computer is used to develop Java stored procedures on
multiple DB2 servers, you might need to select additional JDK levels
and specify their installed locations, depending on which JDK levels
are used by these servers.
On the DB2 server, the Java Development Kit installation might not have
linked some Java libraries into the system /usr/lib subdirectory. These
links are needed to build and run Java stored procedures.
The section titled "Setting up the Linux Java Environment" in the
Compatibility Issues section of these Release Notes shows how to create
the links to a Java Development Kit on a Linux client.
Creating group and user IDs on United Linux 1.0 and SuSE Linux
distributions
To create group and user IDs for a DB2 UDB Version 8.2 installation on
United Linux 1.0 and SuSE Linux distributions, use the groupadd and
useradd commands, respectively. The Version 8.2 Installation and
Configuration Supplement incorrectly documents the mkgroup and mkuser
commands to create group and user IDs, respectively.
Help system daemon does not start after installing with the db2_install
command (Linux)
If you are installing the DB2 Information Center on Linux platforms
using the db2_install command, the help system daemon (db2icd) does not
start following the installation. You need to manually start the help
system daemon or restart your computer to access the documentation.
See the topic titled "DB2 Information Center daemon" in the
Documentation updates | Installation and configuration section of the
Release Notes.
Installation image reduction tool - db2iprune (Windows)
The db2iprune command line utility can reduce the size of your DB2
Universal Database (UDB) Windows product installation image. The tool
is particularly useful for large scale deployments of DB2 UDB. The tool
is also useful for embedding DB2 UDB within an application.
The db2iprune tool consists of an input file and an executable file. The
input file (.prn), contains a full list of removable components and is
used to indicate which features and languages you would like to remove
from the installation image. The db2iprune executable file
(db2iprune.exe) then removes the cabinet files associated with those
features and languages. The result is a new, smaller DB2 UDB image that
can be installed using the regular installation methods. Fixpaks are
also applied using the regular methods. When the fixpak is installed it
detects and updates only the components that were installed using
db2iprune.
The db2iprune tool is located in the \db2\windows\utilities\db2iprune
directory on your DB2 UDB product installation CD. This directory also
contains a Readme file. Refer to the db2iprune Readme for detailed
instructions on how to use db2iprune.
DB2 Universal Database, Version 8 documentation installation restriction
(Windows)
On Windows, do not install the DB2 Universal Database (UDB), Version 8
Information Center (HTML documentation) on a workstation or server where
a DB2 UDB, Version 7 (or earlier) product is already installed. The
installer detects the earlier version and removes the earlier product.
Previous installations updated to the latest level (Windows)
If you have a DB2 product that is installed at an earlier Version 8
level, the installation image detects this and updates the product to
the latest level.
System requirements for the DB2 .NET Data Provider (Windows)
Before using the DB2 Universal Database (UDB) installation program to
install the DB2 .NET Data Provider, you must have the .NET Framework
already installed on the computer. If the .NET Framework is not
installed, the DB2 UDB installation program will not register the DB2
.NET Data Provider.
If DB2 UDB is installed and the .NET Framework is not installed, the DB2
.NET Data Provider is not registered. If the .NET Framework is
installed at a later date, you can run the db2nmpreg executable to
register the provider. This executable resides in the sqllib\bin
directory. There are no parameters.
To register DB2 .NET Data Provider, enter db2nmpreg from any command
window.
Installing DB2 Version 8 Clients and DB2 Connect PE as a
non-Administrator (Windows)
When installing a DB2 Administration client, DB2 Application Development
client, or DB2 Connect Personal Edition, you must update your Windows
TCP/IP services file if the following conditions apply:
* The data warehousing feature is selected in the installation setup
* The user ID performing the installation is not a member of the
Administrators group on the target computer
* The product is being installed on any one of the following operating
systems: Windows NT(R), Windows 2000, Windows XP, or Windows Server
2003.
If all of the these conditions apply, the following entries need to be
added to the Windows TCP/IP services file:
Workaround 1
Delete the contents of the table using the DELETE statement,
then invoke the import with INSERT statement.
Workaround 2
Drop the table and recreate it, then invoke the import with
INSERT statement.
This limitation applies to DB2 UDB Version 7 and DB2 UDB Version 8.
Data export with ODBC to file warehouse program
The Data export with ODBC to file warehouse program does not support the
following Sybase data types:
* BIT
* BINARY
* VARBINARY
Data types that are not supported in the Development Center's integrated
SQL debugger
The following data types are not supported in the SQL Debugger that is
integrated into Development Center:
* For DB2 Universal Database (UDB) for Linux and Windows, the CHAR FOR
BIT DATA,VARCHAR FOR BIT DATA, and GRAPHIC data types are not
supported.
* For DB2 UDB for z/OS, the GRAPHIC data type is not supported and the
BLOB and CLOB data types, used as parameters, are not supported. BLOB
and CLOB used as local variables are supported.
Structured types in the Development Center
The Development Center no longer supports the creation of structured
types.
Development Center limitations for 64-bit operating systems
Debugging of Java stored procedures against a 64-bit server is not
supported by the Development Center. Debugging SQL stored procedures is
supported on 64-bit Windows operating systems. Developing OLE DB or XML
User Defined Functions is not supported for 64-bit servers.
Development Center (Linux)
You cannot use the Development Center to debug Java stored procedures
running on any of the Linux distributions (32-bit, 64-bit, Intel(TM),
zSeries(R), or iSeries(TM)).
Debugging stored procedures with double quotation marks
The Development Center does not support debugging for any stored
procedure with double quotation marks (") in the stored procedure name,
schema, or specific name.
Path settings needed to enable Java routines to compile in the
Development Center
The Development Center cannot compile Java routines unless it knows
where your developer kit versions are installed. Default directories for
your developer kit versions are written to your
$HOME/.ibm/db2/dc/DB2DC.settings file when the Development Center starts
for the first time. You can copy these directories into your
$USER.settings file and modify them with a Unicode editor, or you can
create symbolic links to your developer kit directories in the default
locations.
Development Center limitations to run and debug Java stored procedures
simultaneously
The Development Center does not support running and debugging Java
stored procedures simultaneously. In the Development Center, you can
either run multiple Java stored procedures at the same time or debug a
single Java stored procedure; you cannot run a Java stored procedure
while debugging another Java stored procedure. By default, the
KEEPFENCED database manager configuration keyword is set to
KEEPFENCED=YES as required for debugging SQL stored procedures. When the
keyword KEEPFENCED has the default value YES, the routine process is
kept active and JVM port conflicts will occur. Java stored procedures
will cause a JVM exception and will fail in any of the following
circumstances when the default KEEPFENCED=YES database manager
configuration setting is used:
* Building a Java stored procedure in the Development Center then
debugging it
* One user running a Java stored procedure and another user debugging a
Java stored procedure while the initial Java stored procedure is
still running
* One user debugging a Java stored procedure and another user running a
Java stored procedure while the initial Java stored procedure is
being debugged
To work around this limitation, ensure that the KEEPFENCED database
manager configuration keyword is set to KEEPFENCED=NO by running the
following commands:
db2 update dbm cfg using KEEPFENCED NO
db2stop
db2start
When KEEPFENCED is set to NO, the db2fmp process will shut down when a
Java stored procedure call is finished, and DB2 Universal Database will
start a new db2fmp process to handle the next routine call. This ensures
that there will be no existing JVM in debug mode when you start to debug
a Java stored procedure.
The KEEPFENCED=YES setting is required to build SQL stored procedures
for debugging and to debug SQL stored procedures. When KEEPFENCED=NO,
you can still build and execute SQL stored procedures but you cannot
debug them.
DB2SystemMonitor.getServerTimeMicros method not supported
The DB2(R) Universal JDBC Driver method
DB2SystemMonitor.getServerTimeMicros() is currently not supported by DB2
Universal Database(TM) for Linux and Windows servers. The
DB2SystemMonitor.getServerTimeMicros() method returns 0 when connecting
to DB2 Universal Database for Linux and Windows servers.
Universal JDBC Driver Type 2 not supported on DB2 UDB Version 8.2.2
(Linux AMD64 )
DB2 Universal Database (UDB) Version 8.2.2 on Linux AMD64 does not
support the Universal JDBC Driver Type 2. Support is planned for a
future fixpak. JDBC support in Version 8.2.2 is available using
Universal JDBC Driver Type 4 and the Legacy JDBC Type 2 driver
(COM.ibm.db2.jdbc.app.DB2Driver).
Cursors in PHP applications
When the PHP interpreter creates a cursor on behalf of an application,
it is created by default as a Scrollable Keyset-driven cursor. In
certain cases, this might cause unexpected results to be returned. In
order to avoid this situation, explicitly specify the "FOR READ ONLY"
clause for all SELECT statements that are used to update data. Other
alternatives include setting the CLI Configuration parameters
"Patch2=6", "Patch2=42", or "DisableKeysetCursor=1". However, each of
these might have other consequences. Refer to the CLI Guide and
Reference documentation for details regarding these configuration
keywords.
Bind option limitations for CLI packages
Some bind options might not take effect when binding CLI packages with
any of the following list files: db2cli.lst, ddcsmvs.lst, ddcs400.lst,
ddcsvm.lst, or ddcsvse.lst. Because CLI packages are used by CLI, ODBC,
JDBC, OLE DB, .NET, and ADO applications, any changes made to the CLI
packages affect all applications of these types. Only a subset of bind
options are therefore supported by default when binding CLI packages.
The supported options are: ACTION, COLLECTION, CLIPKG, OWNER, and
REPLVER. All other bind options that impact CLI packages are ignored.
To create CLI packages with bind options that are not supported by
default, specify the COLLECTION bind option with a collection ID that is
different from the default collection ID, NULLID. Any bind options
specified are then accepted. For example, to create CLI packages with
the KEEPDYNAMIC YES bind option, which is not supported by default,
issue the following command:
db2 bind @db2cli.lst collection newcolid keepdynamic yes
In order for CLI/ODBC applications to access the CLI packages created in
the new collection, set the CurrentPackageSet CLI/ODBC keyword in the
db2cli.ini initialization file to the new collection ID.
To overwrite CLI packages that already exist under a particular
collection ID, perform either of the following actions:
* Drop the existing CLI package before issuing the bind command for
this collection ID
* Specify the ACTION REPLACE bind option when issuing the bind command
CLI LOAD restriction for specifying column names
If the INSERT statement supplied to the CLI LOAD utility includes a
VALUES clause, target columns cannot be specified. For example, the
following statement is supported by CLI LOAD:
INSERT into tableA VALUES (?, ?, ?)
This statement, however, that specifies target columns is not supported
for use with the CLI LOAD utility:
INSERT into tableA (col1, col2, col3) VALUES (?, ?, ?)
Tools catalog database creation not supported (Linux for AMD64)
The creation of the tools catalog database under a 64-bit DB2 Universal
Database (UDB) instance on Linux (AMD64) is not supported. Do not
attempt to create the tools catalog under a 64-bit instance using any of
the following methods:
* Installing DB2 UDB
* Updating a 64-bit instance using the db2isetup command
* Issuing the CREATE TOOLS CATALOG CLP command after the installation
is finished.
The creation of the tools catalog database under a 32-bit instance on
Linux (AMD64) is supported as of Version 8.1.4.
Memory limitations for DB2 UDB Express and DB2 Workgroup Server Edition
V8.2
There are memory limitations for the following products:
* IBM DB2 Universal Database (UDB) Express Edition (Named user option).
The maximum memory per server is 4GB.
* IBM DB2 UDB Express Edition (CPU option). The maximum memory per
server is 4GB.
* IBM DB2 UDB Workgroup Server Edition. The maximum memory per server
is 16GB.
* IBM DB2 UDB Workgroup Server Unlimited Edition. The maximum memory
per server is 16GB.
Scheduling a warehouse process to run at intervals
When scheduling a warehouse process to run at intervals, you must
determine the longest time it takes to run all the production steps in
the process and schedule the intervals accordingly. If a process exceeds
the scheduled time interval, all subsequently scheduled occurrences of
that process will not run and will not be rescheduled.
Load and Import Columns page does not support DBCS characters in IXF
files
If you use the Load wizard or Import notebook to set up a load or import
from an IXF input file containing DBCS characters, the Columns page will
not correctly display the column names contained in the file.
Security plug-in problem and restriction for DB2 UDB clients (Windows)
When developing security plug-ins that will be deployed in DB2 clients
on Windows operating systems, do not unload any auxiliary libraries in
the plug-in termination function. This restriction applies to all types
of client security plug-ins, including group, user ID and password,
Kerberos, and GSS-API plug-ins.
This restriction is caused by DB2 Universal Database's problem unloading
security plug-ins in DB2 clients on Windows operating systems.
Two-part user ID not supported (Windows ME)
The two-part user ID for the CONNECT statement and ATTACH command, such
as domainname\username, is not supported on Windows ME.
Minimum display settings for GUI tools
For the GUI tools such as the Control Center to work properly, you must
have a screen resolution of at least 800 by 600 and use a display
palette of at least 32 colors.
Improper display of GB18030 characters in the title bar of a window
If you have characters from the GB18030 Chinese character encoding
standard in the title bar of a window, they might appear as questions
marks or squares.
Health indicator restrictions
The health monitor is unable to execute actions for the
db2.db2_op_status health indicator if the indicator enters the down
state. This state can be caused, for example, when an instance that the
indicator is monitoring becomes inactive because of an explicit stop
request or an abnormal termination. If you want to have the instance
restart automatically after any abnormal termination, you must configure
the fault monitor to keep the instance highly available.
Known problems and workarounds
The "db2gcf -k" command fails on DB2 UDB Express Edition
Problem
The db2gcf command starts, stops, or monitors a DB2 Universal Database
(UDB) instance, usually from an automated script, such as in an HA (high
availability) cluster.
Using the db2gcf system command with the -k parameter on DB2 UDB Express
will fail.
Workaround
The "db2gcf -k" command works only on DB2 UDB Enterprise Server Edition
and not on DB2 UDB Express Edition.
Hotkeys not working in Microsoft Visual Studio .NET Framework 1.1
If your hotkeys are not working in Microsoft Visual Studio .NET
Framework 1.1, you can download a hotfix from the Microsoft Web site.
You can find the hotfix in the Microsoft Knowledge Base, article
Q836745.
The simplified Chinese locale (Red Hat Linux)
Red Hat Version 8 and later (including Red Hat Enterprise Linux [RHEL]
versions 2.1 and 3) have changed the default code set for simplified
Chinese from GBK (code page 1386) to GB18030 (code page 5488 or 1392).
Since DB2 Universal Database (UDB) for Linux supports the GBK code set
natively and the GB18030 code set via Unicode, DB2 UDB will default its
code set to ISO 8859-1 (code page 819), and in some operations will also
default its territory to the United States (US).
To work around this limitation, you have two options:
* You can override the Red Hat default code set from GB18030 to GBK and
the territory from US to China (whose territory ID is CN and
territory code is 86).
* You can use a different simplified Chinese locale.
If you choose to use the first option, issue the following commands:
db2set DB2CODEPAGE=1386
db2set DB2TERRITORY=86
db2 terminate
db2stop
db2start
If you choose to use the second option, issue any one of the following
commands:
export LANG=zh_CN.gbk
export LANG=zh_CN
export LANG=zh_CN.utf8
where the code set associated with zh_CN is eucCN or code page 1383, and
with zh_CN.utf8 is code page 1208.
SQLFLAG (STD) precompiler option error
If the SQLFLAG(STD) precompile option is enabled, it will cause the
following error: Abend C6 occurred while running Precompile program
DSNHPC
Remove the SQLFLAG (STD) precompile option when using the Development
Center to create SQL stored procedures to run on DB2 Universal Database
for z/OS, Version 8.
DB2 Connect Custom Advisor
Despite being documented in the DB2 Connect User's Guide, the DB2
Connect Custom Advisor is no longer supported in Version 8.2.
Displaying Indic characters in the DB2 GUI tools
If you have problems displaying Indic characters when using the DB2 GUI
tools, you might not have the required fonts installed on your system.
DB2 Universal Database (UDB) has packaged the following IBM TrueType and
OpenType proportional Indic language fonts for your use. You can find
these fonts in the font directory on any of the following CDs:
* IBM Developer Kit, Java Technology Edition (64-bit) for AIX 5L
* DB2 Embedded Application Server and applications (XML registry, Web
Administration tools and Java distributed debugger) for your
operating system
These fonts are to be used only in conjunction with DB2 UDB. You cannot
engage in the general or unrestricted sale or distribution of these
fonts:
Table 8. Indic fonts packaged with DB2 UDB
+-----------------------+----------------------+----------------------+
| Typeface | Weight | Font File Name |
+-----------------------+----------------------+----------------------+
| Devanagari MT for IBM | Medium | devamt.ttf |
+-----------------------+----------------------+----------------------+
| Devanagari MT for IBM | Bold | devamtb.ttf |
+-----------------------+----------------------+----------------------+
| Tamil | Medium | TamilMT.ttf |
+-----------------------+----------------------+----------------------+
| Tamil | Bold | TamilMTB.ttf |
+-----------------------+----------------------+----------------------+
| Telugu | Medium | TeluguMT.ttf |
+-----------------------+----------------------+----------------------+
| Telugu | Bold | TeleguMTB.ttf |
+-----------------------+----------------------+----------------------+
Detailed instructions on how to install the fonts and modify the
font.properties file can be found in the Internationalization section of
the IBM Development Kit for Java documentation.
In addition, the following Microsoft products come with Indic fonts that
can be used with DB2 GUI tools:
* Microsoft Windows 2000 operating system
* Microsoft Windows XP operating system
* Microsoft Publisher
* Microsoft Office
Enclose DB2 Information Center search terms within quotation marks if
they contain numbers
To get accurate search results in the DB2 Information Center you must
enclose search terms that include numbers within quotation marks.
For example, if you search for the following term you will receive no
results:
1.4.1
However, if you enclose the term within quotation marks, you receive the
appropriate results:
"1.4.1"
A search for the following term will return extra topics:
DB20000I
But a search on the following term works properly:
"DB20000I"
Secure environments (Windows)
You might experience file permission problems if you are using DB2
Universal Database (UDB) on Windows and are not an administrator on the
Windows system. If you receive an SQL1035N, SQL1652N, or SQL5005C error
message, possible causes and workarounds are shown in the following
information:
User does not have sufficient authority on the sqllib directory
Second workaround
Create a new directory where you can grant the user, at
minimum, the MODIFY permission. Use the db2set db2instprof
command to point to the new directory. You will need either to
recreate the instance so that the information is stored under
the new instance directory specified by db2instprof, or you
will need to move the old instance directory to the new
directory.
XML Extender sample programs renamed
Some XML Extender sample programs might have the same name as other
installed programs. Accidentally invoking another program with the same
name as an XML Extender sample program can damage your XML files. The
following list shows the old XML Extender sample program names as well
as new replacement program names that are less likely to cause
conflicts. Make sure you use the new sample program names instead of
the old ones to prevent damaging your XML files.
Table 9. Replacement sample programs for XML Extender (Windows)
+----------------------------------+----------------------------------+
| Old Program (Do not use) | New Program (Use) |
+----------------------------------+----------------------------------+
| insertx.exe | dxxisrt.exe |
+----------------------------------+----------------------------------+
| retrieve.exe | dxxretr.exe |
+----------------------------------+----------------------------------+
| retrieve2.exe | dxxretr2.exe |
+----------------------------------+----------------------------------+
| retrievec.exe | dxxretrc.exe |
+----------------------------------+----------------------------------+
| shred.exe | dxxshrd.exe |
+----------------------------------+----------------------------------+
| tests2x.exe | dxxgenx.exe |
+----------------------------------+----------------------------------+
| tests2xb.exe | dxxgenxb.exe |
+----------------------------------+----------------------------------+
| tests2xc.exe | dxxgenxc.exe |
+----------------------------------+----------------------------------+
Table 10. Replacement sample programs for XML Extender (Linux)
+----------------------------------+----------------------------------+
| Old Program (Do not use) | New Program (Use) |
+----------------------------------+----------------------------------+
| insertx | dxxisrt |
+----------------------------------+----------------------------------+
| retrieve | dxxretr |
+----------------------------------+----------------------------------+
| retrieve2 | dxxretr2 |
+----------------------------------+----------------------------------+
| retrievec | dxxretrc |
+----------------------------------+----------------------------------+
| shred | dxxshrd |
+----------------------------------+----------------------------------+
| tests2x | dxxgenx |
+----------------------------------+----------------------------------+
| tests2xb | dxxgenxb |
+----------------------------------+----------------------------------+
| tests2xc | dxxgenxc |
+----------------------------------+----------------------------------+
Using the new sample programs with the sample sqx files
The source code (.sqx files) for the executables listed previously are
located in the samples\db2xml\c directory of your installation. The
source files are still labeled with their old names. If you make changes
to the source code, copy your newly compiled executables (with the old
names) to the sqllib\bin directory.
On Windows platforms, you must make an additional copy, rename it with
its new name above, and copy it to the bin directory. Both copies
replace the existing files in the bin directory. For example, after
compiling your new version of shred.exe, you need to make two copies and
replace the files in the bin directory: one labeled shred.exe and the
other renamed dxxshrd.exe.
On Linux platforms, you need only to replace the file with the old name
with your newly compiled version. If you create new executable files
from these samples, you must copy the new files from the
\SQLLIB\samples\db2xml\c\ directory into the \SQLLIB\bin\ directory, and
then make an additional copy, renaming them according to the previous
table.
Decomposing documents in XML Extender that contain non unique attribute
and element names
You can now decompose documents that contain non-unique attributes or
non-unique element names that map to different columns (of the same or
different tables) without receiving the DXXQ045E error. The following is
an example of an XML document with non-unique attributes and non-unique
element names:
<Order ID="0001-6789">
<!-- Note: attribute name ID is non-unique -->
<Customer ID="1111">
<Name>John Smith</Name>
</Customer>
<!-- Note: element name Name is non_unique -->
<Salesperson ID="1234">
<Name>Jane Doe</Name>
</Salesperson>
<OrderDetail>
<ItemNo>xxxx-xxxx</ItemNo>
<Quantity>2</Quantity>
<UnitPrice>12.50</UnitPrice>
</OrderDetail>
<OrderDetail>
<ItemNo>yyyy-yyyy</ItemNo>
<Quantity>4</Quantity>
<UnitPrice>24.99</UnitPrice>
</OrderDetail>
</Order>
The accompanying DAD, which maps the duplicate elements and attributes
to different columns, looks like this:
<element_node name="Order">
<RDB_node>
<table name="order_tab" key="order_id"/>
<table name="detail_tab"/>
<condition>
order_tab.order_id=detail_tab.order_id
</condition>
</RDB_node>
<!--attribute ID duplicated below, but mapped to a different col-->
<attribute_node name="ID">
<RDB_node>
<table name="order_tab" />
<column name="order_id" type="char(9)"/>
</RDB_node>
</attribute_node>
<element_node name="Customer">
<!--attribute ID duplicated above, but mapped to a different col-->
<attribute_node name="ID">
<RDB_node>
<table name="order_tab" />
<column name="cust_id" type="integer"/>
</RDB_node>
</attribute_node>
<!--element name duplicated below, but mapped to a different col-->
<element_node name="Name">
<text_node>
<RDB_node>
<table name="order_tab" />
<column name="cust_name" type="char(20)" />
</RDB_node>
</text_node>
</element_node>
</element_node>
<element_node name="Salesperson">
<!--attribute ID duplicated above, but mapped to a different col-->
<attribute_node name="ID">
<RDB_node>
<table name="order_tab" />
<column name="salesp_id" type="integer"/>
</RDB_node>
</attribute_node>
<!--element name duplicated above, but mapped to a different col-->
<element_node name="Name">
<text_node>
<RDB_node>
<table name="order_tab" />
<column name="salesp_name" type="char(20)" />
</RDB_node>
</text_node>
</element_node>
</element_node>
<element_node name="OrderDetail" multi_occurrence="YES">
<element_node name="ItemNo">
<text_node>
<RDB_node>
<table name="detail_tab" />
<column name="itemno" type="char(9)"/>
</RDB_node>
</text_node>
</element_node>
<element_node name="Quantity">
<text_node>
<RDB_node>
<table name="detail_tab" />
<column name="quantity" type="integer"/>
</RDB_node>
</text_node>
</element_node>
<element_node name="UnitPrice">
<text_node>
<RDB_node>detail_tab" />
<table name="detail_tab" />
<column name="unit_price" type="decimal(7,2)"/>
</RDB_node>
</text_node>
</element_node>
</element_node>
</element_node>
The contents of the tables would look like the following sample after
the preceding document is decomposed:
ORDER _TAB:
ORDER_ID CUST_ID CUST_NAME SALESP_ID SALESP_NAME
0001-6789 1111 John Smith 1234 Jane Doe
DETAIL_TAB:
ORDER_ID ITEMNO QUANTITY UNIT_PRICE
0001-6789 xxxx-xxxx 2 12.50
0001-6789 yyyy-yyyy 4 24.99
Note: To map multiple elements and attributes to the same column of the
same table, define an alias for the table and use the alias in the
DAD <table> element of one of the mappings.
Documentation updates
Administration: Implementation
Automatic storage
The format of the names for the containers has changed in such a way
that the table space ID and the container ID have also changed. The new
format is:
<storage path>/<instance>/NODE####
/T#######
/C#######.<EXT>
where:
* /T####### is the table space ID. For example, T0000003.
* /C####### is the container ID. For example, C0000012.
Defining a generated column on an existing table
Generated columns can now be used in unique indexes.
Generated columns cannot be used in constraints, referential
constraints, primary keys, and global temporary tables. A table created
with LIKE and materialized views does not inherit generated column
properties.
Aggregate registry variables
When you have set DB2WORKLOAD=SAP, the user table space SYSTOOLSPACE and
the user temporary table space SYSTOOLSTEMPSPACE are not automatically
created. These table spaces are used for tables created automatically
by the following wizards, utilities, or functions:
* Automatic maintenance
* Design advisor
* Control Center database information panel
* SYSINSTALLOBJECTS stored procedure, if the table space input
parameter is not specified
* GET_DBSIZE_INFO stored procedure
Without the SYSTOOLSPACE and SYSTOOLSTEMPSPACE table spaces, you cannot
use these wizards, utilities, or functions.
To be able to use the wizards, utilities, or functions, do either of the
following:
* Manually create SYSTOOLSPACE (on the catalog node only, if using
DPF). For example:
CREATE REGULAR TABLESPACE SYSTOOLSPACE
IN IBMCATGROUP
MANAGED BY SYSTEM
USING ('SYSTOOLSPACE')
* Call SYSINSTALLOBJECTS to create objects, specifying a valid table
space, for each of the following tool names: "DB2AC", "POLICY" and
"STMG_DBSIZE_INFO"
After completing at least one of these choices, create a user temporary
table space (also on the catalog node only, if using DPF). For
example:
CREATE USER TEMPORARY TABLESPACE SYSTOOLSTMPSPACE
IN IBMCATGROUP
MANAGED BY SYSTEM
USING ('SYSTOOLSTMPSPACE')
Once the table space SYSTOOLSPACE and the temporary table space
SYSTOOLSTEMPSPACE are created, you can use the wizards, utilities, or
functions mentioned earlier.
Authentication considerations for remote clients
The authentication type DATA_ENCRYPT_CMP is designed to allow clients
from a previous release that do not support data encryption to connect
to a server using SERVER_ENCRYPT authentication instead of
DATA_ENCRYPT. This authentication does not work when the following three
statements are true:
* The client level is Version 7.2.
* The gateway level is Version 8 FixPak 7 or later.
* The server is Version 8 FixPak 7 or later.
In this case, the client cannot connect to the server. To allow the
connection, you must either upgrade your client to Version 8, or have
your gateway level at Version 8 FixPak 6 or earlier.
Direct I/O (DIO) support
Direct I/O (DIO) improves memory performance because it bypasses caching
at the file system level. This process reduces CPU overhead and makes
more memory available to the database instance.
DB2 Universal Database (UDB) supports DIO on Linux and Windows.
The keywords NO FILE SYSTEM CACHING and FILE SYSTEM CACHING are part of
the CREATE and ALTER TABLESPACE SQL statements to allow you to specify
whether DIO is to be used with each table space.
Distributor technology and automatic client rerouting
The following information is part of the Administration Guide:
Implementation Appendix B "Using automatic client rerouting":
The DB2 Universal Database for Linux and Windows automatic client
reroute feature allows client applications to recover from a loss of
communication with the server by automatically reestablishing the
database connection from the client to the server, so that the
application can continue to work with minimal interruption.
When a client to server connection fails, the client's requests for
reconnection are distributed to a defined set of systems by a
distributor or dispatcher, such as WebSphere(R) EdgeServer
You may be using Distributor Technology in an environment similar to the
following:
Client --> Distributor Technology --> (DB2 Connect Server 1 or DB2
Connect Server 2) --> DB2 z/OS
where:
* The Distributor Technology component has a TCP/IP host name of
DThostname
* The DB2 Connect Server 1 has a TCP/IP host name of GWYhostname1
* The DB2 Connect Server 2 has a TCP/IP host name of GWYhostname2
* The DB2 z/OS server has a TCP/IP host name of zOShostname
The client is catalogued using DThostname in order to utilize the
distributor technology to access either of the DB2 Connect Servers. The
intervening distributor technology makes the decision to use
GWYhostname1 or GWYhostname2. Once the decision is made, the client has
a direct socket connection to one of these two DB2 Connect gateways.
Once the socket connectivity is established to the chosen DB2 Connect
server, you have a typical client to DB2 Connect server to DB2 z/OS
connectivity.
For example, assume the distributor chooses GWYhostname2. This produces
the following environment:
Client --> DB2 Connect Server 2 --> DB2 z/OS
The distributor does not retry any of the connections if there is any
communication failure. If you want to enable the Automatic Client
Reroute feature for a database in such an environment, the alternate
server for the associated database or databases in the DB2 Connect
Server (DB2 Connect Server 1 or DB2 Connect Server 2) should be set up
to be the distributor (DThostname). Then, if DB2 Connect Server 1 locks
up for any reason, Automatic Client Reroute is triggered and client
connection is retried with the distributor as both primary and alternate
server. This option allows you to combine and maintain the distributor
capabilities with the DB2 Automatic Client Reroute feature. Setting the
alternate server to a host other than the distributor host name will
still provide the clients with the Automatic Client Reroute feature.
However, the clients will establish direct connections to the defined
alternate server and bypass the distributor technology, which eliminates
the distributor and the value that it brings.
Automatic Client Reroute will intercept the following sqlcodes:
* sqlcode -20157
* sqlcode -1768 (reason code = 7)
Local system account support (Windows)
Applications running under the context of the local system account (LSA)
are supported on all Windows platforms, except Windows ME.
Two-part user ID support
The CONNECT statement and ATTACH command support two-part user IDs. The
qualifier of the SAM-compatible user ID is the NetBIOS style name which
has a maximum length of 15 characters. This feature is not supported on
Windows ME.
Kerberos authentication details
Kerberos and client principals
You can override the Kerberos server principal name used by the DB2
Universal Database (UDB) server on Linux operating systems. Set the
DB2_KRB5_PRINCIPAL environment variable to the desired fully qualified
server principal name. The instance must be restarted because the server
principal name is only recognized by DB2 UDB after db2start is run.
Additional information for Kerberos support
Linux prerequisites
The prerequisites for Linux Kerberos support are inaccurately reported
in the documentation. The provided DB2 Kerberos security plug-in is
supported with Red Hat Enterprise Linux Advanced Server 3 with the IBM
Network Authentication Service (NAS) 1.4 client.
zSeries and iSeries compatibility
For connections to zSeries and iSeries, the database must be cataloged
with the AUTHENTICATION KERBEROS parameter and the TARGET PRINCIPAL
parameter name must be explicitly specified.
Neither zSeries nor iSeries support mutual authentication.
Windows issues
* Due to the manner in which Windows detects and reports some errors,
the following conditions result in an unexpected client security
plug-in error (SQL30082N, rc=36):
* Expired account
* Invalid password
* Expired password
* Password change forced by administrator
* Disabled account
Furthermore, in all cases, the DB2 administration log or db2diag.log
will indicate "Logon failed" or "Logon denied."
* If a domain account name is also defined locally, connections
explicitly specifying the domain name and password will fail with the
following error:
The Local Security Authority cannot be contacted
The error is a result of Windows locating the local user first. The
solution is to fully qualify the user in the connection string. For
example:
[email protected]
* Windows accounts cannot include the @ character in their name because
the character is assumed to be the domain separator by the DB2
Kerberos plug-in.
* When interoperating with a non-Windows platform, ensure that all
Windows domain server accounts and all Windows client accounts are
configured to use DES encryption. If the account used to start the
DB2 service is not configured to use DES encryption, the DB2 server
will fail to accept Kerberos contexts. In particular, DB2 Universal
Database will fail with an unexpected server plug-in error, and will
log that the AcceptSecurityContext API returned SEC_I_CONTINUE_NEEDED
(0x00090312L).
To determine if Windows accounts are configured to use DES
encryption, look under Account properties in the Active Directory. A
restart might be required if the account properties are changed.
* If the client and server are both on Windows, then the DB2 service
can be started under the local system account. However, if the
client and server are in different domains, the connection might fail
with an invalid target principal name error. The workaround is to
explicitly catalog the target principal name on the client using the
fully qualified server host name and the fully qualified domain name,
in the following format:
host/<server hostname>@<server domain name>
For example:
host/[email protected]
Otherwise, you must start the DB2 service under a valid domain
account.
Administration: Performance
New system environment variables (Linux)
The DB2_MAPPED_BASE and DB2DBMSADDR system environment variables have
been added at FixPak 8.
Use of these registry variables is only recommended for advanced users.
DB2_MAPPED_BASE
Variable name
DB2_MAPPED_BASE
Values 0 OR (hex) virtual address in the 31-bit and 32-bit address
range OR NULL (not set)
Operating systems
Linux on x86 and Linux on zSeries (31-bit)
Description
The DB2_MAPPED_BASE registry variable can be used to increase
the amount of contiguous virtual address space available to a
DB2 Universal Database (UDB) process by relocating the
attachment address of the shared libraries for the specific
process. The contiguous virtual address space is important to
maximize the amount of database shared memory available to DB2
UDB. This variable is only effective on distributions that
include the mapped_base file in the process identification
directory in the proc file system.
DB2 UDB will attempt to relocate the shared libraries to the
virtual address 0x10000000 if this variable is not set.
The registry variable can also be set to any virtual address
(in hex) in the range of the 31 and 32-bit address space.
Note: An incorrect address can cause severe issues with DB2
UDB, ranging from an inability to start DB2 UDB to an
inability to connect to the database. An incorrect
address is one that collides with an area in memory that
is already in use or is predestined to be used for
something else. To address this problem, reset the
DB2_MAPPED_BASE variable to NULL by using the following
command:
db2set DB2_MAPPED_BASE=
The following message may appear multiple times in the
db2diag.log file because this change is required once per
logical node:
ADM0506I DB2 has automatically updated the "mapped_base"
kernel parameter from "0x40000000(hex) 1073741824(dec)" to
the recommended value "0x10000000(hex) 268435456(dec)".
This message will only appear if setting of the registry
variable successful, and it will include the address that the
shared libraries are relocated to.
DB2DBMSADDR
Variable name
DB2DBMSADDR
Values Virtual addresses in the range 0x09000000 to 0xB0000000 in
increments of 0x10000
Operating systems
Linux on x86 and Linux on zSeries (31-bit)
Description
Specifies the default database shared memory address in
hexadecimal format.
Note: An incorrect address can cause severe issues with DB2
UDB, ranging from an inability to start DB2 UDB, to an
inability to connect to the database. An example of an
incorrect address is one that collides with an area in
memory that is already in use or predestined to be used
for something else. To address this problem, reset the
DB2DBMSADDR variable to NULL by using the following
command:
db2set DB2DBMSADDR=
This variable can be set in conjunction with DB2_MAPPED_BASE
or alone to fine tune the address space layout of DB2 UDB
processes. This variable changes the location of the instance
shared memory from it's current location at virtual address
0x20000000 to the new value given.
New communication registry variable
The DB2TCP_CLIENT_RCVTIMEOUT registry variable has been added in Version
8.2.
Table 11. Communications variables
+---------------------------+-------------+---------------------------+
| Variable name | Operating | Values |
| | systems | |
+---------------------------------------------------------------------+
| Description |
+---------------------------+-------------+---------------------------+
| DB2TCP_CLIENT_RCVTIMEOUT | All | Default=0 (not set) |
| | | Values: 0 to 32767 |
| | | seconds |
+---------------------------------------------------------------------+
| Specifies the number of seconds a client waits for data on a TCP/IP |
| receive. |
| There is no timeout if the registry variable is not set or is set |
| to 0. If the TCP/IP receive returns with data before the timeout |
| value has expired, the application proceeds as usual. If the |
| timeout value expires before data is returned, the connection |
| closes. |
| |
| Note: This registry variable is applicable to the DB2 Client and |
| the client side of the DB2 Gateway only. It is not applicable to |
| the DB2 Server. |
+---------------------------------------------------------------------+
SQL compiler variables
The following update applies to the topic "SQL compiler variables" in
Appendix A "DB2 registry and environment variables" of the
Administration Guide: Performance:
When either or both of the DB2 compiler variables
DB2_MINIMIZE_LISTPREFETCH and DB2_INLIST_TO_NLJN, are set to ON, they
remain active even if REOPT(ONCE) is specified.
Configuration parameter updates
Following are the updates to the configuration parameter documentation:
authentication - Authentication type
The Authentication type (authentication) database manager configuration
parameter also accepts the following values:
* DATA_ENCRYPT
The server accepts encrypted SERVER authentication schemes and the
encryption of user data. The authentication works exactly the same
way as SERVER_ENCRYPT.
The following user data are encrypted when using this authentication
type:
* SQL statements.
* SQL program variable data.
* Output data from the server processing an SQL statement and
including a description of the data.
* Some or all of the answer set data resulting from a query.
* Large object (LOB) data streaming.
* SQLDA descriptors.
* DATA_ENCRYPT_CMP
The server accepts encrypted SERVER authentication schemes and the
encryption of user data. In addition, this authentication type allows
compatibility with earlier products that do not support DATA_ENCRYPT
authentication type. These products are permitted to connect with the
SERVER_ENCRYPT authentication type and without encrypting user data.
Products supporting the new authentication type must use it. This
authentication type is only valid in the server's database manager
configuration file and is not valid when used on the CATALOG DATABASE
command.
util_impact_lim - Instance impact policy
Starting with DB2 Universal Database Version 8.2, the default value of
the Instance impact policy (util_impact_lim) database manager
configuration parameter changes from 100 to 10.
sysadm_group, sysmaint_group, sysctrl_group, sysmon_group
The following database manager configuration parameters can all accept
group names of 30 bytes (or less) on all platforms:
* System administration authority group name (sysadm_group)
* System maintenance authority group name (sysmaint_group)
* System control group authority name (sysctrl_group)
* System monitor authority group name (sysmon_group)
The table in the topic "Database manager configuration parameter
summary" contains incorrect data types for these database manager
configuration parameters. The correct value in all cases is char(30).
estore_seg_sz - Extended storage memory segment size
The maximum size for the Extended storage memory segment size database
(estore_seg_size) configuration parameter on Windows based platforms is
16 777 216.
hadr_timeout - HADR timeout value
The correct upper limit of the HADR timeout value (hadr_timeout)
database configuration parameter is 4 294 967 295.
locklist - Maximum storage for lock list
The documentation for the Maximum storage for locklist (locklist)
database configuration parameter states that the maximum value for
Windows 64-bit and 32-bit servers that service only local clients is
60 000. This value is incorrect, and should be 524 288.
num_db_backups - Number of database backups
The range of values for the Number of database backups (num_db_backups
database configuration parameter is incorrect. The correct range is 0 -
32 767.
SQLDBCONF database configuration parameter file
After migrating to DB2 Universal Database (UDB) Version 8.2 from Version
8.1, DB2 UDB uses a new 16 KB database configuration parameter file
named SQLDBCONF. (In Version 8.1, the database configuration parameter
file was only 4 KB and named SQLDBCON).
Change to the DB2_HASH_JOIN default value
As of Version 8.1 the registry variable DB2_HASH_JOIN is set to ON by
default.
The hash-join variable should be used, but it needs to be tuned to get
the best performance.
Hash-join performance is best if you can avoid hash loops and overflow
to disk. To tune hash-join performance, estimate the maximum amount of
memory available for the sheapthres parameter , then tune the sortheap
parameter. Increase its value until you avoid as many hash loops and
disk overflows as possible, but do not reach the limit specified by the
sheapthres parameter.
For more information, see the "Join methods" topic in the Administration
Guide: Performance manual.
DB2NTNOCACHE registry variable is deprecated
Functionality previously achieved through DB2NTNOCACHE can be achieved
at the table space level by specifying the NO FILE SYSTEM CACHING clause
on the CREATE TABLESPACE or the ALTER TABLESPACE statement. Refer to SQL
Reference for details on usage. The DB2NTNOCACHE registry variable will
be removed in a future release.
Explain tables and organization of explain information
Explain tables might be common to more than one user. However, the
explain tables can be defined for one user, and aliases can be defined
for each additional user using the same name to point to the defined
tables. Alternatively, the explain tables can be defined under the
SYSTOOLS schema. The Explain facility will default to the SYSTOOLS
schema if no other explain tables or aliases are found under the user's
session ID for dynamic SQL, or the statement authorization ID for static
SQL. Each user sharing the common explain tables must have insert
permission on those tables. Read permission for the common explain
tables should also be limited, typically to users who analyze the
explain information.
Guidelines for capturing explain information
Explain data is captured if you request it when an SQL statement is
compiled. Consider how you expect to use the captured information when
you request explain data.
Capturing information in the explain tables
* Dynamic SQL statements:
Explain table information is captured in any of the following cases:
* The CURRENT EXPLAIN MODE special register is set to:
* YES: The SQL compiler captures explain data and executes the
SQL statement.
* EXPLAIN: The SQL compiler captures explain data but does not
execute the SQL statement.
* RECOMMEND INDEXES: The SQL compiler captures explain data and
the recommended indexes are placed in the ADVISE_INDEX table,
but the SQL statement is not executed.
* EVALUATE INDEXES: The SQL compiler uses indexes placed by the
user in the ADVISE_INDEX table for evaluation. In EVALUATE
INDEXES mode, all dynamic statements are explained as if these
virtual indexes were available. The SQL compiler then chooses
to use the virtual indexes if they improve the performance of
the statements. Otherwise, the indexes are ignored. To find out
if proposed indexes are useful, review the EXPLAIN results.
* REOPT: The SQL compiler captures Explain data for static or
dynamic SQL statements during statement reoptimization at
execution time, when actual values for the host variables,
special registers, or parameter markers are available.
* The EXPLAIN ALL option has been specified on the BIND or PREP
command. The SQL compiler captures explain data for dynamic SQL at
runtime, even if the CURRENT EXPLAIN MODE special register is set
to NO. The SQL statement also executes and returns the results of
the query.
Additional return codes from db2CfgGet API, collate_info parameter
The collating information parameter can only be displayed using the
db2CfgGet API. It cannot be displayed through the command line processor
or the Control Center.
Configuration Type Database
Parameter Type Informational
This parameter provides 260 bytes of database collating information. The
first 256 bytes specify the database collating sequence, where byte "n"
contains the sort weight of the code point whose underlying decimal
representation is "n" in the code page of the database.
The last 4 bytes contain internal information about the type of the
collating sequence. The last 4 bytes of collate_info is an integer. The
integer is sensitive to the endian order of the platform. The possible
values are:
* 0 - The sequence contains non-unique weights
* 1 - The sequence contains all unique weights
* 2 - The sequence is the identity sequence, for which strings are
compared byte for byte.
* 3 - The sequence is NLSCHAR, used for sorting characters in a
TIS620-1 (code page 874) Thai database.
* 4 - The sequence is IDENTITY_16BIT, which implements the "CESU-8
Compatibility Encoding Scheme for UTF-16: 8-Bit" algorithm as
specified in the Unicode Technical Report #26 available at the
Unicode Technical Consortium Web site at http://www.unicode.org.
* X'8001' - The sequence is UCA400_NO, which implements the UCA
(Unicode Collation Algorithm) based on the Unicode Standard version
4.00, with normalization implicitly set to ON.
* X'8002' - The sequence is UCA400_LTH, which implements the UCA
(Unicode Collation Algorithm) based on the Unicode Standard version
4.00, and sorts all Thai characters as per the Royal Thai Dictionary
order.
* X'8003' - The sequence is UCA400_LSK. which implements the UCA
(Unicode Collation Algorithm) based on the Unicode Standard version
4.00, and sorts all Slovakian characters properly.
If you use this internal type information, you need to consider byte
reversal when retrieving information for a database on a different
platform.
You can specify the collating sequence at database creation time.
Automatic setting of default prefetch size and update defaults
Starting with DB2 Universal Database (UDB) Version 8.2, you can use
AUTOMATIC prefetch size for a table space. DB2 UDB automatically
updates the prefetch size when the number of containers changes for the
table space.
The syntax of the DB2_PARALLEL_IO registry variable is expanded to
recognize containers with different I/O parallelism characteristics.
Through the expanded syntax, containers for different table spaces can
have different I/O parallelism characteristics. The I/O parallelism
characteristic of each table space is used when a prefetch size of
AUTOMATIC is specified for the table space. If the DB2_PARALLEL_IO
registry variable is enabled but the expanded syntax identifying
specific I/O parallelism characteristics for table spaces is not used, a
default level of parallelism is assumed. The default level is RAID 5
(6+1).
The prefetch size information used by the optimizer is refreshed only
when an ALTER TABLESPACE statement that changes the prefetch size of a
table space or changes the number of containers (using ADD/DROP/BEGIN
NEW STRIPE SET/ADD TO NEW STRIPE SET) is issued. If the number of
physical disks per container registry settings changes, an ALTER
TABLESPACE <table space name> PREFETCHSIZE AUTOMATIC statement should be
issued to refresh the optimizer information (unless an ALTER TABLESPACE
statement that refreshes the optimizer information is already issued).
If a table space is redirected or restored to use a different number of
containers, refresh the optimizer information by issuing an ALTER
TABLESPACE <table space name> PREFETCHSIZE AUTOMATIC statement. If there
are multiple stripe sets within a table space, the maximum number of
containers among the stripe sets is used to calculated the prefetch
size. If the calculated prefetch size exceeds the maximum size (32 767
pages), the largest multiple of the number of containers that is smaller
than the maximum is used as the prefetch size.
In a DB2 UDB Enterprise Server Edition environment, if a table space
uses an AUTOMATIC prefetch size, the prefetch size might be different on
different database partitions. This situation can exist because
different database partitions can have different numbers of containers
used for calculating the prefetch size. To generate the query access
plan, the optimizer uses the prefetch size from the first partition in a
database partition group.
Administration: Planning
Catalog table space design
When creating a database, three table spaces are defined, including the
SYSCATSPACE table space for the system catalog tables. The page size
that becomes the default for all table spaces is set when the database
is created. If a page size greater than 4096 or 4 K is chosen, the page
size for the catalog tables is restricted to a row size that it would
have if the catalog table space had a page size of 4 K. The default
database page size is stored as an informational database configuration
parameter called pagesize.
Supported territory codes and code pages
In Appendix B, "National language support (NLS)" in Administration
Guide: Planning, the topic called "Supported territory codes and code
pages" has tables for each territory. Two tables require updates:
China (PRC), territory identifier: CN
The code page for the Linux GBK row in the "China (PRC), territory
identifier: CN" table should be changed from 1383 to 1386.
That is, the row should now read:
1386 D-4 GBK 86 zh_CN.GBK Linux
XA function supported by DB2 Universal Database
DB2 Universal Database (UDB) supports the XA91 specification defined in
X/Open CAE Specification Distributed Transaction Processing: The XA
Specification, with the following exceptions:
* Asynchronous services
The XA specification allows the interface to use asynchronous
services, so that the result of a request can be checked at a later
time. The database manager requires that the requests be invoked in
synchronous mode.
* Registration
The XA interface allows two ways to register an RM: static
registration and dynamic registration. DB2 UDB supports both dynamic
and static registration. DB2 UDB provides two switches:
Linux-based systems
The switch for DB2 Universal Database (UDB) can be obtained through
either of the following two ways:
* Through one additional level of indirection. In a C program, this can
be accomplished by defining the macro:
#define db2xa_switch (*db2xa_switch)
#define db2xa_switch_static (*db2xa_switch)
prior to using db2xa_switch or db2xa_switch_static.
* By calling db2xacic or db2xacicst
DB2 UDB provides these APIs, which return the address of the
db2xa_switch or the db2xa_switch_static structure. This function is
prototyped as:
struct xa_switch_t * SQL_API_FN db2xacic( )
struct xa_switch_t * SQL_API_FN db2xacicst( )
With either method, you must link your application with libdb2.
Windows NT
The pointer to the xa_switch structure, db2xa_switch, or
db2xa_switch_static is exported as DLL data. This implies that a Windows
NT application using this structure must reference it in one of three
ways:
* Through one additional level of indirection. In a C program, this can
be accomplished by defining the macro:
#define db2xa_switch (*db2xa_switch)
#define db2xa_switch_static (*db2xa_switch)
prior to using db2xa_switch or db2xa_switch_static.
* If using the Microsoft Visual C++ compiler, db2xa_switch or
db2xa_switch_static can be defined as:
extern __declspec(dllimport) struct xa_switch_t db2xa_switch
extern __declspec(dllimport) struct xa_switch_t db2xa_switch_static
* By calling db2xacic or db2xacicst
DB2 UDB provides this API, which returns the address of the
db2xa_switch or db2xa_switch_static structure. This function is
prototyped as:
struct xa_switch_t * SQL_API_FN db2xacic( )
struct xa_switch_t * SQL_API_FN db2xacicst( )
With any of these methods, you must link your application with
db2api.lib.
Example C Code
The following code illustrates the different ways in which the
db2xa_switch or db2xa_switch_static can be accessed via a C program on
any DB2 UDB platform. Be sure to link your application with the
appropriate library.
#include <stdio.h>
#include <xa.h>
struct xa_switch_t * SQL_API_FN db2xacic( );
#ifdef DECLSPEC_DEFN
extern __declspec(dllimport) struct xa_switch_t db2xa_switch;
#else
#define db2xa_switch (*db2xa_switch)
extern struct xa_switch_t db2xa_switch;
#endif
main( )
{
struct xa_switch_t *foo;
printf ( "%s \n", db2xa_switch.name );
foo = db2xacic();
printf ( "%s \n", foo->name );
return ;
}
Updated TPM and tp_mon_name values for xa_open string formats
The Internal settings column in the following table has been updated to
reflect settings for the thread of control (TOC).
TOC is the entity to which all DB2 UDB XA connections are bound:
* When set to a value of T, all DB2 UDB XA connections formed under a
particular OS thread are unique to that thread. Multiple threads
cannot share DB2 UDB connections. Each OS thread has to form its own
set of DB2 UDB XA connections.
* When set to a value of P, all DB2 UDB XA connections are unique to
the OS Process and all XA connections can be shared between OS
threads.
Table 12. Valid values for TPM and tp_mon_name
+-----------------+----------------+----------------------------------+
| TPM value | TP monitor | Internal settings |
| | product | |
+-----------------+----------------+----------------------------------+
| CICS(R) | IBM TxSeries | AXLIB=libEncServer (for Windows) |
| | CICS | =/usr/lpp/encina/lib/libEncServ |
| | | er |
| | | (for Linux systems) |
| | | HOLD_CURSOR=T |
| | | CHAIN_END=T |
| | | SUSPEND_CURSOR=F |
| | | TOC=T |
+-----------------+----------------+----------------------------------+
| ENCINA | IBM TxSeries | AXLIB=libEncServer (for Windows) |
| | Encina(R) | =/usr/lpp/encina/lib/libEncServ |
| | monitor | er |
| | | (for Linux systems) |
| | | HOLD_CURSOR=F |
| | | CHAIN_END=T |
| | | SUSPEND_CURSOR=F |
| | | TOC=T |
+-----------------+----------------+----------------------------------+
| MQ | IBM | AXLIB=mqmax |
| | MQSeries(R) | (for Windows) |
| | | =/usr/mqm/lib/libmqmax_r.a |
| | | (for Linux threaded |
| | | applications) |
| | | =/opt/mqm/lib/libmqmax.so |
| | | (for Linux non-threaded |
| | | applications) |
| | | HOLD_CURSOR=F |
| | | CHAIN_END=F |
| | | SUSPEND_CURSOR=F |
| | | TOC=P |
+-----------------+----------------+----------------------------------+
| CB | IBM Component | AXLIB=somtrx1i (for Windows) |
| | Broker | =libsomtrx1 |
| | | (for Linux systems) |
| | | HOLD_CURSOR=F |
| | | CHAIN_END=T |
| | | SUSPEND_CURSOR=F |
| | | TOC=T |
+-----------------+----------------+----------------------------------+
| SF | IBM San | AXLIB=ibmsfDB2 |
| | Francisco | HOLD_CURSOR=F |
| | | CHAIN_END=T |
| | | SUSPEND_CURSOR=F |
| | | TOC=T |
+-----------------+----------------+----------------------------------+
| TUXEDO | BEA Tuxedo | AXLIB=libtux |
| | | HOLD_CURSOR=F |
| | | CHAIN_END=F |
| | | SUSPEND_CURSOR=F |
| | | TOC=T |
+-----------------+----------------+----------------------------------+
| MTS | Microsoft | It is not necessary to configure |
| | Transaction | DB2 UDB for MTS. MTS is |
| | Server | automatically detected by DB2 |
| | | UDB's ODBC driver. |
+-----------------+----------------+----------------------------------+
| JTA | Java | It is not necessary to configure |
| | Transaction | DB2 UDB for Enterprise Java |
| | API | Servers (EJS) such as IBM |
| | | WebSphere. DB2 UDB's JDBC driver |
| | | automatically detects this |
| | | environment. Therefore this TPM |
| | | value is ignored. |
+-----------------+----------------+----------------------------------+
Activating conversion tables for code pages 923 and 924
The following table contains a list of all the code page conversion
table files that are associated with code pages 923 and 924. Each file
is of the form XXXXYYYY.cnv or ibmZZZZZ.ucs, where XXXXX is the source
code page number and YYYY is the target code page number. The file
ibmZZZZZ.ucs supports conversion between code page ZZZZZ and Unicode.
Procedure
To activate a particular code page conversion table, rename or copy that
conversion table file to its new name as shown in the second column.
For example, to support the euro symbol when connecting a 8859-1/15
(Latin 1/9) client to a Windows 1252 database, you need to rename or
copy the following code page conversion table files in the sqllib/conv/
directory:
* 09231252.cnv to 08191252.cnv
* 12520923.cnv to 12520819.cnv
* ibm00923.ucs to ibm00819.ucs
Table 13. Conversion table files for code pages 923 and 924
+----------------------------------+----------------------------------+
| 923 and 924 conversion table | New name |
| files in the sqllib/conv/ | |
| directory | |
+----------------------------------+----------------------------------+
| 04370923.cnv | 04370819.cnv |
+----------------------------------+----------------------------------+
| 08500923.cnv | 08500819.cnv |
+----------------------------------+----------------------------------+
| 08600923.cnv | 08600819.cnv |
+----------------------------------+----------------------------------+
| 08630923.cnv | 08630819.cnv |
+----------------------------------+----------------------------------+
| 09230437.cnv | 08190437.cnv |
+----------------------------------+----------------------------------+
| 09230850.cnv | 08190850.cnv |
+----------------------------------+----------------------------------+
| 09230860.cnv | 08190860.cnv |
+----------------------------------+----------------------------------+
| 09231043.cnv | 08191043.cnv |
+----------------------------------+----------------------------------+
| 09231051.cnv | 08191051.cnv |
+----------------------------------+----------------------------------+
| 09231114.cnv | 08191114.cnv |
+----------------------------------+----------------------------------+
| 09231252.cnv | 08191252.cnv |
+----------------------------------+----------------------------------+
| 09231275.cnv | 08191275.cnv |
+----------------------------------+----------------------------------+
| 09241252.cnv | 10471252.cnv |
+----------------------------------+----------------------------------+
| 10430923.cnv | 10430819.cnv |
+----------------------------------+----------------------------------+
| 10510923.cnv | 10510819.cnv |
+----------------------------------+----------------------------------+
| 11140923.cnv | 11140819.cnv |
+----------------------------------+----------------------------------+
| 12520923.cnv | 12520819.cnv |
+----------------------------------+----------------------------------+
| 12750923.cnv | 12750819.cnv |
+----------------------------------+----------------------------------+
| ibm00923.ucs | ibm00819.ucs |
+----------------------------------+----------------------------------+
Conversion table files for euro-enabled code pages
The following tables list the conversion tables that have been enhanced
to support the euro currency symbol. If you want to disable euro symbol
support, download the conversion table file indicated in the column
titled "Conversion table files".
Arabic
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 864, 17248 | 1046, 9238 | 08641046.cnv, |
| | | 10460864.cnv, |
| | | IBM00864.ucs |
+-------------------+----------------------+--------------------------+
| 864, 17248 | 1256, 5352 | 08641256.cnv, |
| | | 12560864.cnv, |
| | | IBM00864.ucs |
+-------------------+----------------------+--------------------------+
| 864, 17248 | 1200, 1208, 13488, | IBM00864.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 1046, 9238 | 864, 17248 | 10460864.cnv, |
| | | 08641046.cnv, |
| | | IBM01046.ucs |
+-------------------+----------------------+--------------------------+
| 1046, 9238 | 1089 | 10461089.cnv, |
| | | 10891046.cnv, |
| | | IBM01046.ucs |
+-------------------+----------------------+--------------------------+
| 1046, 9238 | 1256, 5352 | 10461256.cnv, |
| | | 12561046.cnv, |
| | | IBM01046.ucs |
+-------------------+----------------------+--------------------------+
| 1046, 9238 | 1200, 1208, 13488, | IBM01046.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 1089 | 1046, 9238 | 10891046.cnv, |
| | | 10461089.cnv |
+-------------------+----------------------+--------------------------+
| 1256, 5352 | 864, 17248 | 12560864.cnv, |
| | | 08641256.cnv, |
| | | IBM01256.ucs |
+-------------------+----------------------+--------------------------+
| 1256, 5352 | 1046, 9238 | 12561046.cnv, |
| | | 10461256.cnv, |
| | | IBM01256.ucs |
+-------------------+----------------------+--------------------------+
| 1256, 5352 | 1200, 1208, 13488, | IBM01256.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Baltic
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 921, 901 | 1257 | 09211257.cnv, |
| | | 12570921.cnv, |
| | | IBM00921.ucs |
+-------------------+----------------------+--------------------------+
| 921, 901 | 1200, 1208, 13488, | IBM00921.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 1257, 5353 | 921, 901 | 12570921.cnv, |
| | | 09211257.cnv, |
| | | IBM01257.ucs |
+-------------------+----------------------+--------------------------+
| 1257, 5353 | 922, 902 | 12570922.cnv, |
| | | 09221257.cnv, |
| | | IBM01257.ucs |
+-------------------+----------------------+--------------------------+
| 1257, 5353 | 1200, 1208, 13488, | IBM01257.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Belarus
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 1131, 849 | 1251, 5347 | 11311251.cnv, |
| | | 12511131.cnv |
+-------------------+----------------------+--------------------------+
| 1131, 849 | 1283 | 11311283.cnv |
+-------------------+----------------------+--------------------------+
Cyrillic
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 855, 872 | 866, 808 | 08550866.cnv, |
| | | 08660855.cnv |
+-------------------+----------------------+--------------------------+
| 855, 872 | 1251, 5347 | 08551251.cnv, |
| | | 12510855.cnv |
+-------------------+----------------------+--------------------------+
| 866, 808 | 855, 872 | 08660855.cnv, |
| | | 08550866.cnv |
+-------------------+----------------------+--------------------------+
| 866, 808 | 1251, 5347 | 08661251.cnv, |
| | | 12510866.cnv |
+-------------------+----------------------+--------------------------+
| 1251, 5347 | 855, 872 | 12510855.cnv, |
| | | 08551251.cnv, |
| | | IBM01251.ucs |
+-------------------+----------------------+--------------------------+
| 1251, 5347 | 866, 808 | 12510866.cnv, |
| | | 08661251.cnv, |
| | | IBM01251.ucs |
+-------------------+----------------------+--------------------------+
| 1251, 5347 | 1124 | 12511124.cnv, |
| | | 11241251.cnv, |
| | | IBM01251.ucs |
+-------------------+----------------------+--------------------------+
| 1251, 5347 | 1125, 848 | 12511125.cnv, |
| | | 11251251.cnv, |
| | | IBM01251.ucs |
+-------------------+----------------------+--------------------------+
| 1251, 5347 | 1131, 849 | 12511131.cnv, |
| | | 11311251.cnv, |
| | | IBM01251.ucs |
+-------------------+----------------------+--------------------------+
| 1251, 5347 | 1200, 1208, 13488, | IBM01251.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Estonia
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 922, 902 | 1257 | 09221257.cnv, |
| | | 12570922.cnv, |
| | | IBM00922.ucs |
+-------------------+----------------------+--------------------------+
| 922, 902 | 1200, 1208, 13488, | IBM00922.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Greek
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 813, 4909 | 869, 9061 | 08130869.cnv, |
| | | 08690813.cnv, |
| | | IBM00813.ucs |
+-------------------+----------------------+--------------------------+
| 813, 4909 | 1253, 5349 | 08131253.cnv, |
| | | 12530813.cnv, |
| | | IBM00813.ucs |
+-------------------+----------------------+--------------------------+
| 813, 4909 | 1200, 1208, 13488, | IBM00813.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 869, 9061 | 813, 4909 | 08690813.cnv, |
| | | 08130869.cnv |
+-------------------+----------------------+--------------------------+
| 869, 9061 | 1253, 5349 | 08691253.cnv, |
| | | 12530869.cnv |
+-------------------+----------------------+--------------------------+
| 1253, 5349 | 813, 4909 | 12530813.cnv, |
| | | 08131253.cnv, |
| | | IBM01253.ucs |
+-------------------+----------------------+--------------------------+
| 1253, 5349 | 869, 9061 | 12530869.cnv, |
| | | 08691253.cnv, |
| | | IBM01253.ucs |
+-------------------+----------------------+--------------------------+
| 1253, 5349 | 1200, 1208, 13488, | IBM01253.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Hebrew
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 856, 9048 | 862, 867 | 08560862.cnv, |
| | | 08620856.cnv, |
| | | IBM0856.ucs |
+-------------------+----------------------+--------------------------+
| 856, 9048 | 916 | 08560916.cnv, |
| | | 09160856.cnv, |
| | | IBM0856.ucs |
+-------------------+----------------------+--------------------------+
| 856, 9048 | 1255, 5351 | 08561255.cnv, |
| | | 12550856.cnv, |
| | | IBM0856.ucs |
+-------------------+----------------------+--------------------------+
| 856, 9048 | 1200, 1208, 13488, | IBM0856.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 862, 867 | 856, 9048 | 08620856.cnv, |
| | | 08560862.cnv, |
| | | IBM00862.ucs |
+-------------------+----------------------+--------------------------+
| 862, 867 | 916 | 08620916.cnv, |
| | | 09160862.cnv, |
| | | IBM00862.ucs |
+-------------------+----------------------+--------------------------+
| 862, 867 | 1255, 5351 | 08621255.cnv, |
| | | 12550862.cnv, |
| | | IBM00862.ucs |
+-------------------+----------------------+--------------------------+
| 862, 867 | 1200, 1208, 13488, | IBM00862.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 916 | 856, 9048 | 09160856.cnv, |
| | | 08560916.cnv |
+-------------------+----------------------+--------------------------+
| 916 | 862, 867 | 09160862.cnv, |
| | | 08620916.cnv |
+-------------------+----------------------+--------------------------+
| 1255, 5351 | 856, 9048 | 12550856.cnv, |
| | | 08561255.cnv, |
| | | IBM01255.ucs |
+-------------------+----------------------+--------------------------+
| 1255, 5351 | 862, 867 | 12550862.cnv, |
| | | 08621255.cnv, |
| | | IBM01255.ucs |
+-------------------+----------------------+--------------------------+
| 1255, 5351 | 1200, 1208, 13488, | IBM01255.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Latin-1
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 437 | 850, 858 | 04370850.cnv, |
| | | 08500437.cnv |
+-------------------+----------------------+--------------------------+
| 850, 858 | 437 | 08500437.cnv, |
| | | 04370850.cnv |
+-------------------+----------------------+--------------------------+
| 850, 858 | 860 | 08500860.cnv, |
| | | 08600850.cnv |
+-------------------+----------------------+--------------------------+
| 850, 858 | 1114, 5210 | 08501114.cnv, |
| | | 11140850.cnv |
+-------------------+----------------------+--------------------------+
| 850, 858 | 1275 | 08501275.cnv, |
| | | 12750850.cnv |
+-------------------+----------------------+--------------------------+
| 860 | 850, 858 | 08600850.cnv, |
| | | 08500860.cnv |
+-------------------+----------------------+--------------------------+
| 1275 | 850, 858 | 12750850.cnv, |
| | | 08501275.cnv |
+-------------------+----------------------+--------------------------+
Latin-2
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 852, 9044 | 1250, 5346 | 08521250.cnv, |
| | | 12500852.cnv |
+-------------------+----------------------+--------------------------+
| 1250, 5346 | 852, 9044 | 12500852.cnv, |
| | | 08521250.cnv, |
| | | IBM01250.ucs |
+-------------------+----------------------+--------------------------+
| 1250, 5346 | 1200, 1208, 13488, | IBM01250.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Simplified Chinese
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 837, 935, 1388 | 1200, 1208, 13488, | 1388ucs2.cnv |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 1386 | 1200, 1208, 13488, | 1386ucs2.cnv, |
| | 17584 | ucs21386.cnv |
+-------------------+----------------------+--------------------------+
Traditional Chinese
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 937, 835, 1371 | 950, 1370 | 09370950.cnv, |
| | | 0937ucs2.cnv |
+-------------------+----------------------+--------------------------+
| 937, 835, 1371 | 1200, 1208, 13488, | 0937ucs2.cnv |
| | 17584 | |
+-------------------+----------------------+--------------------------+
| 1114, 5210 | 850, 858 | 11140850.cnv, |
| | | 08501114.cnv |
+-------------------+----------------------+--------------------------+
Thailand
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 874, 1161 | 1200, 1208, 13488, | IBM00874.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Turkish
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 857, 9049 | 1254, 5350 | 08571254.cnv, |
| | | 12540857.cnv |
+-------------------+----------------------+--------------------------+
| 1254, 5350 | 857, 9049 | 12540857.cnv, |
| | | 08571254.cnv, |
| | | IBM01254.ucs |
+-------------------+----------------------+--------------------------+
| 1254, 5350 | 1200, 1208, 13488, | IBM01254.ucs |
| | 17584 | |
+-------------------+----------------------+--------------------------+
Ukraine
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 1124 | 1251, 5347 | 11241251.cnv, |
| | | 12511124.cnv |
+-------------------+----------------------+--------------------------+
| 1125, 848 | 1251, 5347 | 11251251.cnv, |
| | | 12511125.cnv |
+-------------------+----------------------+--------------------------+
Unicode
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 813, 4909 | IBM00813.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 862, 867 | IBM00862.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 864, 17248 | IBM00864.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 874, 1161 | IBM00874.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 921, 901 | IBM00921.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 922, 902 | IBM00922.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1046, 9238 | IBM01046.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1250, 5346 | IBM01250.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1251, 5347 | IBM01251.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1253, 5349 | IBM01253.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1254, 5350 | IBM01254.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1255, 5351 | IBM01255.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1256, 5352 | IBM01256.ucs |
| 13488, 17584 | | |
+-------------------+----------------------+--------------------------+
| 1200, 1208, | 1386 | ucs21386.cnv, |
| 13488, 17584 | | 1386ucs2.cnv |
+-------------------+----------------------+--------------------------+
Vietnamese
+-------------------+----------------------+--------------------------+
| Database server | Database client | Conversion table files |
| CCSIDs/CPGIDs | CCSIDs/CPGIDs | |
+-------------------+----------------------+--------------------------+
| 1258, 5354 | 1129, 1163 | 12581129.cnv |
+-------------------+----------------------+--------------------------+
API Reference
SYNCPOINT option support
The SYNCPOINT option for the sqlesetc, sqleqryc, and sqlaprep APIs is
ignored as of Version 8; it is available only for backward
compatibility.
New field for SQLEDBDESC structure
In the sqlecrea API, a new field has been added to support Direct I/O.
Field name
Unsigned char sqlfscaching
Description
File system caching
Values
0 File system caching is ON for the current table space
1 File system caching is OFF for the current table
space
other File system caching is ON for the current table space
Correction to new field in the SQLB-TBSPQRY-DATA structure
A new field, unsigned char fsCaching, has been added in the
SQLB-TBSPQRY-DATA structure. This new field supports Direct I/O.
Although the size of the reserved bit is documented as 32-bit, the
correct size is 31-bit.
Application development: Building and Running Applications
Linux supported development software
For installation details, refer to "Linux 2.6 kernel installation
images" in the DB2 UDB Express Release Notes (New in this release
section).
The following tables describe the DB2 Linux architecture support as of
the release of FixPak 9. Check the preceding validate Web site for
updates to this support:
http://www.ibm.com/db2/linux/validate
Java IBM Developer Kit and Runtime Environment for Linux x86, Java 2
Technology Edition, Version 1.3.1 Service Release 4, 32-bit
version, and Version 1.4.1 Service Release 1, 32-bit version.
Note: DB2 UDB installs the latest supported version of the
developer kit if it is not already installed, unless the
DB2 UDB installation is an update of a previous DB2 UDB
Version 8 installation. If a previous DB2 UDB Version 8
installation is being updated, the supported developer
kit must be manually installed from the CD-ROM.
This keyword controls the amount of information the CLI driver requests
on a prepare or describe request. By default, when the server receives
a describe request, it returns the information contained in level 2 of
Table 19 for the result set columns. An application, however, might not
need all of this information or might need additional information.
Setting the DescribeOutputLevel keyword to a level that suits the needs
of the client application might improve performance because the describe
data transferred between the client and server is limited to the minimum
amount that the application requires. If the DescribeOutputLevel
setting is set too low, it might impact the functionality of the
application (depending on the application's requirements). The CLI
functions to retrieve the describe information might not fail in this
case, but the information returned might be incomplete.
Supported settings for DescribeOutputLevel are:
* 0 - no describe information is returned to the client application
* 1 - describe information categorized in level 1 (see Table 19) is
returned to the client application
* 2 - (default) describe information categorized in level 2 (see Table
19) is returned to the client application
* 3 - describe information categorized in level 3 (see Table 19) is
returned to the client application
The following table lists the fields that form the describe information
that the server returns when it receives a prepare or describe request.
These fields are grouped into levels, and the DescribeOutputLevel
CLI/ODBC configuration keyword controls which levels of describe
information the CLI driver requests.
Note: Not all levels of describe information are supported by all DB2
servers. All levels of describe information are supported on the
following DB2 servers: DB2 Universal Database (UDB) for Linux, and
Windows Version 8 and later, DB2 UDB for z/OS Version 8 and later,
and DB2 UDB for iSeries Version 5 Release 3 and later. All other
DB2 servers support only the 2 or 0 setting for
DescribeOutputLevel.
Table 19. Levels of describe information
+-----------------------+----------------------+----------------------+
| Level 1 | Level 2 | Level 3 |
+-----------------------+----------------------+----------------------+
| SQL_DESC_COUNT | all fields of level | all fields of levels |
| SQL_COLUMN_COUNT | 1 and: | 1 |
| SQL_DESC_TYPE | SQL_DESC_NAME | and 2 and: |
| SQL_DESC_CONCISE_TYPE | SQL_DESC_LABEL | SQL_DESC_BASE_COLUMN |
| SQL_COLUMN_LENGTH | SQL_COLUMN_NAME | _NAME |
| SQL_DESC_OCTET_LENGTH | SQL_DESC_UNNAMED | SQL_DESC_UPDATABLE |
| SQL_DESC_LENGTH | SQL_DESC_TYPE_NAME | SQL_DESC_AUTO_UNIQUE |
| SQL_DESC_PRECISION | SQL_DESC_DISTINCT_TY | _VALUE |
| SQL_COLUMN_PRECISION | PE | SQL_DESC_SCHEMA_NAME |
| SQL_DESC_SCALE | SQL_DESC_REFERENCE_T | SQL_DESC_CATALOG_NAM |
| SQL_COLUMN_SCALE | YPE | E |
| SQL_DESC_DISPLAY_SIZE | SQL_DESC_STRUCTURED_ | SQL_DESC_TABLE_NAME |
| SQL_DESC_NULLABLE | TYPE | SQL_DESC_BASE_TABLE_ |
| SQL_COLUMN_NULLABLE | SQL_DESC_USER_TYPE | NAME |
| SQL_DESC_UNSIGNED | SQL_DESC_LOCAL_TYPE_ | |
| SQL_DESC_SEARCHABLE | NAME | |
| SQL_DESC_LITERAL_SUFF | SQL_DESC_USER_DEFINE | |
| IX | D_ | |
| SQL_DESC_LITERAL_PREF | TYPE_CODE | |
| IX | | |
| SQL_DESC_CASE_SENSITI | | |
| VE | | |
| SQL_DESC_FIXED_PREC_S | | |
| CALE | | |
+-----------------------+----------------------+----------------------+
Application development: Programming Client Applications
OleDbReportIsLongForLongTypes CLI/ODBC configuration keyword
Keyword description:
Makes OLE DB flag LONG data types with DBCOLUMNFLAGS_ISLONG.
db2cli.ini keyword syntax:
OleDbReportIsLongForLongTypes = 0 | 1
Equivalent statement attribute:
SQL_ATTR_REPORT_ISLONG_FOR_LONGTYPES_OLEDB
Default setting:
LONG types (LONG VARCHAR, LONG VARCHAR FOR BIT DATA, LONG
VARGRAPHIC and LONG VARGRAPHIC FOR BIT DATA) do not have
the DBCOLUMNFLAGS_ISLONG flag set, which may cause the
columns to be used in the WHERE clause.
Usage notes:
OLE DB's client cursor engine and OLE DB .NET Data Provider's
CommandBuilder generate update and delete statements based on column
information provided by the IBM DB2 OLE DB Provider. If the generated
statement contains a LONG type in the WHERE clause, the statement will
fail because LONG types cannot be used in a search with an equality
operator. Setting the keyword OleDbReportIsLongForLongTypes to 1 will
make the IBM DB2 OLE DB Provider report LONG types (LONG VARCHAR, LONG
VARCHAR FOR BIT DATA, LONG VARGRAPHIC and LONG VARGRAPHIC FOR BIT DATA)
with the DBCOLUMNFLAGS_ISLONG flag set. This will prevent the long
columns from being used in the WHERE clause.
OleDbSQLColumnsSortByOrdinal CLI/ODBC configuration keyword
Keyword description:
Makes OLE DB's IDBSchemaRowset::GetRowset(DBSCHEMA_COLUMNS)
return a row set sorted by the ORDINAL_POSITION column.
db2cli.ini keyword syntax:
OleDbSQLColumnsSortByOrdinal = 0 | 1
Equivalent statement attribute:
SQL_ATTR_SQLCOLUMNS_SORT_BY_ORDINAL_OLEDB
Default setting:
IDBSchemaRowset::GetRowset(DBSCHEMA_COLUMNS) returns the row
set sorted by the columns TABLE_CATALOG, TABLE_SCHEMA,
TABLE_NAME, COLUMN_NAME.
Usage notes:
#define DB2PROP_REPORTISLONGFORLONGTYPES 4
Property group: DB2 Data Source
Property set: DB2PROPSET_DATASOURCE
Type: VT_BOOL
Typical R/W: R/W
Description: Report IsLong for Long Types
OLE DB's client cursor engine and OLE DB .NET Data Provider's
CommandBuilder generate update and delete statements based on column
information provided by the IBM DB2 OLE DB Provider. If the generated
statement contains a LONG type in the WHERE clause, the statement will
fail because LONG types cannot be used in a search with an equality
operator.
Table 20. DB2PROP_REPORTISLONGFORLONGTYPES values
+----------------+----------------------------------------------------+
| Values | Meaning |
+----------------+----------------------------------------------------+
| VARIANT_TRUE | Will make the IBM DB2 OLE DB Provider report LONG |
| | types (LONG VARCHAR, LONG VARCHAR FOR BIT DATA, |
| | LONG VARGRAPHIC, and LONG VARGRAPHIC FOR BIT DATA) |
| | with the DBCOLUMNFLAGS_ISLONG flag set. This will |
| | prevent the long columns from being used in the |
| | WHERE clause. |
+----------------+----------------------------------------------------+
| VARIANT_FALSE | DBCOLUMNFLAGS_ISLONG is not set for LONG VARCHAR, |
| | LONG VARCHAR FOR BIT DATA, LONG VARGRAPHIC and |
| | LONG VARGRAPHIC FOR BIT DATA. This is the default. |
+----------------+----------------------------------------------------+
DB2PROP_RETURNCHARASWCHAR
#define DB2PROP_RETURNCHARASWCHAR 2
Property group: DB2 Data Source
Property set: DB2PROPSET_DATASOURCE
Type: VT_BOOL
Typical R/W: R/W
Description: Return Char as WChar
#define DB2PROP_SORTBYORDINAL 3
Property group: DB2 Data Source
Property set: DB2PROPSET_DATASOURCE
Type: VT_BOOL
Typical R/W: R/W
Description: Sort By Ordinal
The Microsoft OLE DB specification requires that
IDBSchemaRowset::GetRowset(DBSCHEMA_COLUMNS) returns the row set sorted
by the columns TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME. The
IBM DB2 OLE DB Provider conforms to the specification. However,
applications that use the Microsoft ODBC Bridge provider (MSDASQL) have
been typically coded to get the row set sorted by ORDINAL_POSITION.
Table 22. DB2PROP_SORTBYORDINAL values
+----------------+----------------------------------------------------+
| Values | Meaning |
+----------------+----------------------------------------------------+
| VARIANT_TRUE | Will make the provider return a row set sorted by |
| | ORDINAL_POSITION. |
+----------------+----------------------------------------------------+
| VARIANT_FALSE | Will make the provider return a row set sorted by |
| | TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, |
| | COLUMN_NAME. This is the default. |
+----------------+----------------------------------------------------+
Incorrect URL syntax in the DB2Binder syntax diagram
In the topic "Installing the DB2 Universal JDBC Driver", the DB2Binder
syntax diagram incorrectly defines the URL syntax for the DB2 Universal
JDBC Driver. The correct representation of the URL syntax for DB2Binder
is shown in the following diagram:
DB2Binder syntax
+----------------------------------------------------------------------+
| >>-java--com.ibm.db2.jcc.DB2Binder------------------------------> |
| |
| >---url jdbc:db2://server-+---------+-/database-----------------> |
| '-:--port-' |
| |
| >---user user-ID---password password--+---------------+---------> |
| '--size integer-' |
| |
| >--+-----------------------------+------------------------------> |
| '--collection collection-name-' |
| |
| >--+-------------------------------+--+-------+---------------->< |
| | .-,------------. | '--help-' |
| | V | | |
| '--tracelevel ---trace-option-+-' |
+----------------------------------------------------------------------+
Rerouting DB2 Universal JDBC driver clients
The automatic client reroute feature in DB2 Universal Database (UDB) for
Linux and Windows allows client applications to recover from a loss of
communication with the server so that they can continue to work with
minimal interruption.
Whenever a server locks up, each client that is connected to that server
receives a communication error, which terminates the connection and
results in an application error. When availability is important, you
should have a redundant setup or failover support. (Failover is the
ability of a server to take over operations when another server fails.)
In either case, the DB2 Universal JDBC driver client attempts to
reestablish the connection to a new server, or to the original server,
which might be running on a failover node. When the connection is
reestablished, the application receives an SQLException that informs it
of the transaction failure, but the application can continue with the
next transaction.
Restrictions
db2.jcc.sqljUncustomizedWarningOrException
Specifies the action that the DB2 Universal JDBC driver takes
when an uncustomized SQLJ application runs.
db2.jcc.sqljUncustomizedWarningOrException can have the
following values:
0 The DB2 Universal JDBC driver does not generate a
Warning or Exception when an uncustomized SQLJ
application runs. This is the default.
1 The DB2 Universal JDBC driver generates a Warning when
an uncustomized SQLJ application runs.
2 The DB2 Universal JDBC driver generates an Exception
when an uncustomized SQLJ application runs.
db2secFreeToken function removed
The db2secFreeToken function (Free memory held by token) is no longer
part of the db2secGssapiServerAuthFunctions_1 user authentication
plug-in API.
Deploy custom security plug-ins carefully
The integrity of your DB2 Universal Database (UDB) installation can be
compromised if the deployment of security plug-ins are not adequately
coded, reviewed, and tested. DB2 UDB takes precautions against many
common types of failures, but it cannot guarantee complete integrity
when user-written security plug-ins are deployed.
Security plug-ins
If you are using your own customized security plug-in, you can use a
user ID of up to 255 characters on a connect statement issued through
the CLP or a dynamic SQL statement.
Security plug-in APIs
For the db2secGetGroupsForUser, db2secValidatePassword, and
db2secGetAuthIDs APIs, the input parameter, dbname, can be null and its
corresponding length input parameter, dbnamelen, will be set to 0.
Security plug-in naming conventions (Linux)
.so is now accepted as a file name extension for user-written security
plug-in libraries on all Linux platforms.
On all other Linux platforms, .so is the only supported file name
extension for security plug-in libraries.
GSS-API security plug-ins do not support multiple-flow authentication
GSS-API authentication is limited to flowing one token from the client
to the server and one token from the server to the client. These tokens
are obtained from gss_init_sec_context() on the client and from
gss_accept_sec_context() on the server. GSS-API plug-ins attempting
additional flows will generate a security plug-in unexpected error,
causing the connection to fail.
GSS-API security plug-ins do not support message encryption and signing
Message encryption and signing is not available in GSS-API security
plug-ins.
Implicit ending of transactions in stand-alone applications
All application terminations (normal and abnormal) implicitly roll back
outstanding units of work, regardless of operating system.
Distributed transaction support
In the What's new documentation for DB2 Universal Database (UDB) Version
8.2, the Distributed transaction support information for the DB2
Universal JDBC driver improvements section has incorrect information.
The last sentence of this section is incorrect. The correct information
is:
As of Version 8.2, DB2 UDB provides support for distributed transaction
processing that conforms to the XA specification. This support
implements the Java 2 Platform Enterprise Edition (J2EE) Java
Transaction Service (JTS) and Java Transaction API (JTA) specifications.
Application development: Programming Server Applications
Multiple result set common language runtime (CLR) procedures
The maximum number of result sets that can be returned by a common
language runtime (CLR) procedure is limited. The limit is determined by
the maximum number of DB2DataReader objects that the DB2 .NET data
provider can simultaneously support having open within a connection.
Concurrent active data reader support enables multiple DB2DataReader
objects to be opened within a connection. Therefore multiple result sets
can be returned from a CLR procedure.
Common language runtime (CLR) routine execution control modes (EXECUTION
CONTROL clause)
As a database administrator or application developer, you might want to
protect the assemblies associated with your DB2 Universal Database (UDB)
external routines from unwelcome tampering by restricting the actions of
routines at runtime. DB2 .NET CLR routines support the specification of
an execution control mode that identifies what types of actions a
routine is allowed to perform at runtime. At runtime, DB2 UDB can
detect if the routine attempts to perform actions beyond the scope of
its specified execution control mode, which can be helpful when
determining whether an assembly has been compromised.
To set the execution control mode of a CLR routine, specify the optional
EXECUTION CONTROL clause in the CREATE statement for the routine. Valid
modes are:
* SAFE
* FILEREAD
* FILEWRITE
* NETWORK
* UNSAFE
To modify the execution control mode in an existing CLR routine, execute
the ALTER PROCEDURE or ALTER FUNCTION statement.
If the EXECUTION CONTROL clause is not specified for a CLR routine, by
default the CLR routine runs using the most restrictive execution
control mode, SAFE. Routines that are created with this execution
control mode can only access resources that are controlled by the
database manager. Less restrictive execution control modes allow a
routine to access files on the local file system (FILEREAD or FILEWRITE)
or on the network. The execution control mode UNSAFE specifies that no
restrictions are to be placed on the behavior of the routine. Routines
defined with UNSAFE execution control mode can execute binary code.
These control modes represent a hierarchy of allowable actions, and a
higher-level mode includes the actions that are allowed below it in the
hierarchy. For example, execution control mode NETWORK allows a routine
to access files on the network, files on the local file system, and
resources that are controlled by the database manager. Use the most
restrictive execution control mode possible and avoid using the UNSAFE
mode.
If DB2 UDB detects at runtime that a CLR routine is attempting an action
outside of the scope of its execution control mode, DB2 UDB returns an
error (SQLSTATE 38501).
The EXECUTION CONTROL clause can only be specified for LANGUAGE CLR
routines. The scope of applicability of the EXECUTION CONTROL clause is
limited to the .NET CLR routine itself, and does not extend to any
other routines that it might call.
Maximum decimal precision and scale in common language runtime (CLR)
routines
The DECIMAL data type in DB2 Universal Database (UDB) is represented
with a precision of 31 digits and a scale of 28 digits. The .NET CLR
System.Decimal data type is limited to a precision of 29 digits and a
scale of 28 digits. Therefore, DB2 UDB external CLR routines must not
assign a value greater than (2^96)-1, the highest value that can be
represented using a 29 digit precision and a 28 digit scale, to a
System.Decimal data type variable. DB2 UDB raises a runtime error
(SQLSTATE 22003, SQLCODE -413) if such an assignment occurs.
When a routine CREATE statement is executed, if a DECIMAL data type
parameter is defined with a scale greater than 28, DB2 UDB raises an
error (SQLSTATE 42611, SQLCODE -604).
Command Reference
Migrating Databases
Restrictions
Version 8 documentation ambiguously states that no database migration is
required if the database has been migrated to a DB2 UDB Version 8 FixPak
level. To be specific, database migration is not required between
fixpaks once the database is at a Version 8 level (Version 8.1 or 8.2 or
a subsequent fixpak). There are changes to the database directory file
structure in Version 8.2 and migration is automatically performed for
you when you move from Version 7 or Version 8.1 to Version 8.2. However,
if you go back from Version 8.2 to Version 8.1, you must run db2demigdbd
to restore the database directory file structure. Failing to do so will
result in error SQL10004 when you try to access the database.
db2inidb - Initialize a mirrored database command
Do not issue the db2 connect to database command prior to issuing the
db2inidb database as mirror command.
Attempting to connect to a split mirror database prior to initializing
it erases the log files needed for roll forward recovery.
The connect sets your database back to the state it was in when you
suspended the database. If the database is marked as consistent at the
time of the suspend, DB2 Universal Database concludes there is no need
for crash recovery and empties the logs for future use. If this
situation occurs, attempting to rollforward causes a SQL4970 error.
Usage note for the db2iupdt command
Starting with Version 8.2, when you update a DB2 Universal Database
instance with the db2iupdt command, you must first stop any DB2
processes running against that instance.
New parameter for the db2sqljcustomize command
The db2sqljcustomize command has a new parameter.
db2sqljcustomize - DB2 SQLJ Profile Customizer command
-storebindoptions
Stores the value of the -bindoptions and -staticpositioned
values in the serialized profile. If these values are not
specified when invoking the dbsqljbind tool, the values stored
in the serialized profile are used. When the Customizer is
invoked with .grp file, the values are stored in each
individual .ser file. The stored values can be viewed using
db2sqljprint tool.
New parameter for the sqlj command
The sqlj command has a new parameter.
sqlj - DB2 SQLJ Translator command
-db2optimize
Specifies that the SQLJ translator generates code for a
connection context class that is optimized for DB2 Universal
Database. This option optimizes the code for the user defined
context but not for the default context. When you run the SQLJ
translator with this option, the DB2 Universal JDBC driver
file db2jcc.jar must be in the CLASSPATH for compiling the
generated Java application.
Monitor and troubleshoot command (db2pd) updates
The Monitor and troubleshoot DB2 command (db2pd) retrieves information
from the DB2 UDB memory sets. The db2pd system command has been enhanced
in the following ways:
New -hadr parameter
The -hadr parameter reports High Availability Disaster Recovery
information. Descriptions of each reported element can be found in the
High availability disaster recovery section of the System Monitor Guide
and Reference
New -utilities parameter
The -utilities parameter reports Utility information. Descriptions of
each reported element can be found in the Utilities section of the
System Monitor Guide and Reference.
New -activestatements parameter
The -activestatements parameter returns information about active
statements. The following information is returned:
AppHandl The application handle using the active statement, including
the node and the index.
UOW-ID For the application associated with AppHandl, the unit of work
identifier in which the statement became active.
StmtID The statement identifier within the unit of work.
AnchID The identifier for the package cache dynamic SQL hash anchor.
StmtUID The identifier for the package cache dynamic SQL statement
unique within the hash anchor.
EffISO The effective isolation level of the statement.
EffLockTOut
The effective lock timeout value for the statement.
EffDegree
The effective degree of the statement.
StartTime
The time the statement started.
LastRefTime
The last time the statement was referenced by the application.
New wait option for the -locks parameter
You can specify the wait option with the -locks parameter to return only
locks with a waiting status and locks that are being waited on.
New fields returned by the -applications parameter
The -applications parameter returns four new fields:
C-AnchID This new field is the identifier for the package cache dynamic
SQL hash anchor of the current statement. The value for this
field is 0 if no current statement exists. The current hash
anchor identifier is populated only when the application is
executing a request related to the statement, such as a FETCH
request on a cursor. Once the request processing is complete,
the values are set to 0. The value is also set to 0 for static
SQL statements.
C-StmtUID
This new field is the package cache dynamic SQL statement
unique identifier within the hash anchor of the current
statement. The value for this field is 0 if no current
statement exists. The current statement unique identifier is
populated only when the application is in the process of
executing a request related to the statement. Once the
request execution is complete, the values are set to 0. The
value is also set to 0 for static SQL statements.
L-AnchID This new field is the package cache dynamic SQL hash anchor
identifier of the application's last executed statement. The
value for this field is 0 if no last executed statement exists,
such as before any dynamic SQL statement is executed. The value
is also set to 0 for static SQL statements. The last anchor
hash identifier is populated after each request execution is
complete and survives until the completion of the next
associated request .
L-StmtUID
This new field is the package cache dynamic SQL statement
unique identifier within the hash anchor of the application's
last executed statement. The value for this field is 0 if no
last executed statement exists or if the last statement
executed was static SQL. The last statement identifier is
populated after the current request completes and survives
until the completion of the next request.
Update to the SET CLIENT command
The SET(TM) CLIENT command specifies connection settings for the back
end process.
The command parameter SYNCPOINT for this command is ignored as of
Version 8. SYNCPOINT continues to be included for backward
compatibility.
Update to the PRECOMPILE command
The PRECOMPILE command processes an application program source file
containing embedded SQL statements. A modified source file is produced,
containing host language calls for the SQL and, by default, a package
is created in the database.
The command parameter SYNCPOINT for this command is ignored as of
Version 8. SYNCPOINT is continued to be included for backward
compatibility.
Update to the UPDATE HISTORY FILE command
Updates the location, device type, or comment in a history file entry.
The command parameter STATUS specifies a new status for an entry.
Previous documentation incorrectly states that the STATUS command
parameter can have a value of "I" to mark the entry as inactive. Valid
values are:
A Marks the entry as active.
E Marks the entry as expired.
Updates to the EXPORT and IMPORT commands
The complete "Required connection " subsection for the EXPORT and IMPORT
commands is as follows:
Required connection
Database. If implicit connect is enabled, a connection to the default
database is established. Utility access to Linux or Windows database
servers from Linux or Windows clients must be a direct connection
through the engine and not through a DB2 Connect gateway or loop back.
Update to the LOAD command
The complete information for the INDEXING MODE parameter's AUTOSELECT
value is as follows:
INDEXING MODE
AUTOSELECT
The load utility will automatically decide between REBUILD or
INCREMENTAL mode. The decision is based on the amount of data
being loaded and the depth of the index tree. Information
relating to the depth of the index tree is stored in the index
object. RUNSTATS is not required to populate this information.
AUTOSELECT is the default indexing mode.
File type modifiers for the load utility
The SET INTEGRITY command in the description for the "generatedoverride"
modifier has been updated.
The description for the "usedefaults" modifier has also been updated.
The updates are as follows:
Table 23. Valid file type modifiers for load: All file formats
+-------------------+-------------------------------------------------+
| Modifier | Description |
+-------------------+-------------------------------------------------+
| generatedoverride | This modifier instructs the load utility to |
| | accept user-supplied data for all generated |
| | columns in the table (contrary to the normal |
| | rules for these types of columns). This is |
| | useful when migrating data from another |
| | database system, or when loading a table from |
| | data that was recovered using the RECOVER |
| | DROPPED TABLE option on the ROLLFORWARD |
| | DATABASE command. When this modifier is used, |
| | any rows with no data or NULL data for a |
| | non-nullable generated column will be rejected |
| | (SQL3116W). |
| | Note: When this modifier is used, the table |
| | will be placed in CHECK PENDING state. To take |
| | the table out of CHECK PENDING state without |
| | verifying the user-supplied values, issue |
| | the following command after the load operation: |
| | SET INTEGRITY FOR < table-name > GENERATED |
| | COLUMN |
| | IMMEDIATE UNCHECKED |
| | To take the table out of CHECK PENDING state |
| | and force verification of the user-supplied |
| | values, issue the following command after the |
| | load operation: |
| | SET INTEGRITY FOR < table-name > IMMEDIATE |
| | CHECKED. |
| | |
| | This modifier cannot be used with either the |
| | generatedmissing or the generatedignore |
| | modifier. |
+-------------------+-------------------------------------------------+
| usedefaults | If a source column for a target table column |
| | has been specified, but it contains no data for |
| | one or more row instances, default values are |
| | loaded. Examples of missing data are: |
| | * For DEL files: two adjacent column |
| | delimiters (",,") or two adjacent column |
| | delimiters separated by an arbitrary number of |
| | spaces (", ,") are specified for a column |
| | value. |
| | * For DEL/ASC/WSF files: A row that does not |
| | have enough columns, or is not long enough for |
| | the original specification. |
| | Note: For ASC files, NULL column values are not |
| | considered explicitly missing, and a default |
| | will not be substituted for NULL column |
| | values. NULL column values are represented by |
| | all space characters for numeric, date, time, |
| | and /timestamp columns, or by using the NULL |
| | INDICATOR for a column of any type to indicate |
| | the column is NULL. |
| | Without this option, if a source column |
| | contains no data for a row instance, one of the |
| | following occurs: |
| | * For DEL/ASC/WSF files: If the column is |
| | nullable, a NULL is loaded. If the column is |
| | not nullable, the utility rejects the row. |
+-------------------+-------------------------------------------------+
File type modifiers for the import utility
The description for the "usedefaults" and "codepage=x" modifiers have
been updated as follows:
Table 24. Valid file type modifiers for import: All file formats
+-------------------+-------------------------------------------------+
| Modifier | Description |
+-------------------+-------------------------------------------------+
| usedefaults | If a source column for a target table column |
| | has been specified, but it contains no data for |
| | one or more row instances, default values are |
| | loaded. Examples of missing data are: |
| | * For DEL files: two adjacent column |
| | delimiters (",,") or two adjacent column |
| | delimiters separated by an arbitrary number of |
| | spaces (", ,") are specified for a column |
| | value. |
| | * For DEL/ASC/WSF files: A row that does not |
| | have enough columns, or is not long enough for |
| | the original specification. |
| | Note: For ASC files, NULL column values are not |
| | considered explicitly missing, and a default |
| | will not be substituted for NULL column |
| | values. NULL column values are represented by |
| | all space characters for numeric, date, time, |
| | and /timestamp columns, or by using the NULL |
| | INDICATOR for a column of any type to indicate |
| | the column is NULL. |
| | Without this option, if a source column |
| | contains no data for a row instance, one of the |
| | following occurs: |
| | * For DEL/ASC/WSF files: If the column is |
| | nullable, a NULL is loaded. If the column is |
| | not nullable, the utility rejects the row. |
+-------------------+-------------------------------------------------+
Table 25. Valid file type modifiers for import: ASCII file formats
(ASC/DEL)
+-------------------+-------------------------------------------------+
| Modifier | Description |
+-------------------+-------------------------------------------------+
| codepage=x | x is an ASCII character string. The value is |
| | interpreted as the code page of the data in the |
| | output data set. Converts character data from |
| | this code page to the application code page |
| | during the import operation. |
| | The following rules apply: |
| | * For pure DBCS (graphic) mixed DBCS, and EUC, |
| | delimiters are restricted to the range of x00 |
| | to x3F, inclusive. |
| | * nullindchar must specify symbols included in |
| | the standard ASCII set between code points x20 |
| | and x7F, inclusive. This refers to ASCII |
| | symbols and code points. |
| | |
| | Notes: |
| | 1. The codepage modifier cannot be used with |
| | the lobsinfile modifier. |
| | 2. If data expansion occurs when the code page |
| | is converted from the application code page to |
| | the database code page, the data might be |
| | truncated and loss of data can occur. |
+-------------------+-------------------------------------------------+
ATTACH command
The USER parameter of the ATTACH command specifies the authentication
identifier. When attaching to a DB2 Universal Database instance on a
Windows operating system, the user name can be specified in a format
compatible with Microsoft Windows NT Security Account Manager (SAM). The
qualifier must be a NetBIOS style name, which has a maximum length of 15
characters. For example, domainname\username.
RECOVER DATABASE command
In the Examples section of the RECOVER DATABASE Command for Version 8.2
documentation, timestamps are incorrectly formatted as
yyyy:mm:dd:hh:mm:ss.
The correct format is yyyy-mm-dd-hh.mm.ss
UPDATE HISTORY FILE command
The UPDATE HISTORY FILE command updates the location, device type,
comment, or status in a history file entry.
Updated command syntax
>>-UPDATE HISTORY--+-FOR--object-part-+--WITH------------------->
'-EID--eid---------'
>--+-LOCATION--new-location--DEVICE TYPE--new-device-type-+----><
+-COMMENT--new-comment---------------------------------+
'-STATUS--new-status-----------------------------------'
Command parameters
-d database-name
Specifies the name of the database to be updated.
-u userid
Specifies the user ID.
-p password
Specifies the password for the user.
-h Displays help information. When this option is specified, all
other options are ignored, and only the help information is
displayed.
Example
After installing the current level (a FixPak or a new version), update
the system catalog in the sample database by issuing the following
command:
db2updv8 -d sample
Usage notes
1. This command can be used only on a database running DB2 Universal
Database Version 8.1.2 or later. If the command is issued more than
once, no errors are reported and each of the catalog updates is
applied only once.
2. To enable the new built-in functions, all applications must
disconnect from the database and the database must be deactivated if
it has been activated.
Formatting trap files (Windows)
A new tool, db2xprt.exe, is available to let you format trap files
(*.TRP). This tool formats DB2 Universal Database's binary trap files
into a human readable ASCII file. Trap files are located in the instance
directory (DB2INSTPROF) by default or in the diagnostic data directory
path if the DIAGPATH database manager configuration parameter is set.
Authorization
You must have access to the DIAGPATH directory.
Command syntax
>>-db2xprt--+----------+--+----+--+----+--infile--+---------+--><
+-/p--path-+ '-/m-' '-/n-' '-outfile-'
'-/v-------'
Command parameters
Table 26. Maximum block size limit for 3480 and 3490 tape devices on
Linux
+-----------------+-----------------+----------------+----------------+
| Device | Attachment | Block Size | DB2 buffer |
| | | Limit | size limit (in |
| | | | 4-KB pages) |
+-----------------+-----------------+----------------+----------------+
| 3480 | s370 | 61 440 | 15 |
+-----------------+-----------------+----------------+----------------+
| 3490 | s370 | 61 440 | 15 |
+-----------------+-----------------+----------------+----------------+
Tivoli Storage Manager
When calling the BACKUP DATABASE or RESTORE DATABASE commands, you can
specify that you want to use the Tivoli(R) Storage Manager (TSM) product
to manage database or table space backup or restore operation. The
minimum required level of TSM client API is Version 4.2.0, except on
the following:
* 64-bit Windows NT operating systems which require TSM client API
Version 5.1.
* 32-bit Linux for iSeries and pSeries(R) which requires at minimum TSM
client API Version 5.1.5
* 64-bit Linux for iSeries and pSeries which requires at minimum TSM
client API Version 5.2.2
* 64-bit Linux on AMD Opteron systems which require a minimum TSM
client API Version 5.2.0.
Value restrictions for the HADR local host and local service parameters
When specifying values for the high availability disaster recovery
(HADR) local host and local service parameters (HADR_LOCAL_SVC and
HADR_REMOTE_SVC) while preparing an update database configuration
command , the values must be ports that are not in use for any other
service. If the parameters are being configured using the Linux command
line, the values should be also set in the /etc/services file.
Additional system requirements for high availability disaster recovery
If you create a table space on the primary database and log replay fails
on the standby database because the containers are not available, the
primary database does not receive an error message stating that the log
replay failed.
To check for log replay errors, you must monitor the db2diag.log and the
administration log on the standby database when you are creating new
table spaces.
If a takeover operation occurs, the new table space that you created is
not available on the new primary database. To recover from this
situation, restore the table space on the new primary database from a
backup image.
In the following example, table space MY_TABLESPACE is restored on
database MY_DATABASE before it is used as the new primary database:
1. db2 connect to my_database
2. db2 list tablespaces show detail
Note: Run the db2 list tablespaces show detail command to show the
status of all table spaces and to obtain the table space ID
number required for Step 5.
3. db2 stop hadr on database my_database
4. db2 "restore database my_database tablespace (my_tablespace) online
redirect"
5. db2 "set tablespace containers for my_tablespace_ID_# ignore
rollforward container operations using (path
'/my_new_container_path/')"
6. db2 "restore database my_database continue"
7. db2 rollforward database my_database to end of logs and stop
tablespace "(my_tablespace)"
8. db2 start hadr on database my_database as primary
Non-replicated operations for high availability disaster recovery
Version 8.2 documentation states:
BLOBs and CLOBs are not replicated; however, the space for them will be
allocated on the standby database.
The statement should read as follows:
Non-logged BLOBs and CLOBs are not replicated; however, the space for
them will be allocated on the standby database.
HADR does not support raw logs
High availability disaster recovery (HADR) does not support the use of
raw I/O (direct disk access) for database log files. If HADR is started
with the START HADR command, or if the database is restarted with HADR
configured, and raw logs are detected, the associated command will fail
with SQL1768N reason code "9".
Data Warehouse Center
DB2 Data Warehouse Center requires Unicode format database
After installing DB2 Universal Database Version 8.1 FixPak 7 or later,
you need to run the Warehouse Control Database Management tool to create
a new warehouse control database that is in Unicode format.
Prerequisites
To create and store a copy of the existing warehouse control database,
your workstation must have enough disk space to store this copy plus
twice as much space as the warehouse control database requires to store
temporary files. For example, if the existing warehouse control database
is 10 MB, a total of 30 MB must be available in the same instance as the
existing warehouse control database.
Procedure
Follow these steps to create a new warehouse control database in Unicode
format:
1. Run the Warehouse Control Database Management tool:
* On Windows: Click Start and select Programs -> IBM DB2-> Set up
Tools-> Warehouse Control Database Management.
2. Enter the name of the existing warehouse control database. You are
then prompted for a new warehouse control database name. This
creates a new Unicode warehouse control database.
Defining DB2 warehouse sources and targets
The following update affects two Data Warehouse Center topics:
* Defining DB2 warehouse sources
* Defining a warehouse target
By default, when you define a warehouse source or a warehouse target,
the number of tables that are returned is 250. However, you can use the
new environment variable VWS_MAX_TABLELIST to set the number of tables
that are returned. The maximum number of tables that can be returned is
40 000. This number might be less depending on the size of the table
names in the list. It is recommended that you specify a number much
smaller than 40 000.
Updates to the Business Intelligence tutorial
Verifying that the DWCTBC and TBC_MD databases are registered with ODBC
In Version 8, the control database, TBC_MD that is used in the tutorial,
does not need to be a system ODBC data source. However, the target
database or database source DWCTBC must be a system ODBC data source.
Opening the Define Warehouse Source notebook
The procedure for opening the Define Warehouse Source notebook for the
Tutorial Relational Source has changed.
Procedure
To open the Define Warehouse Source notebook for the Tutorial Relational
Source:
1. From the Data Warehouse Center window, right-click the Warehouse
Sources folder.
2. Click Define --> ODBC --> DB2 --> DB2 Family.
The Define Warehouse Source notebook opens.
Opening the Define Warehouse Target notebook
The procedure for opening the Define Warehouse Target notebook has
changed.
Procedure
To open the Define Warehouse Target notebook:
1. From the Data Warehouse Center window, right-click the Warehouse
Targets folder.
2. Click Define --> ODBC --> DB2 --> DB2 Family.
The Define Warehouse Target notebook opens.
Setting the purge limit for warehouse log files
The log file holds records until a designated count limit is reached.
The default count limit is 1000 records. Typically, each job that you
run creates 12 to 15 log records. Set the purge limit to a number that
meets your needs by updating the Purge log when total records equal
field on the Server tab of the Warehouse Properties page.
Data Warehouse Center support for CURSOR load
The DB2 Universal Database Load step now allows a view or a table to be
used as the source to the step, resulting in a LOAD FROM CURSOR.
In order to map columns in the wizard for CURSOR load, the Map columns
based on column positions found in the input file radio button must be
selected.
Unicode warehouse control database migration and limitations
Starting with Version 8.2 of the Data Warehouse Center, the warehouse
control database must be a Unicode database. If you have a Unicode
warehouse control database from a version of the Data Warehouse Center
that is before Version 8.2, you still must create a new Unicode control
database by using the Warehouse Control Database Management tool.
When you migrate a warehouse control database from a version of the Data
Warehouse Center that is before Version 8.2, the Data Warehouse Center
Control Database Management tool runs the db2move command to move the
data to a new Unicode control database. During this process, windows
appear that show the progress of the db2move command. This migration
path only occurs once.
The Data Warehouse Center does not support Unicode on Sybase servers.
Change in date format for Modified column
In the details view of the main Data Warehouse Center window, the format
of the date in the Modified column has been updated. The date in the
Modified column is displayed in the format for your locale and includes
the time. This change in the date format ensures that sorting objects on
the Modified column functions properly. This update applies to most
lists of Data Warehouse Center objects that are shown in the Navigator
and Details views, such as:
* Subjects
* Processes
* Warehouse schemas
* Warehouse agent sites
* Programs
* Steps
* Data resources
* Users
* User groups
Defining statistical transformers in the Data Warehouse Center
To perform a statistical transformation of your data, define the
statistical transformer that you want to use.
Procedure
To define statistical transformers:
1. Open the Process Model window.
2. Click the transformer icon and select a transformer from the list of
available transformers.
3. Link the transformer that you selected to a warehouse source and
warehouse target as required by the rules for that transformer.
Each transformer has specific rules for how it must be linked to a
warehouse source and warehouse target. See the documentation for each
transformer for more information.
Prerequisite for the iSeries warehouse agent
To use an iSeries warehouse agent for DB2 Warehouse Manager on V5R2 and
V5R3 systems, the following PTF is required:
PTF SI13558
This database PTF enables the CLI on iSeries to handle Unicode data.
DB2 .NET Data Provider
Concurrent active data reader support
The DB2 .NET Data Provider now supports the use of concurrent active
data readers. This means that you can concurrently access data from
multiple DB2DataReader instances that use the same DB2Connection
instance. Each DB2DataReader instance must be associated with its own
DB2Command instance. In order to use the associated DB2Command instance
for any other purpose, you must explicitly call the DB2DataReader.Close
method.
DB2Connection.ConnectionString property
There is an additional keyword for the DB2Connection.ConnectionString
property:
CurrentSchema
The schema to be used after a successful connection. Upon a
successful connection, a SET CURRENT SCHEMA statement is sent
to the DB2 server. This allows the application to name SQL
objects without having to qualify them by a schema name.
Development Center
DB2 Development Center Version 8.2 requires level 9.2.9 of the
Distributed Debugger
DB2 Development Center Version 8.2 now requires Version 9.2.9 of the IBM
Distributed Debugger. If you do not have Version 9.2.9 of the
Distributed Debugger installed, you cannot debug Java stored procedures
using the Development Center.
For more information about the Distributed Debugger, visit to the
Distributed Debugger Web site at
http://www.ibm.com/software/awdtools/debugger.
Length restriction in the DB2 Development Center Change Variable Range
window
When you are changing the length of a variable using the Change Variable
Range dialog in DB2 Development Center, there is a maximum length of
1024 bytes. This limitation is currently documented in an English-only
message.
Restrictions to DB2 Universal type 2 and type 4 drivers
In Version 8.2, support was added to allow users to connect to a DB2
Universal Database (UDB) database from within the Development Center
using the DB2 Universal Type 2 and Type 4 drivers. However, if you
attempt to use one of these drivers to connect to an iSeries server, or
to a DB2 UDB server that is Version 8.1 or earlier, you will see the
following error message:
Connection to <database> failed.
IBM DB2 Universal driver (JCC) not found.
Refer to the topic titled "JDBC drivers" in the DB2 Information Center
for additional information on which drivers to use in order to avoid
this error.
GUI Tools
Modifying the statement termination character
Starting with DB2 Universal Database (UDB) Version 8.2 FixPak 1
(equivalent to Version 8.1 FixPak 8), you can modify the statement
termination character within a script that is being run in the command
line processor (CLP) or the Command Editor. This on the fly modification
is similar to the method currently available in DB2 UDB for OS/390(R).
The following example shows how the termination character can be changed
after each statement:
connect to gilroy user newton using password;
select * from newton.department;
--#SET TERMINATOR :
select * from newton.employee:
--#SET TERMINATOR @
select * from newton.department@
--#SET TERMINATOR ;
select * from newton.department;
--#SET TERMINATOR &
terminate&
The ability to change the termination character is important when a
script contains compound statements. In the following example, DB2 UDB
assumes that the first ; that it encounters in the compound CREATE
TRIGGER statement is the termination character for the whole CREATE
TRIGGER statement. However, this is not the case. It is only meant to be
the termination character for one of the statements inside the compound
CREATE TRIGGER statement.
CONNECT TO SAMPLE;
DROP TRIGGER newton.NWTTRIGGER;
CREATE TRIGGER newton.NWTTRIGGER AFTER DELETE
ON newton.NWTTABLE FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
insert into newton.nwttable values(0,'0');
insert into newton.nwttable values( -1, '-1');
END;
CONNECT RESET;
TERMINATE;
The following example shows how the statement termination character can
be modified within the script to achieve the desired results.
CONNECT TO SAMPLE;
DROP TRIGGER newton.NWTTRIGGER;
--#SET TERMINATOR @
CREATE TRIGGER newton.NWTTRIGGER AFTER DELETE
ON newton.NWTTABLE FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
insert into newton.nwttable values(0,'0');
insert into newton.nwttable values( -1, '-1');
END@
--#SET TERMINATOR ;
CONNECT RESET;
If you do not need your scripts to run locally on DB2 for OS/390 or your
DB2 UDB scripts do not connect to OS/390, then using --#SET TERMINATOR
is not the recommended method for modifying statement termination
characters. Instead you should use the existing -tdX or ;-- options.
The -tdX option allows you to specify the termination character when
calling a script using a CLP command. The 'X' represents the character
being used as the statement termination character. For example, in the
command:
db2 -tvf test.txt -td&
The & will be used as the statement termination character when running
the script in the test.txt file. If that script contained the compound
CREATE TRIGGER statement, it would be written as:
CONNECT TO SAMPLE&
DROP TRIGGER newton.NWTTRIGGER&
CREATE TRIGGER newton.NWTTRIGGER AFTER DELETE
ON newton.NWTTABLE FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
insert into newton.nwttable values(0,'0');
insert into newton.nwttable values( -1, '-1');
END&
CONNECT RESET&
TERMINATE&
JRun
1. Prepare a new application server for DB2 Web Tools by
completing the following tasks:
Recommendation
Creating a new application server is recommended, but not
mandatory. For testing purposes, the default server can be
used, and only the configuration of the JVM classpath and
the deployment is required.
a. Start the JRun Management Console and login as the
administrator of the application server.
b. Create a new application server using Create New Server
located at the top right of the main page. Do not change
the host name selection from localhost.
c. Enter the new server name (DB2WebToolsServer) and click
the JRun Server Directory. The value is automatically
filled in.
d. Click the Create Server button.
e. Record the generated values or enter new values for:
* JNDI Provider URL
* Web Server Port Number. This would be the value to be
used in the URL for the DB2 Web Tools (i.e.
http://localhost:web_server_port_numer/db2wa)
* Web Connector Proxy Port Number
f. Click update port numbers if necessary and close the
window.
2. Deploy DB2 Web Tools on the JRun application server by
completing the following tasks:
a. Start the application server selected to host DB2 Web
Tools Web application (DB2WebToolsServer, default or any
other except admin).
b. Click Web Applications and then click Add.
c. Browse the Deployment File section to select the
Sqllib\tools\web\db2wa.war file in the DB2 UDB
installation path.
d. Click Deploy and confirm that the context path is /db2wa.
e. Select the application server and confirm that the DB2
Web Tools application appears in the Web Applications
section. Do not click Apply on this page.
f. Select the Home link from the upper left panel of the
main page.
g. Restart the application server from the Home view that
contains the DB2 Web Tools (DB2WebToolsServer).
The DB2 Web Tools enterprise application is located at
http://localhost:your_web_server_port_numer/db2wa and can be
accessed with an HTML 4.0 compliant Web browser.
Direct I/O on block devices (Linux)
Direct I/O is now supported on both file systems and block devices for
distributions of Linux with a 2.6 kernel. Direct I/O on block devices is
an alternative way to specify device containers for direct disk access
or for raw I/O. The performance of Direct I/O is equivalent to the raw
character device method. DB2 Universal Database (UDB) enables Direct I/O
while opening the table space when the CREATE TABLESPACE statement
specifies a block device name for the container path. Previously, the
same performance was achieved using the raw I/O method, which required
binding the block device to a character device using the raw utility.
Windows
~\sqllib\samples\spatial
~\sqllib\samples\spatial\bank
Linux
~/sqllib/spatial
~/sqllib/spatial/bank
SQL Administrative Routines
Incorrect column name documented in result set for SNAP_GET_DYN_SQL
table function
The "SNAP_GET_DYN_SQL table function" topic in the DB2 Information
Center Version 8.2.2 incorrectly documents the result set for the
SNAP_GET_DYN_SQL table function.
One of the columns is incorrectly documented as STMT_TXT.
The correct name for the output column is STMT_TEXT.
Snapshot monitor table functions have version-specific views
Version-specific views have been defined on the following snapshot
monitor table functions, introduced in DB2 Universal Database Version
8.2.2:
* SNAP_GET_CONTAINER
* SNAP_GET_DB
* SNAP_GET_DYN_SQL
* SNAP_GET_STO_PATHS
* SNAP_GET_TAB
* SNAP_GET_TBSP
* SNAP_GET_TBSP_PART
The version-specific views are as follows:
* SYSCATV82.SNAPCONT
* SYSCATV82.SNAPDB
* SYSCATV82.SNAPDYNSQL
* SYSCATV82.SNAPSTOPATHS
* SYSCATV82.SNAPTAB
* SYSCATV82.SNAPTBSPACE
* SYSCATV82.SNAPTBSPACEPART
Because there is no guarantee that the result tables from the snapshot
monitor table functions will remain unchanged from release to release,
it is recommended that you use the version-specific views if you want
guaranteed result tables. Each view contains all of the columns from the
result table of its associated snapshot monitor table function.
GET_DB_CONFIG procedure requires an 8K minimum page size for a user
temporary table space
The GET_DB_CONFIG procedure requires a user temporary table space with a
page size of at least 8K.
The documented example that shows you how to use the GET_DB_CONFIG
procedure should be replaced by the following example.
Using the command line processor (CLP), change the value of the
logretain and the userexit database configuration parameters. Retrieve
the original (on disk) and updated (in memory) values by calling the
GET_DB_CONFIG procedure.
UPDATE DB CFG USING LOGRETAIN RECOVERY USEREXIT YES
CALL SYSPROC.GET_DB_CONFIG()
The following is an example of partial output from this procedure call.
Result set 1
--------------
DBCONFIG_TYPE ... LOGRETAIN ... USEREXIT...
------------- ----------- -----------
0 1 1
1 0 0
2 record(s) selected.
Return Status = 0
SQL Reference
EXPLAIN_DIAGNOSTIC: A new Explain table
The EXPLAIN_DIAGNOSTIC table contains an entry for each diagnostic
message produced for a particular instance of an explained statement in
the EXPLAIN_STATEMENT table.
The EXPLAIN_GET_MSGS table function queries the EXPLAIN_DIAGNOSTIC and
EXPLAIN_DIAGNOSTIC_DATA Explain tables and returns formatted messages.
Table 29. EXPLAIN_DIAGNOSTIC table
Column name | Data | Nulla | Ke | Description
| type | ble | y |
| | | 1 |
--------------+----------+-------+----+------------------------------
EXPLAIN_REQU | VARCHAR( | No | PK | Authorization ID of
ESTER | 128) | | , | initiator of this Explain
| | | FK | request.
--------------+----------+-------+----+------------------------------
EXPLAIN_TIME | TIMESTAM | No | PK | Time of initiation for
| P | | , | Explain request.
| | | FK |
--------------+----------+-------+----+------------------------------
SOURCE_NAME | VARCHAR( | No | PK | Name of the package running
| 128) | | , | when the dynamic statement
| | | FK | was explained or name of the
| | | | source file when the static
| | | | SQL was explained.
--------------+----------+-------+----+------------------------------
SOURCE_SCHEM | VARCHAR( | No | PK | Schema, or qualifier, of
A | 128) | | , | source of Explain request.
| | | FK |
--------------+----------+-------+----+------------------------------
SOURCE_VERSI | VARCHAR( | No | PK | Version of the source of the
ON | 64) | | , | Explain request.
| | | FK |
--------------+----------+-------+----+------------------------------
EXPLAIN_LEVE | CHAR(1) | No | PK | Level of Explain information
L | | | , | for which this row is
| | | FK | relevant.
| | | | Valid values are:
| | | | * O: Original Text (as
| | | | entered by user)
| | | | * P: PLAN SELECTION
--------------+----------+-------+----+------------------------------
STMTNO | INTEGER | No | PK | Statement number within
| | | , | package to which this
| | | FK | Explain information is
| | | | related. Set to 1 for
| | | | dynamic Explain SQL
| | | | statements. For static SQL
| | | | statements, this value is
| | | | the same as the value used
| | | | for the SYSCAT.STATEMENTS
| | | | catalog view.
--------------+----------+-------+----+------------------------------
SECTNO | INTEGER | No | PK | Section number within
| | | , | package that contains this
| | | FK | SQL statement. For dynamic
| | | | Explain SQL statements, this
| | | | is the section number used
| | | | to hold the section for this
| | | | statement at runtime. For
| | | | static SQL statements, this
| | | | value is the same as the
| | | | value used for the
| | | | SYSCAT.STATEMENTS catalog
| | | | view.
--------------+----------+-------+----+------------------------------
DIAGNOSTIC_I | INTEGER | No | PK | ID of the diagnostic for a
D | | | | particular instance of a
| | | | statement in the
| | | | EXPLAIN_STATEMENT table.
--------------+----------+-------+----+------------------------------
CODE | INTEGER | No | No | A unique number assigned to
| | | | each diagnostic message. The
| | | | number can be used by a
| | | | message API to retrieve the
| | | | full text of the diagnostic
| | | | message.
Application Snapshot
Application handle = 6
Application status = Rollback Active
Start Time = 02/20/2004 12:49:27.713720
Completed Work = 1024000 bytes
Total Work = 4084000 bytes
Application Snapshot
Application handle = 10
Application status = Rollback to Savepoint
Start Time = 02/20/2004 12:49:32.832410
Completed Work = 102400 bytes
Total Work = 2048000 bytes
Note: If rollback is not active during a snapshot, then rollback
elements will not be displayed.
XML Extender
Decomposing documents larger than 1 MB
You do not need to drop and recreate the stored procedure dxxShredXML to
decompose documents that are larger than 1 MB. To decompose documents
that are larger than 1 MB, invoke the stored procedure dxxShredXML100MB,
which can shred documents up to 100 MB. Although dxxShredXML100MB can
handle large documents, you might need to increase other resources for
the stored procedure to complete successfully. To invoke the stored
procedure through the sample program dxxshrd, use the new flag
"-large". For example:
dxxshrd -large mydb xxx.xml
If your version of DB2 Universal Database is earlier than Version 8
FixPak 6, you must run dxxMigv to migrate XML Extender to the current
level to run the new stored procedure.
Configuring MQ XML UDFs with XML Extender
You must configure and enable MQ XML user-defined functions (UDFs)
before you can use them.
Prerequisites
Install the UDFs by following the procedure in the "Installing DB2
WebSphere MQ functions" topic, which is found either in the Information
Center or the IBM DB2 Information Integrator Application Developer's
Guide.
Procedure
To configure and enable MQ XML UDFs with XML Extender:
1. Open a DB2 command prompt window.
2. Connect to the database that will use the MQ XML UDFs by entering the
following command:
db2 connect to <database>
3. Change to the bnd directory within the path where you installed DB2
Universal Database, such as:
* SQLLIB/bnd (Linux)
* C:\Program Files\IBM\SQLLIB\bnd (Windows)
4. Bind the database to XML Extender using the following command:
db2 bind @dbxxbind.lst
5. Bind the database for XML Extender to use the MQ XML UDFs using the
following command:
db2 bind mqxml.bnd
6. Bind the database to the CLI using the following command:
db2 bind @db2cli.lst
XML Extender environment variable DB2DXX_MIN_TMPFILE_SIZE
DB2 XML Extender can place large documents in temporary files to avoid
using a great amount of memory during processing. On systems with large
amounts of physical memory, you can avoid moving documents to temporary
files, reducing the amount of Input/Output activity. The environment
variable DB2DXX_MIN_TMPFILE_SIZE instructs XML Extender to use memory
buffers, instead of temporary files, for processing documents smaller
than the specified value. The variable is applicable only on the
server. If multiple physical nodes participate in a partitioned
environment, the variable can be set differently on each node,
accurately reflecting the amount of memory installed on each computer.
If the environment variable is not set, documents larger than 128 KB
will automatically be placed into temporary files during processing.
Documents smaller than 128 KB will be processed in memory.
DB2XML.XMLVarchar UDT redefinition
You can redefine the user-defined type (UDT) DB2XML.XMLVarchar up to 32
KB. To change the size of an XMLVarchar UDT, create the UDT before you
enable the database for XML Extender.
For more information, see DB2 XML Extender Administration and
Programming.
Appendix A. DB2 UDB FixPak CD directory structure
In the United States, call one of the following numbers to contact IBM:
* 1-800-IBM-SERV (1-800-426-7378) for customer service
* 1-888-426-4343 to learn about available service options
* 1-800-IBM-4YOU (426-4968) for DB2 marketing and sales
In Canada, call one of the following numbers to contact IBM:
* 1-800-IBM-SERV (1-800-426-7378) for customer service
* 1-800-465-9600 to learn about available service options
* 1-800-IBM-4YOU (1-800-426-4968) for DB2 marketing and sales
To locate an IBM office in your country or region, check IBM's Directory
of Worldwide Contacts on the web at http://www.ibm.com/planetwide
B.1 Product information
Information regarding DB2 Universal Database products is available by
telephone or by the World Wide Web at
http://www.ibm.com/software/data/db2/udb
This site contains the latest information on the technical library,
ordering books, product downloads, newsgroups, FixPaks, news, and links
to web resources.
If you live in the U.S.A., then you can call one of the following
numbers:
* 1-800-IBM-CALL (1-800-426-2255) to order products or to obtain
general information.
* 1-800-879-2755 to order publications.
For information on how to contact IBM outside of the United States, go
to the IBM Worldwide page at www.ibm.com/planetwide
Appendix C. Notices
IBM may not offer the products, services, or features discussed in this
document in all countries. Consult your local IBM representative for
information on the products and services currently available in your
area. Any reference to an IBM product, program, or service is not
intended to state or imply that only that IBM product, program, or
service may be used. Any functionally equivalent product, program, or
service that does not infringe any IBM intellectual property right may
be used instead. However, it is the user's responsibility to evaluate
and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject
matter described in this document. The furnishing of this document does
not give you any license to these patents. You can send license
inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact
the IBM Intellectual Property Department in your country/region or send
inquiries, in writing, to:
IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106, Japan
The following paragraph does not apply to the United Kingdom or any
other country/region where such provisions are inconsistent with local
law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Some states do not allow disclaimer of express or implied warranties in
certain transactions; therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical
errors. Changes are periodically made to the information herein; these
changes will be incorporated in new editions of the publication. IBM may
make improvements and/or changes in the product(s) and/or the program(s)
described in this publication at any time without notice.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of
those Web sites. The materials at those Web sites are not part of the
materials for this IBM product, and use of those Web sites is at your
own risk.
IBM may use or distribute any of the information you supply in any way
it believes appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the
purpose of enabling: (i) the exchange of information between
independently created programs and other programs (including this one)
and (ii) the mutual use of the information that has been exchanged,
should contact:
IBM Canada Limited
Office of the Lab Director
8200 Warden Avenue
Markham, Ontario
L6G 1C7
CANADA
Such information may be available, subject to appropriate terms and
conditions, including in some cases payment of a fee.
The licensed program described in this document and all licensed
material available for it are provided by IBM under terms of the IBM
Customer Agreement, IBM International Program License Agreement, or any
equivalent agreement between us.
Any performance data contained herein was determined in a controlled
environment. Therefore, the results obtained in other operating
environments may vary significantly. Some measurements may have been
made on development-level systems, and there is no guarantee that these
measurements will be the same on generally available systems.
Furthermore, some measurements may have been estimated through
extrapolation. Actual results may vary. Users of this document should
verify the applicable data for their specific environment.
Information concerning non-IBM products was obtained from the suppliers
of those products, their published announcements, or other publicly
available sources. IBM has not tested those products and cannot confirm
the accuracy of performance, compatibility, or any other claims related
to non-IBM products. Questions on the capabilities of non-IBM products
should be addressed to the suppliers of those products.
All statements regarding IBM's future direction or intent are subject to
change or withdrawal without notice, and represent goals and objectives
only.
This information may contain examples of data and reports used in daily
business operations. To illustrate them as completely as possible, the
examples include the names of individuals, companies, brands, and
products. All of these names are fictitious, and any similarity to the
names and addresses used by an actual business enterprise is entirely
coincidental.
COPYRIGHT LICENSE:
This information may contain sample application programs, in source
language, which illustrate programming techniques on various operating
platforms. You may copy, modify, and distribute these sample programs in
any form without payment to IBM for the purposes of developing, using,
marketing, or distributing application programs conforming to the
application programming interface for the operating platform for which
the sample programs are written. These examples have not been thoroughly
tested under all conditions. IBM, therefore, cannot guarantee or imply
reliability, serviceability, or function of these programs.
Each copy or any portion of these sample programs or any derivative work
must include a copyright notice as follows:
(C) (your company name) (year). Portions of this code are derived from
IBM Corp. Sample Programs. (C) Copyright IBM Corp. _enter the year or
years_. All rights reserved.
C.1 Trademarks
The following terms are trademarks of International Business Machines
Corporation in the United States, other countries, or both, and have
been used in at least one of the documents in the DB2 UDB documentation
library.
ACF/VTAM iSeries
AISPO LAN Distance
AIX MVS
AIXwindows MVS/ESA
AnyNet MVS/XA
APPN Net.Data
AS/400 NetView
BookManager OS/390
C Set++ OS/400
C/370 PowerPC
CICS pSeries
Database 2 QBIC
DataHub QMF
DataJoiner RACF
DataPropagator RISC System/6000
DataRefresher RS/6000
DB2 S/370
DB2 Connect SP
DB2 Extenders SQL/400
DB2 OLAP Server SQL/DS
DB2 Information Integrator System/370
DB2 Query Patroller System/390
DB2 Universal Database SystemView
Distributed Relational Tivoli
Database Architecture VisualAge
DRDA VM/ESA
eServer VSE/ESA
Extended Services VTAM
FFST WebExplorer
First Failure Support Technology WebSphere
IBM WIN-OS/2
IMS z/OS
IMS/ESA zSeries
The following terms are trademarks or registered trademarks of other
companies and have been used in at least one of the documents in the DB2
UDB documentation library:
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of
Microsoft Corporation in the United States, other countries, or both.
Intel and Pentium are trademarks of Intel Corporation in the United
States, other countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems,
Inc. in the United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States
and other countries.
Linux is a trademark of Linus Torvalds in the United States, other
countries, or both.
Other company, product, or service names may be trademarks or service
marks of others.