Documentation updates

Administration: Implementation

7 7 7

Automatic client reroute considerations for cataloging on a DB2 Connect 7server

7

Consider the following two items involving alternate server connectivity 7with DB2 Connect server:

77 7 7

Local system account support (Windows)

7

Applications running under the context of the local system account (LSA) 7are supported on all Windows platforms, except Windows ME.

7 7 7

Two-part user ID support

7

The CONNECT statement and ATTACH command support two-part user IDs. The 7qualifier of the SAM-compatible user ID is the NetBIOS style name which has 7a maximum length of 15 characters. This feature is not supported on Windows 7ME.

7 7 7

Additional information for Kerberos support

7
7Linux prerequisites 7

The prerequisites for Linux Kerberos support are inaccurately reported 7in the documentation. The provided DB2 Kerberos security plug-in is supported 7with RedHat Enterprise Linux Advanced Server 3.0 with the IBM Network Authentication 7Service (NAS) 1.4 client.

7
7zSeries and iSeries compatibility 7

For connections to zSeries and iSeries, the database must be cataloged 7with the AUTHENTICATION KERBEROS parameter and the TARGET PRINCIPAL parameter 7name must be explicitly specified.

7

Neither zSeries nor iSeries support mutual authentication.

7
7Windows issues 7

Administration: Performance

7 7 7

New communication registry variable

7

The DB2TCP_CLIENT_RCVTIMEOUT registry variable has been added in version 78.2.

7 77777777777777777777777
Table 13. Communications variables
Variable name Operating systems Values
Description
DB2TCP_CLIENT_RCVTIMEOUT All 7

Default=0 (not set)

7

Values: 0 to 732767 seconds

7

Specifies 7the number of seconds a client waits for data on a TCP/IP receive.

7

There is no timeout if the registry variable is not set or is set to 0. If 7the TCP/IP receive returns with data before the timeout value has expired, 7the application proceeds as usual. If the timeout value expires before data 7is returned, the connection closes.

7

7 7
Note:
7
This registry variable 7is applicable to the DB2 Client and the client side of the DB2 Gateway only. 7 It is not applicable to the DB2 Server.
7 7 7

New performance variable

7

The DB2_LARGE_PAGE_MEM performance variable has been added in 7version 8.2.

7 77777777777777777777777
Table 14. Performance variables
Variable name Operating systems Values
Description
DB2_LARGE_PAGE_MEM 7

AIX 5.x 64-bit only

7

Linux

Default=NULL 7

Use * to denote that all applicable 7memory regions should use large page memory, or a comma-separated list of 7specific memory regions that should use large page memory. Available regions 7vary by operating system. On AIX 5.x 64-bit, the following regions can be 7specified: DB, DBMS, or PRIVATE. On Linux, the following region can be specified: 7DB.

7

Large page memory is supported only 7for DB2 UDB for AIX 5L, 64-bit Edition, and DB2 UDB for Linux.

7

The DB2_LARGE_PAGE_MEM 7registry variable is used to enable large page support when running on AIX 75.x or any Linux architecture with the appropriate kernel support. This registry 7variable deprecates the DB2_LGPAGE_BP registry variable, which can only 7be used to enable large-page memory for the database shared memory region. 7 This can now be enabled by setting DB2_LARGE_PAGE_MEM=DB. Any 7documentation that mentions enabling large pages with the DB2_LGPAGE_BP 7registry variable can be treated as synonymous with setting DB2_LARGE_PAGE_MEM=DB.

7

Large page usage is primarily intended to provide performance improvements 7to high performance computing applications. Memory access intensive applications 7that use large amounts of virtual memory may obtain performance improvements 7by using large pages. To enable DB2 UDB to use large pages, you must first 7configure the operating system to use large pages.

7

Enabling large private 7pages will increase DB2 UDB memory usage by a significant amount, as each 7DB2 UDB agent will consume at least 1 large page (16MB) of physical memory. 7To enable large pages for agent private memory on 64-bit DB2 for AIX (the 7DB2_LARGE_PAGE_MEM=PRIVATE setting), the following conditions must 7be met, in addition to configuring large pages on the operating system:

7
    7
  • The instance owner must possess the CAP_BYPASS_RAC_VMM and CAP_PROPOGATE 7capabilities.
  • 7
  • The kernel must support interfaces that allow a process to modify its 7page size at run time. .
7

On 64-bit DB2 for AIX, enabling this variable reduces the size of 7the shared memory segment backing database memory to the minimum requirement. 7 The default is to create a 64 GB segment: see the database shared memory 7size (database_memory) database configuration parameter 7for more details. This avoids pinning more shared memory in RAM than is likely 7to be used.

7

By setting this variable, the ability to dynamically increase 7the overall database shared memory configuration (for example, to increase 7the size of buffer pools) will be limited.

7

On Linux, there is an additional 7requirement for the availability of the libcap.so library. 7 This library must be installed for this option to work. If this option is 7turned on, and the library is not on the system, DB2 UDB will disable the 7large kernel pages and continue to function as it would previously.

7

On Linux, to verify that large kernel pages are available, issue the following 7command:

7
      cat /proc/meminfo
7

If it is available, the following 7three lines should appear (with different numbers depending on the amount 7of memory configured on your machine):

7
      HugePages_Total:   200
7      HugePages_Free:    200
7      Hugepagesize:    16384 KB
7

If you do not see these lines, or 7if the HugePages_Total is 0, configuration of the operating system or kernel 7is required.

6 6 6

Change to default value for DB2_ENABLE_BUFPD registry variable

6

The default value for the DB2_ENABLE_BUFPD registry variable has been changed 6to ON.

7 7 7

DB2NTNOCACHE registry variable is deprecated

7

Functionality previously achieved through DB2NTNOCACHE can be achieved 7at the table space level by specifying the NO FILE SYSTEM CACHING clause on 7the CREATE TABLESPACE or the ALTER TABLESPACE statement. Refer to SQL Reference for details on usage. The DB2NTNOCACHE registry variable 7will be removed in a future release.

7 7 7

Explain tables and organization of explain information

7

Explain tables might be common to more than one user. However, the explain 7tables can be defined for one user, and aliases can be defined for each additional 7user using the same name to point to the defined tables. Alternatively, the 7explain tables can be defined under the SYSTOOLS schema. The Explain facility 7will default to the SYSTOOLS schema if no other explain tables or aliases 7are found under the user's session ID for dynamic SQL, or the statement authorization 7ID for static SQL. Each user sharing the common explain tables must have insert 7permission on those tables. Read permission for the common explain tables 7should also be limited, typically to users who analyze the explain information.

7 7 7

Guidelines for capturing explain information

7

Explain data is captured if you request it when an SQL statement is compiled. 7Consider how you expect to use the captured information when you request explain 7data.

7
7Capturing information in the explain tables 7
7 7 7

Additional return codes from db2CfgGet API, collate_info parameter

7

The collating information parameter can only be displayed using the db2CfgGet 7API. It cannot be displayed through the command line processor or the Control Center.

7
7
Configuration Type
7
Database 7
7
Parameter Type
7
Informational 7
7
7

This parameter provides 260 bytes of database collating information. The 7first 256 bytes specify the database collating sequence, where byte "n" contains 7the sort weight of the code point whose underlying decimal representation 7is "n" in the code page of the database.

7

The last 4 bytes contain internal information about the type of the collating 7sequence. The last 4 bytes of collate_info is an integer. The integer is sensitive 7to the endian order of the platform. The possible values are:

7 7

If you use this internal type information, you need to consider byte reversal 7when retrieving information for a database on a different platform.

7

You can specify the collating sequence at database creation time.

Administration: Planning

7 7 7

XA function supported by DB2 Universal Database

7

DB2 Universal Database (DB2 UDB) supports the XA91 specification 7defined in X/Open CAE Specification Distributed Transaction 7Processing: The XA Specification, with the following exceptions:

7 7 7
XA switch usage and location
7

As required by the XA interface, the database manager provides a db2xa_switch and a db2xa_switch_static external C variable of type 7xa_switch_t to return the XA switch structure to the TM. Other than 7the addresses of various XA functions, the following fields are returned:

7
7
Field
7
Value
7
name
7
The product name of the database manager. For example, DB2 for AIX. 7
7
flags
7
For db2xa_switch TMREGISTER | TMNOMIGRATE is set 7

Explicitly states that DB2 UDB uses dynamic registration, and that the TM 7should not use association migration. Implicitly states that asynchronous 7operation is not supported.

7

For db2xa_switch_static TMNOMIGRATE 7is set

7

Explicitly states that DB2 UDB uses dynamic registration, and 7that the TM should not use association migration. Implicitly states that 7asynchronous operation is not supported.

7
7
version
7
Must be zero. 7
7
7 7
Using the DB2 Universal Database XA switch
7

The XA architecture requires that a Resource Manager (RM) provide a switch that gives the XA Transaction Manager (TM) 7access to the RM's xa_ routines. An RM switch 7uses a structure called xa_switch_t. The switch contains the RM's name, 7non-NULL pointers to the RM's XA entry points, a flag, and a version number.

7 7
UNIX-based systems
7

DB2 UDB's switch can be obtained through either of the following two ways:

7 7

With either method, you must link your application with libdb2.

7 7
Windows NT
7

The pointer to the xa_switch structure, db2xa_switch, or db2xa_switch_static is exported as DLL data. This 7implies that a Windows NT application using this structure must reference 7it in one of three ways:

7 7

With any of these methods, you must link your application with db2api.lib.

7 7
Example C Code
7

The following code illustrates the different ways in which the db2xa_switch or db2xa_switch_static can be accessed via a C program 7on any DB2 UDB platform. Be sure to link your application with the appropriate 7library.

7
   #include <stdio.h>
7   #include <xa.h>
7
7   struct xa_switch_t * SQL_API_FN  db2xacic( );
7
7   #ifdef DECLSPEC_DEFN
7   extern __declspec(dllimport) struct xa_switch_t db2xa_switch;
7   #else
7   #define db2xa_switch (*db2xa_switch)
7   extern struct xa_switch_t db2xa_switch;
7   #endif

7
main( )
7   {
7      struct xa_switch_t *foo;
7      printf ( "%s \n", db2xa_switch.name );
7      foo = db2xacic();
7      printf ( "%s \n", foo->name );
7      return ;
7   }
7 7 7

Activating conversion tables for code pages 923 and 924

7

The following table contains a list of all the code page conversion table 7files that are associated with code pages 923 and 924. Each file is of the 7form XXXXYYYY.cnv or ibmZZZZZ.ucs, where XXXXX is the source code page number 7and YYYY is the target code page number. The file ibmZZZZZ.ucs supports 7conversion between code page ZZZZZ and Unicode.

7
7Procedure 7

To activate a particular code page conversion table, rename or copy that 7conversion table file to its new name as shown in the second column.

7

For example, to support the euro symbol when connecting a 8859-1/15 (Latin 71/9) client to a Windows 1252 database, you need to rename or copy the following 7code page conversion table files in the sqllib/conv/ directory:

7 7 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
Table 15. Conversion table files for code pages 923 and 924
923 and 924 conversion table files in the sqllib/conv/ 7directory New name
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
7 7 7

Conversion table files for euro-enabled code pages

7

The following tables list the conversion tables that have been enhanced 7to support the euro currency symbol. If you want to disable euro symbol support, 7download the conversion table file indicated in the column titled "Conversion 7table files".

7
7Arabic 7 777777777777777777777777777777777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
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, 17584 IBM00864.ucs
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, 17584 IBM01046.ucs
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, 17584 IBM01256.ucs
7
7Baltic 7 777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
921, 901 1257 09211257.cnv, 12570921.cnv, IBM00921.ucs
921, 901 1200, 1208, 13488, 17584 IBM00921.ucs
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, 17584 IBM01257.ucs
7
7Belarus 7 777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
1131, 849 1251, 5347 11311251.cnv, 12511131.cnv
1131, 849 1283 11311283.cnv
7
7Cyrillic 7 7777777777777777777777777777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
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, 17584 IBM01251.ucs
7
7Estonia 7 777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
922, 902 1257 09221257.cnv, 12570922.cnv, IBM00922.ucs
922, 902 1200, 1208, 13488, 17584 IBM00922.ucs
7
7Greek 7 777777777777777777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
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, 17584 IBM00813.ucs
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, 17584 IBM01253.ucs
7
7Hebrew 7 7777777777777777777777777777777777777777777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
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, 17584 IBM0856.ucs
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, 17584 IBM00862.ucs
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, 17584 IBM01255.ucs
7
7Latin-1 7 7777777777777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
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
7
7Latin-2 7 77777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
852, 9044 1250, 5346 08521250.cnv, 12500852.cnv
1250, 5346 852, 9044 12500852.cnv, 08521250.cnv, IBM01250.ucs
1250, 5346 1200, 1208, 13488, 17584 IBM01250.ucs
7
7Simplified Chinese 7 777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
837, 935, 1388 1200, 1208, 13488, 17584 1388ucs2.cnv
1386 1200, 1208, 13488, 17584 1386ucs2.cnv, ucs21386.cnv
7
7Traditional Chinese 7 77777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
937, 835, 1371 950, 1370 09370950.cnv, 0937ucs2.cnv
937, 835, 1371 1200, 1208, 13488, 17584 0937ucs2.cnv
1114, 5210 850, 858 11140850.cnv, 08501114.cnv
7
7Thailand 7 7777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
874, 1161 1200, 1208, 13488, 17584 IBM00874.ucs
7
7Turkish 7 77777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
857, 9049 1254, 5350 08571254.cnv, 12540857.cnv
1254, 5350 857, 9049 12540857.cnv, 08571254.cnv, IBM01254.ucs
1254, 5350 1200, 1208, 13488, 17584 IBM01254.ucs
7
7Ukraine 7 777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
1124 1251, 5347 11241251.cnv, 12511124.cnv
1125, 848 1251, 5347 11251251.cnv, 12511125.cnv
7
7Unicode 7 777777777777777777777777777777777777777777777777777777777777777777777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
1200, 1208, 13488, 17584 813, 4909 IBM00813.ucs
1200, 1208, 13488, 17584 862, 867 IBM00862.ucs
1200, 1208, 13488, 17584 864, 17248 IBM00864.ucs
1200, 1208, 13488, 17584 874, 1161 IBM00874.ucs
1200, 1208, 13488, 17584 921, 901 IBM00921.ucs
1200, 1208, 13488, 17584 922, 902 IBM00922.ucs
1200, 1208, 13488, 17584 1046, 9238 IBM01046.ucs
1200, 1208, 13488, 17584 1250, 5346 IBM01250.ucs
1200, 1208, 13488, 17584 1251, 5347 IBM01251.ucs
1200, 1208, 13488, 17584 1253, 5349 IBM01253.ucs
1200, 1208, 13488, 17584 1254, 5350 IBM01254.ucs
1200, 1208, 13488, 17584 1255, 5351 IBM01255.ucs
1200, 1208, 13488, 17584 1256, 5352 IBM01256.ucs
1200, 1208, 13488, 17584 1386 ucs21386.cnv, 1386ucs2.cnv
7
7Vietnamese 7 7777777777777777
Database server CCSIDs/CPGIDs Database client CCSIDs/CPGIDs Conversion table files
1258, 5354 1129, 1163 12581129.cnv

API Reference

7 7 7

New field for SQLEDBDESC structure

7

In the sqlecrea API, a new field has been added to support Direct I/O.

7
7
Field name
7
Unsigned char sqlfscaching 7
7
Description
7
File system caching 7
7
Values
7
7
7
0
7
File system caching is ON for the current table space 7
7
1
7
File system caching is OFF for the current table space 7
7
other
7
File system caching is ON for the current table space 7
7
7
7
7 7 7

Correction to new field in the SQLB-TBSPQRY-DATA structure

7

A new field, unsigned char fsCaching, has 7been added in the SQLB-TBSPQRY-DATA structure. This new field supports Direct 7I/O. Although the size of the reserved bit is documented as 32-bit, 7the correct size is 31-bit.

Application development: Building and Running Applications

7 7 7

Customizing precompile and bind options for SQL procedures

7

The precompile and bind options for SQL procedures can be customized by 7setting the instance-wide DB2 registry variable, DB2_SQLROUTINE_PREPOPTS with 7the command:

7
db2set DB2_SQLROUTINE_PREPOPTS=<options>
7

In addition to the options documented at Version 8.2, the REOPT option 7is allowed:

7
BLOCKING {UNAMBIG | ALL | NO}
7DATETIME {DEF | USA | EUR | ISO | JIS | LOC}
7DEGREE {1 | degree-of-parallelism | ANY}
7DYNAMICRULES {BIND | RUN}
7EXPLAIN {NO | YES | ALL}
7EXPLSNAP {NO | YES | ALL}
7FEDERATED {NO | YES}
7INSERT {DEF | BUF}
7ISOLATION {CS | RR | UR | RS | NC}
7QUERYOPT optimization-level
7REOPT {ALWAYS | NONE | ONCE}
7VALIDATE {RUN | BIND}
7 7 7

C/C++ compile option required (Linux on PowerPC 64-bit)

7

The compile option "-m64" is required for a 64-bit instance on DB2 UDB 7for Linux on PowerPC(R) for building DB2 C/C++ applications and routines.

7 7 7

Compile and link command for Micro Focus COBOL stored procedures (HP-UX)

7

The compile and link command shown in the DB2 UDB Version 8.2 documentation 7for building stored procedures using Micro Focus COBOL on HP-UX is incorrect. 7 The compile command contained in the actual script sqllib/samples/cobol_mf/bldrtn is correct. The compile and link commands 7are now combined into one single command, using the -y option to 7specify that the desired output is a shared library.

7 7 7

Minimum supported version of Micro Focus COBOL (HP-UX)

7

The minimum supported version of the Micro Focus COBOL compiler and run 7time on HP-UX is Micro Focus Server Express 2.2 - 7Service Pack 1 plus Fix Pack Fixpack22.02_14 7for HP-UX PA-RISC 11.x (32/64bit). This Fix Pack is available from the 7Micro Focus Support Line Web site at http://supportline.microfocus.com.

7 7 7

Setting environment variables for Micro Focus COBOL stored procedures 7(Windows)

7

In order to run Micro Focus COBOL external routines on Windows, it is necessary 7to ensure that the Micro Focus COBOL environment variables are permanently 7set as system variables.

7
7Procedure 7

To set environment variables to system variables:

7
    7
  1. Open the Control Panel
  2. 7
  3. Select System
  4. 7
  5. Select the Advanced tab
  6. 7
  7. Click Environment Variables
  8. 7
  9. Add the variables to the System variables list
7

Setting the environment variables in the User 7variables list, at a command prompt, or in a script is insufficient.

Application development: Call Level Interface (CLI)

7 7 7

MapBigintCDefault CLI/ODBC configuration keyword

7
7
Keyword description:
7
Specify the default C type of BIGINT columns and parameter markers. 7
7
db2cli.ini keyword syntax:
7
MapBigintCDefault = 0 | 1 | 2 7
7
Default setting:
7
The default C type representation for BIGINT data is SQL_C_BIGINT. 7
7
Usage notes:
7
  7
7
7

MapBigintCDefault controls the C type that is used when SQL_C_DEFAULT is 7specified for BIGINT columns and parameter markers. This keyword should be 7used primarily with Microsoft applications, such as Microsoft Access, which 7cannot handle 8-byte integers. Set MapBigintCDefault as follows:

7

This keyword affects the behavior of CLI functions where SQL_C_DEFAULT 7might be specified as a C type, such as SQLBindParameter(), SQLBindCol(), 7and SQLGetData().

7 7 7

DescribeOutputLevel CLI/ODBC configuration keyword

7
7
Keyword description:
7
Set the level of output column describe information that is requested 7by the CLI driver during prepare or describe requests. 7
7
db2cli.ini keyword syntax:
7
DescribeOutputLevel = 0 | 1 | 2 | 3 7
7
Default setting:
7
Request the describe information listed in level 2 of Table 16. 7
7
Usage notes:
7
  7
7
7

This keyword controls the amount of information the CLI driver requests 7on a prepare or describe request. By default, when the server receives a 7describe request, it returns the information contained in level 2 of Table 16 for the result set columns. An application, however, might 7not need all of this information or might need additional information. Setting 7the DescribeOutputLevel keyword to a level that suits the needs of the client 7application might improve performance because the describe data transferred 7between the client and server is limited to the minimum amount that the application 7requires. If the DescribeOutputLevel setting is set too low, it might impact 7the functionality of the application (depending on the application's requirements). 7 The CLI functions to retrieve the describe information might not fail in 7this case, but the information returned might be incomplete. Supported settings 7for DescribeOutputLevel are:

7 7

The following table lists the fields that form the describe information 7that the server returns when it receives a prepare or describe request. These 7fields are grouped into levels, and the DescribeOutputLevel CLI/ODBC configuration 7keyword controls which levels of describe information the CLI driver requests.

7 7
Note:
7
Not all levels of describe information are supported by all 7DB2 servers. All levels of describe information are supported on the following 7DB2 servers: DB2 for Linux, UNIX, and Windows Version 8 and later, DB2 for 7z/OS Version 8 and later, and DB2 for iSeries Version 5 Release 3 and later. 7 All other DB2 servers support only the 2 or 0 setting for DescribeOutputLevel.
7 77777777777777777
Table 16. Levels of describe information
Level 1 Level 2 Level 3
7
SQL_DESC_COUNT
7SQL_COLUMN_COUNT
7SQL_DESC_TYPE
7SQL_DESC_CONCISE_TYPE
7SQL_COLUMN_LENGTH
7SQL_DESC_OCTET_LENGTH
7SQL_DESC_LENGTH
7SQL_DESC_PRECISION
7SQL_COLUMN_PRECISION
7SQL_DESC_SCALE
7SQL_COLUMN_SCALE
7SQL_DESC_DISPLAY_SIZE
7SQL_DESC_NULLABLE
7SQL_COLUMN_NULLABLE
7SQL_DESC_UNSIGNED
7SQL_DESC_SEARCHABLE
7SQL_DESC_LITERAL_SUFFIX
7SQL_DESC_LITERAL_PREFIX
7SQL_DESC_CASE_SENSITIVE
7SQL_DESC_FIXED_PREC_SCALE
7
all fields of level 1 and:
7SQL_DESC_NAME
7SQL_DESC_LABEL
7SQL_COLUMN_NAME
7SQL_DESC_UNNAMED
7SQL_DESC_TYPE_NAME
7SQL_DESC_DISTINCT_TYPE
7SQL_DESC_REFERENCE_TYPE
7SQL_DESC_STRUCTURED_TYPE
7SQL_DESC_USER_TYPE
7SQL_DESC_LOCAL_TYPE_NAME
7SQL_DESC_USER_DEFINED_
7         TYPE_CODE
7
all fields of levels 1
7and 2 and:
7SQL_DESC_BASE_COLUMN_NAME
7SQL_DESC_UPDATABLE
7SQL_DESC_AUTO_UNIQUE_VALUE
7SQL_DESC_SCHEMA_NAME
7SQL_DESC_CATALOG_NAME
7SQL_DESC_TABLE_NAME
7SQL_DESC_BASE_TABLE_NAME

Application development: Programming Client Applications

7 7 7

db2secFreeToken function removed

7

The db2secFreeToken function (Free memory held by token) is no longer part 7of the db2secGssapiServerAuthFunctions_1 user authentication plug-in API.

7 7 7

Security plug-ins

7

If you are using your own customized security plug-in, you can use 7a user ID of up to 255 characters on a connect statement issued through the 7CLP or a dynamic SQL statement.

7 7 7

Security plug-in APIs

7

For the db2secGetGroupsForUser, db2secValidatePassword, and db2secGetAuthIDs 7APIs, the input parameter, dbname, can be null 7and its corresponding length input parameter, dbnamelen, will be set to 0.

7 7 7

Security plug-in naming conventions (UNIX, Linux)

7

.so is now accepted as a file name extension 7for user-written security plug-in libraries on all UNIX and Linux platforms.

7

On AIX, security plug-in libraries can have an extension of .a or .so. If both versions of the plug-in 7library exist, the .a version is used.

7

For HP-UX on PA-RISC, security plug-in libraries can 7have an extension of .sl or .so. If both versions of the plug-in library exist, the .sl version is used.

7

On all other UNIX and Linux platforms, .so is 7the only supported file name extension for security plug-in libraries.

7 7 7

Restrictions on security plug-in libraries

7

On AIX, security plug-in libraries can have a file name extension 7of .a or .so. The 7mechanism used to load the plug-in library depends on which extension 7is used:

7
7
Plug-in libraries with a file name extension of .a
7
Plug-in libraries with file name extensions of .a are assumed to be archives containing shared object members. These 7members must be named shr.o (32-bit) or shr64.o (64-bit). A single archive can contain 7both the 32-bit and 64-bit members, allowing it to be deployed 7on both types of platforms. 7

For example, to build a 32-bit archive 7style plug-in library:

7
  xlc_r -qmkshrobj -o shr.o MyPlugin.c -bE:MyPlugin.exp
7  ar rv MyPlugin.a shr.o
7
7
Plug-in libraries with a file name extension of .so
7
Plug-in libraries with file name extensions of .so are assumed to be dynamically loadable shared objects. Such an object 7is either 32-bit or 64-bit, depending on the compiler and linker 7options used when it was built. For example, to build a 32-bit plug-in 7library: 7
  xlc_r -qmkshrobj -o MyPlugin.so MyPlugin.c -bE:MyPlugin.exp
7
7
7

On all platforms other than AIX, security plug-in libraries are always 7assumed to be dynamically loadable shared objects.

7 7 7

Implicit ending of transactions in stand-alone applications

7

All application terminations (normal and abnormal) implicitly 7roll back outstanding units of work, regardless of operating system.

7 7 7

Rerouting DB2 Universal JDBC driver clients

7

The automatic client reroute feature in DB2 UDB for Linux, UNIX and Windows 7allows client applications to recover from a loss of communication with the 7server so that they can continue to work with minimal interruption.

7

Whenever a server locks up, each client that is connected to that server 7receives a communication error, which terminates the connection and results 7in an application error. When availability is important, you should have a 7redundant setup or failover support. Failover is the ability of a server to 7take over operations when another server fails. In either case, the DB2 Universal 7JDBC driver client attempts to reestablish the connection to a new server 7or to the original server, which might be running on a failover node. When 7the connection is reestablished, the application receives an SQL Exception 7that informs it of the transaction failure, but the application can continue 7with the next transaction.

7
7Restrictions 7

7
7
7Procedure 7

Specify the alternate server with the UPDATE ALTERNATE SERVER FOR DATABASE 7command.

7

After the database administrator specifies the alternate server location 7on a particular database at the server instance, the alternate server location 7is returned back to the client at connect time. If communication is lost, 7the DB2 Universal JDBC driver can reestablish the connection using the alternate 7server information that had been returned from the server.

7

The activeServerListJNDIName DataSource property provides additional client 7reroute support at the client. The activeServerListJNDIName property has two 7functions:

7 7

The activeServerListJNDIName property identifies a JNDI reference to a 7DB2ActiveServerList instance in a JNDI repository of alternate server information. 7After a successful connection to the primary server, the alternate server 7information that is provided by activeServerListJNDIName is overwritten by 7the information from the server.

7

Alternate server information received from the DB2 LUW server is stored 7in transient memory of the driver. If the JNDI store is defined, alternate 7server information is also updated there. The DB2 Universal JDBC driver attempts 7to propagate the updated information to the JNDI store after failover.

7

DB2ActiveServerList is a serializable Java bean with two properties: alternateServerName 7and alternatePortNumber. getXXX and setXXX methods are defined for each property. 7The Java bean is as follows:

7
package com.ibm.db2.jcc;
7public class DB2ActiveServerList implements java.io.Serializable,
7  javax.naming.Referenceable
7{
7  public String[] alternateServerName;
7  public synchronized void 
7    setAlternateServerName(String[] alternateServer);
7  public String[] getAlternateServerName();
7  public int[] alternatePortNumber;
7  public synchronized void 
7    setAlternatePortNumber(int[] alternatePortNumberList);
7  public int[] getAlternatePortNumber();
7}
7

A newly established failover connection is configured with the original 7DataSource properties, except for the server name and port number. In addition, 7any DB2 UDB special registers that were modified during the original connection 7are reestablished in the failover connection.

7

When a communication failure occurs, the DB2 Universal JDBC driver first 7attempts recovery to the original server. Reconnection to the original server 7is called failback. If failback fails, the driver attempts to connect to the 7alternate location (failover). After a failover or failback connection is 7reestablished, the driver throws a java.sql.SQLException to the application 7with SQLCODE -4498, which indicates to the application that a failover or 7failback occurred and the transaction failed. The application can then retry 7its transaction.

7
7Procedure for alternate server setup 7

Use JNDI to set up the alternate server, following these steps:

7
    7
  1. Set the environment for an initial context by creating a jndi.properties file. A sample jndi.properties file is: 7
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    7java.naming.provider.url=file:/tmp
  2. 7
  3. Add the directory that contains the jndi.properties file in the CLASSPATH.
  4. 7
  5. Create an instance of DB2ActiveServerList, and bind that instance to the 7JNDI registry. The following sample code creates an instance of DB2ActiveServerList 7and binds that instance to the JNDI registry: 7
    // Create a starting context for naming operations
    7InitialContext registry = new InitialContext();
    7// Create a DB2ActiveServerList object
    7DB2ActiveServerList address = new DB2ActiveServerList();
    7// Set the port number and server name for the alternate server
    7int[] portNumber = {50000};
    7String[] serverName = {"mvs3.sj.ibm.com"};
    7address.setAlternateServerName(serverName);
    7address.setAlternatePortNumber(portNumber);
    7// Bind the DB2ActiveServerList instance to the JNDI registry
    7registry.rebind("jdbc/alternate", address);
  6. 7
  7. Assign the logical name of the DB2ActiveServerList object, which contains 7the alternate server location information, to the activeServerListJNDIName 7property of the original DataSource. 7

    The following sample code assigns the 7logical name of the DB2ActiveServerList object to the activeServerListJNDIName 7property of the a DataSource instance named datasource:

    7
    datasource.setActiveServerListJNDIName("jdbc/alternate");
7 7 7

Customizing the DB2 Universal JDBC driver configuration properties

7

The DB2 Universal JDBC driver configuration properties let you set property 7values that have driver-wide scope. Those settings apply across applications 7and DataSource instances. You can change the settings without having to change 7application source code or DataSource characteristics.

7

Each DB2 Universal JDBC Driver configuration property setting is of the 7following form:

7
property=value
7

If the configuration property begins with db2.jcc.override, the configuration 7property is applicable to all connections and overrides any Connection or 7DataSource property with the same property name. If the configuration property 7begins with db2.jcc or db2.jcc.default, the configuration property value is 7a default. Connection or DataSource property settings override that value.

7
7Procedure 7

To set configuration properties:

7

7 7

You can set the following DB2 Universal JDBC Driver configuration properties. 7All properties are optional.

7
7
db2.jcc.override.traceFile
7
Enables the DB2 Universal JDBC Driver trace for Java driver code, and 7specifies the name on which the trace file names are based. 7

Specify a fully 7qualified file name for the db2.jcc.override.traceFile property value.

7

The db2.jcc.override.traceFile property overrides the traceFile property for 7a Connection or DataSource object.

7

For example, specifying the following 7setting for db2.jcc.override.traceFile enables tracing of the DB2 Universal 7JDBC Driver Java code to a file named /SYSTEM/tmp/jdbctrace:

7
db2.jcc.override.traceFile=/SYSTEM/tmp/jdbctrace

You should 7set the trace properties under the direction of IBM Software Support.

7
7
db2.jcc.sqljUncustomizedWarningOrException
7
Specifies the action that the DB2 Universal JDBC Driver takes when an 7uncustomized SQLJ application runs. db2.jcc.sqljUncustomizedWarningOrException 7can have the following values: 7
7
0
7
The DB2 Universal JDBC Driver does not generate a Warning or Exception 7when an uncustomized SQLJ application runs. This is the default. 7
7
1
7
The DB2 Universal JDBC Driver generates a Warning when an uncustomized 7SQLJ application runs. 7
7
2
7
The DB2 Universal JDBC Driver generates an Exception when an uncustomized 7SQLJ application runs. 7
7
7
7

Application development: Programming Server Applications

7 7 7

Common language run time (CLR) routine execution control modes (EXECUTION 7CONTROL clause)

7

As a database administrator or application developer, you might want to 7protect the assemblies associated with your DB2 external routines from unwelcome 7tampering by restricting the actions of routines at run time. DB2 .NET CLR 7routines support the specification of an execution control mode that identifies 7what types of actions a routine is allowed to perform at run time. At run 7time, DB2 UDB can detect if the routine attempts to perform actions beyond 7the scope of its specified execution control mode, which can be helpful when 7determining whether an assembly has been compromised.

7

To set the execution control mode of a CLR routine, specify the optional 7EXECUTION CONTROL clause in the CREATE statement for the routine. Valid modes 7are:

7 7

To modify the execution control mode in an existing CLR routine, execute 7the ALTER PROCEDURE or ALTER FUNCTION statement.

7

If the EXECUTION CONTROL clause is not specified for a CLR routine, by 7default the CLR routine runs using the most restrictive execution control 7mode, SAFE. Routines that are created with this execution control mode can 7only access resources that are controlled by the database manager. Less restrictive 7execution control modes allow a routine to access files on the local file 7system (FILEREAD or FILEWRITE) or on the network. The execution control mode 7UNSAFE specifies that no restrictions are to be placed on the behavior of 7the routine. Routines defined with UNSAFE execution control mode can execute 7binary code.

7

These control modes represent a hierarchy of allowable actions, and a higher-level 7mode includes the actions that are allowed below it in the hierarchy. For 7example, execution control mode NETWORK allows a routine to access files on 7the network, files on the local file system, and resources that are controlled 7by the database manager. Use the most restrictive execution control mode 7possible and avoid using the UNSAFE mode.

7

If DB2 UDB detects at run time that a CLR routine is attempting an action 7outside of the scope of its execution control mode, DB2 UDB returns an error 7(SQLSTATE 38501).

7

The EXECUTION CONTROL clause can only be specified for LANGUAGE CLR routines. 7The scope of applicability of the EXECUTION CONTROL clause is limited to the 7.NET CLR routine itself, and does not extend to any other routines that it 7might call.

7 7 7

Maximum decimal precision and scale in common language run time (CLR) 7routines

7

The DECIMAL data type in DB2 UDB is represented with a precision of 31 7digits and a scale of 28 digits. The .NET CLR System.Decimal data type is 7limited to a precision of 29 digits and a scale of 28 digits. Therefore, DB2 7UDB external CLR routines must not assign a value greater than (2^96)-1, 7the highest value that can be represented using a 29 digit precision and a 728 digit scale, to a System.Decimal data type variable. DB2 UDB raises a run 7time error (SQLSTATE 22003, SQLCODE -413) if such an assignment 7occurs.

7

When a routine CREATE statement is executed, if a DECIMAL data type parameter 7is defined with a scale greater than 28, DB2 UDB raises an error (SQLSTATE 742611, SQLCODE -604).

Command Reference

6 6 6

db2inidb - Initialize a mirrored database command

6

Do not issue the db2 connect to database command 6prior to issuing the db2inidb database as 6mirror command.

6

Attempting to connect to a split mirror database prior to initializing 6it erases the log files needed for roll forward recovery.

6

The connect sets your database back to the state it was in when you suspended 6the database. If the database is marked as consistent at the time of the suspend, 6DB2 UDB concludes there is no need for crash recovery and empties the logs 6for future use. If this situation occurs, attempting to rollforward causes 6a SQL4970 error.

7 7 7

Usage note for the db2iupdt command

7

Starting with version 8.2, when you update a DB2 UDB instance with the db2iupdt command, you must first stop any DB2 processes 7running against that instance.

7 7 7

db2pd - Monitor and troubleshoot DB2 command

7

Additional parameters for the db2pd command 7include:

7
7
-hadr
7
Reports High Availability Disaster Recovery information. Descriptions 7of each reported element can be found in the High availability disaster recovery 7section of the System Monitor Guide and Reference . 7
7
-utilities
7
Reports Utility information. Descriptions of each reported element 7can be found in the Utilities section of the System 7Monitor Guide and Reference . 7
7
7 7 7

New parameter for the db2sqljcustomize command

7

The db2sqljcustomize command has a new parameter.

7
7db2sqljcustomize - DB2 SQLJ Profile Customizer command 7

7
7
-storebindoptions
7
Stores the value of the -bindoptions and -staticpositioned values in the serialized profile. If these values are not specified 7when invoking the dbsqljbind tool, the values stored in the serialized profile 7are 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. 7
7
7 7 7

New parameter for the sqlj command

7

The sqlj command has a new parameter.

7
7sqlj - DB2 SQLJ Translator command 7

7
7
-db2optimize
7
Specifies that the SQLJ translator generates code for a connection context 7class that is optimized for DB2 UDB. This option optimizes the code for the 7user defined context but not for the default context. When you run the SQLJ 7translator with this option, the DB2 Universal JDBC Driver file db2jcc.jar must be in the CLASSPATH for compiling the generated Java 7application. 7
7
7 7 7

ATTACH command

7

The USER parameter of the ATTACH command specifies the authentication identifier. 7When attaching to a DB2 UDB instance on a Windows operating system, the user 7name can be specified in a format compatible with Microsoft Windows NT Security 7Account Manager (SAM). The qualifier must be a NetBIOS style name, which has 7a maximum length of 15 characters. For example, domainname\username.

7 7 7

RECOVER DATABASE command

7

In the Examples section of the RECOVER DATABASE Command for version 8.2 7documentation, timestamps are incorrectly formatted as yyyy:mm:dd:hh:mm:ss.

7

The correct format is yyyy-mm-dd-hh.mm.ss

7 7 7

UPDATE HISTORY FILE command

7
7

The UPDATE HISTORY FILE command updates the location, device type, comment, 7or status in a history file entry.

7
7Updated command syntax 7
Read syntax diagramSkip visual syntax diagram7>>-UPDATE HISTORY--+-FOR--object-part-+--WITH------------------->
7                   '-EID--eid---------'
7
7>--+-LOCATION--new-location--DEVICE TYPE--new-device-type-+----><
7   +-COMMENT--new-comment---------------------------------+
7   '-STATUS--new-status-----------------------------------'
7
7
7
7Updated command parameters 7
7
FOR object-part
7
Specifies the identifier for the history entry to be updated. It is 7a timestamp with an optional sequence number from 001 to 999. 7 7
Note:
7
Cannot be used to update entry status. To update 7the entry status, specify an EID instead.
7
7
STATUS new-status
7
Specifies a new status for an entry. Only backup entries can have their 7status updated. Valid values are: 7
7
A
7
Active. Most entries are active. 7
7
I
7
Inactive. Backup images that are no longer on the active log chain 7 become inactive. 7
7
E
7
Expired. Backup images that are no longer required because there are 7 more than NUM_DB_BACKUPS active images are flagged as expired. 7
7
D
7
Backup images that are no longer available for recovery should be marked 7as having been deleted. 7
7
7
7
7 7 7

db2updv8 - Update database to version 8 current level command

7

This command updates the system catalogs in a database to support the current 7level in the following ways:

7 7
7Authorization 7

sysadm

7
7Required connection 7

Database. This command automatically establishes a connection to the specified 7database.

7
7Command syntax 7
Read syntax diagramSkip visual syntax diagram7>>-db2updv8---d--database-name--+--------------------------+---->
7                                '--u--userid---p--password-'
7
7>--+----+------------------------------------------------------><
7   '--h-'
7
7
7
7Command parameters 7
7
-d database-name
7
Specifies the name of the database to be updated. 7
7
-u userid
7
Specifies the user ID. 7
7
-p password
7
Specifies the password for the user. 7
7
-h
7
Displays help information. When this option is specified, all other 7 options are ignored, and only the help information is displayed. 7
7
7
7Example 7

After installing the current level (a FixPak or a new version), update 7the system catalog in the sample database by issuing the following command: 7

7
db2updv8 -d sample
7
7Usage notes 7
    7
  1. This command can be used only on a database running DB2 Version 8.1.2 7or later. If the command is issued more than once, no errors are reported 7and each of the catalog updates is applied only once.
  2. 7
  3. To enable the new built-in functions, all applications must disconnect 7from the database and the database must be deactivated if it has been activated.

Data Recovery and High Availability

7 7 7

Cross-platform backup and restore support

7

DB2 UDB supports cross-platform backup and restore operations. You can 7restore databases created on a DB2 UDB Version 8 32-bit Windows platform to 7a DB2 UDB Version 8 64-bit Windows platform, or the reverse. You can restore 7databases created on a DB2 UDB Version 8 32-bit Linux x86 platform to a DB2 7UDB Version 8 64-bit Linux x86-64 or IA64 platform, or the reverse. You can 7restore databases created on DB2 UDB Version 8 AIX, HP-UX, Linux PPC, Linux 7zSeries, or the Solaris Operating Environment platforms, in 32-bit or 64-bit, 7to DB2 UDB Version 8 AIX, HP-UX, Linux PPC, Linux zSeries, or Solaris Operating 7Environment platforms (32-bit or 64-bit).

7 7 7

Backing up to tape (Linux)

7

The maximum block size limit for 3480 and 3490 tape devices on Linux is 761 440 bytes

7

7 7777777777777777777777777
Table 17. Maximum block size limit for 3480 and 3490 tape devices on Linux
Device Attachment Block Size Limit DB2 buffer size limit (in 4-KB pages)
3480 s370 61 440 15
3490 s370 61 440 15
7 7 7

Tivoli Storage Manager

7

When calling the BACKUP DATABASE or RESTORE DATABASE commands, you can 7specify that you want to use the Tivoli Storage Manager (TSM) product to 7manage database or table space backup or restore operation. The minimum required 7level of TSM client API is Version 4.2.0, except on the following:

77 7 7

Value restrictions for the HADR local host and local service parameters

7

When specifying values for the high availability disaster recovery (HADR) 7local host and local service parameters (HADR_LOCAL_SVC and HADR_REMOTE_SVC) 7while preparing an update database configuration command 7, the values must be ports that are not in use for any other service. If the 7parameters are being configured using the UNIX or Linux command line, the 7values should be also set in the /etc/services file.

7 7 7

Additional system requirements for high availability disaster recovery

7

If you create a table space on the primary database and log replay fails 7on the standby database because the containers are not available, the primary 7database does not receive an error message stating that the log replay failed.

7

To check for log replay errors, you must monitor the db2diag.log and the 7administration log on the standby database when you are creating new table 7spaces.

7

If a takeover operation occurs, the new table space that you created is 7not available on the new primary database. To recover from this situation, 7restore the table space on the new primary database from a backup image.

7

In the following example, table space MY_TABLESPACE is restored on database 7MY_DATABASE before it is used as the new primary database:

7
    7
  1. db2 connect to my_database
  2. 7
  3. db2 list tablespaces show detail 7 7
    Note:
    7
    Run the db2 list tablespaces show detail command to show the 7status of all table spaces and to obtain the table space ID number required 7for Step 5.
  4. 7
  5. db2 stop hadr on database my_database
  6. 7
  7. db2 "restore database my_database tablespace (my_tablespace) online 7redirect"
  8. 7
  9. db2 "set tablespace containers for my_tablespace_ID_# ignore rollforward 7container operations using (path '/my_new_container_path/')"
  10. 7
  11. db2 "restore database my_database continue"
  12. 7
  13. db2 rollforward database my_database to end of logs and stop tablespace 7"(my_tablespace)"
  14. 7
  15. db2 start hadr on database my_database as primary
7 7 7

Non-replicated operations for high availability disaster recovery

7

Version 8.2 documentation states:

7

BLOBs and CLOBs are not replicated; however, the space for them will be 7allocated on the standby database.

7

The statement should read as follows:

7

Non-logged BLOBs and CLOBs are not replicated; however, the space for them 7will be allocated on the standby database.

7 7 7

HADR does not support raw logs

7

High availability disaster recovery (HADR) does not support the use of 7raw I/O (direct disk access) for database log files. If HADR is started with 7the START HADR command, or if the database is restarted with HADR configured, 7and raw logs are detected, the associated command will fail with SQL1768N 7reason code "9".

Data Warehouse Center

6 6 6

Updates to the Business Intelligence tutorial

6
6Verifying that the DWCTBC and TBC_MD databases are registered 6with ODBC 6

In Version 8, the control database, TBC_MD that is used in the tutorial, 6does not need to be a system ODBC data source. However, the target database 6or database source DWCTBC must be a system ODBC data source.

6
6Opening the Define Warehouse Source notebook 6

The procedure for opening the Define Warehouse Source notebook for the 6Tutorial Relational Source has changed.

6
6Procedure 6

To open the Define Warehouse Source notebook for the Tutorial Relational 6Source:

6
    6
  1. From the Data Warehouse Center window, right-click the Warehouse Sources folder.
  2. 6
  3. Click Define --> ODBC --> DB2 --> DB2 Family.

The Define Warehouse Source notebook opens.

6
6Opening the Define Warehouse Target notebook 6

The procedure for opening the Define Warehouse Target notebook has changed.

6
6Procedure 6

To open the Define Warehouse Target notebook:

6
    6
  1. From the Data Warehouse Center window, right-click the Warehouse Targets folder.
  2. 6
  3. Click Define --> ODBC --> DB2 --> DB2 Family.

The Define Warehouse Target notebook opens.

6 6 6

Setting the purge limit for warehouse log files

6

The log file holds records until a designated count limit is reached. The 6default count limit is 1000 records. Typically, each job that you run creates 612 to 15 log records. Set the purge limit to a number that meets your needs 6by updating the Purge log when total records equal field on the Server tab of the Warehouse Properties page.

4 4 4

Data Warehouse Center support for CURSOR load

4

The DB2 UDB Load step now allows a view or a table to be used as the source 4to the step, resulting in a LOAD FROM CURSOR.

4

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 4must be selected.

7 7 7

Unicode warehouse control database migration and limitations

7

Starting with version 8.2 of the Data Warehouse Center, the warehouse control 7database must be a Unicode database. If you have a Unicode warehouse control 7database from a version of the Data Warehouse Center that is before Version 78.2, you still must create a new Unicode control database by using the Warehouse 7Control Database Management tool.

7

When you migrate a warehouse control database from a version of the Data 7Warehouse Center that is before Version 8.2, the Data Warehouse Center Control 7Database Management tool runs the db2move command 7to move the data to a new Unicode control database. During this process, 7windows appear that show the progress of the db2move command. This migration path only occurs once.

7

The Data Warehouse Center does not support Unicode on Sybase servers.

7 7 7

Change in date format for Modified column

7

In the details view of the main Data Warehouse Center window, the format 7of the date in the Modified column has been 7updated. The date in the Modified column is 7displayed in the format MM/DD/YYYY and includes the time. For example, 06/17/2003 2:47:15 PM. This change in the date format ensures that sorting 7objects on the Modified column functions properly. 7This update applies to most lists of Data Warehouse Center objects that are 7shown in the Navigator and Details views, such as:

77 7 7

Defining statistical transformers in the Data Warehouse Center

7

To perform a statistical transformation of your data, define the statistical 7transformer that you want to use.

7
7Procedure 7

To define statistical transformers:

7
    7
  1. Open the Process Model window.
  2. 7
  3. Click the transformer icon and select a transformer from the list of available 7transformers.
  4. 7
  5. Link the transformer that you selected to a warehouse source and warehouse 7target as required by the rules for that transformer.

Each transformer has specific rules for how it must be linked to a warehouse 7source and warehouse target. See the documentation for each transformer for 7more information.

7 7 7

Prerequisite for the iSeries warehouse agent

7

To use an iSeries warehouse agent for DB2 Warehouse Manager on V5R2 and 7V5R3 systems, the following PTF is required:

7
PTF SI13558

This database 7PTF enables the CLI on iSeries to handle Unicode data.

DB2 .NET Data Provider

7 7 7

DB2Connection.ConnectionString property

7

There is an additional keyword for the DB2Connection.ConnectionString property:

7
7
CurrentSchema
7
The schema to be used after a successful connection. Upon a successful 7connection, a SET CURRENT SCHEMA statement is sent to the DB2 server. This 7allows the application to name SQL objects without having to qualify them 7by a schema name. 7
7

DB2 Connect

7 7 7

New security scenario

7

A new security scenario has been added for APPC connections:

7
7
Authentication
7
GSSPLUGIN 7
7
Security
7
none 7
7
Validation
7
GSS API security plugin mechanism 7
7
7 7 7

Corrections to diagrams

7

The following DB2 Connect Enterprise Edition topics have diagrams that 7are incorrect:

7 7

The following table outlines corrections for diagrams in the "Accessing 7host or iSeries DB2 data using DB2 Connect Enterprise Edition" topic.

7 7777777777777777777
Table 18. Corrections for diagrams in the "Accessing host or iSeries DB2 data using DB2 Connect Enterprise Edition" topic
Location within the topic Correction
Legend for all four diagrams 7
    7
  • References to "DB2 for OS/390 V5R1" should be "DB2 for OS/390 V6 or later".
  • 7
  • References to "DB2 for AS/400(R) V4R2" should be "DB2 for iSeries V5R1 or 7later".
First diagram (Figure 1: DB2 Connect Enterprise Edition) All references to "APPC" and "SNA Communications Support" 7are incorrect. SNA/APPC is not supported as an inbound protocol for the DB2 7Runtime Client by DB2 Linux, Unix, and Windows servers, including DB2 Connect 7Enterprise Edition.
7

The following table outlines corrections for diagrams in the "Accessing 7DB2 data from the Web using Java" topic.

7 777777777777777
Table 19. Corrections for diagrams in the "Accessing DB2 data from the Web using Java" topic
Location within the topic Correction
Legend 7
    7
  • References to "DB2 for OS/390 V5R1" should be "DB2 for OS/390 V6 or later".
  • 7
  • References to "DB2 for AS/400 V4R2" should be "DB2 for iSeries V5R1 or 7later".

Development Center

7 7 7

Restrictions to DB2 Universal type 2 and type 4 drivers

7

In Version 8.2, support was added to allow users to connect to a DB2 UDB 7database from within the Development Center using the DB2 Universal Type 72 and Type 4 drivers. However, if you attempt to use one of these drivers 7to connect to an iSeries server, or to a DB2 UDB server that is Version 8.1 7or earlier, you will see the following error message:

7
Connection to <database> failed. 
7IBM DB2 Universal driver (JCC) not found.

Refer to the topic titled 7"JDBC drivers" in the DB2 Information Center for additional information on 7which drivers to use in order to avoid this error.

GUI Tools

7 7 7

Database unavailable status in the database details pane of the Control 7Center

7

You can use the Control Center's details pane to view information about 7your databases. Selecting a database in the object tree or contents pane displays 7a summary of its state. In certain situations database information might be 7unavailable. Some reasons for this unavailability are described in the following 7table.

7 7777777777777777777777777777777
Table 20. Reasons for a database status of unavailable
Database status element Possible reasons for unavailable status
Last backup 7
    7
  • No backups have been performed for the database.
  • 7
  • User does not have the required authority to access this information.
Size 7
    7
  • Database is pre-Version 8.2.
  • 7
  • User does not have the required authority to access this information.
Capacity 7
    7
  • Database is pre-Version 8.2.
  • 7
  • Database has multiple partitions.
  • 7
  • User does not have the required authority to access this information.
Health 7
    7
  • Health monitor is not turned on.
  • 7
  • Timing delay. There is approximately a 5 minute delay from the time a 7database is activated until its health status is available.
Maintenance 7
    7
  • Database is pre-Version 8.2.
7 7 7

Default write to table output generation (Create Event Monitor)

7

A Generate button has been added to the 7Output options dialog, which is launched from the Create Event Monitor window. 7Clicking the Generate button generates the default write to table output option. This output is equivalent to the syntax 7generated by the db2evtbl command.

7

The generated option shows the user which tables and data elements will 7be included when the event monitor is created. Users can modify the command 7to suit their needs.

7

The generated syntax is based on the event monitor name and event types 7specified in the Create Event Monitor window. Specify the event monitor name 7and event types before generating the output option syntax.

7

If the event monitor name or event types change after the generation of 7the output option, a message displays to remind the user to regenerate the 7output option before creating the event monitor. If the output option is not 7regenerated, event tables will be generated based on the event monitor name 7that was previously specified.

Information Catalog Center

7 7 7

Configuration sample scripts

7

The ICCConfig.jacl and ICCConfig.properties sample scripts are provided with the Information 7Catalog Center for the Web with the DB2 Embedded Application Server. You can 7use these sample scripts to configure the Information Catalog Center for the 7Web with WebSphere Application Server 5. These scripts are located in the sqllib\samples\icweb directory.

7 7 7

Web server configuration

7

When configuring the Information Catalog Center for the Web with the DB2 7Embedded Application Server, if your metadata contains URLs that access files 7on the server, you must map the URLs to the correct location by using aliases 7in the Web server configuration. You must also map the help and copyright 7links. If you use the DB2 Embedded Application Server, a Web server must be 7configured correctly and running for these links to work even though you don't 7need to plug in to a Web server.

Installation and Configuration Supplement

7 7 7

Application server for DB2

7

The application server for DB2 no longer supports remote administration 7or stored procedures.

7

The updated topics are as follows:

7 7
Enabling the application server for DB2
7

Enabling the database does the following:

7 7
7Procedure 7

To enable the application server for DB2 , perform the following:

7
    7
  1. Log on to the DB2 server as root on UNIX 7operating systems, or as a user with Administrator privileges on Windows operating systems.
  2. 7
  3. For UNIX-based operating systems run the following command: 7
       . /db2instance_path/sqllib/db2profile 
    where db2instance_path is where the DB2 instance was created.
  4. 7
  5. Run one the following commands: 7
      7
    • For UNIX operating systems: 7
         AppServer_install_path/bin/enable.sh 
      7         -db db_alias 
      7         -user db_user 
      7         -password db_password 
      7         -db2path path_to_sqllib 
      7         -instance instance_name
      7         -easpath path_to_eas
      7         -fencedid fenced_userid
    • 7
    • For Windows operating systems: 7
         AppServer_install_path\bin\enable 
      7         -db db_alias 
      7         -user db_user 
      7         -password db_password 
      7         -db2path path_to_sqllib 
      7         -instance instance_name
      7         -easpath path_to_eas
      
    where: 7
      7
    • db_alias is the alias of the database to 7be enabled.
    • 7
    • db_user is the user id to use when connecting 7to the database.
    • 7
    • db_password is the password to use with the 7user id connecting to the database.
    • 7
    • path_to_sqllib is the path to the DB2 instance 7SQLLIB directory. This path is used to update DB2EAS with the required JAR 7files.
    • 7
    • instance_name is the name of a DB2 instance.
    • 7
    • path_to_eas is the path to the embedded application 7server.
    • 7
    • fenced_userid is the user id for the fenced 7user.
7

Once the application server for DB2 is enabled, the application server 7is started automatically.

7 7
Starting the application server for DB2 locally
7

The application server should be started using the fenced user ID for systems 7creating web services in a .NET environment or running XML Metadata Registry 7(XMR) only.

7 7
Starting the application server for DB2 remotely
7

This section is removed. The application server for DB2 no longer supports 7remote administration.

7 7
Stopping the application server for DB2 locally
7

The application server should be stopped using the fenced user ID for systems 7creating web services in a .NET environment or running XML Metadata Registry 7(XMR) only.

7 7
Stopping the application server for DB2 remotely
7

This section is removed. The application server for DB2 no longer supports 7remote administration.

7 7
Uninstalling the application server for DB2
7

This section is removed. The application server for DB2 no longer supports 7remote administration.

7 7 7

DB2 Embedded Application Server enablement

7

The enabled database of a DB2 Embedded Application Server must be located 7in a 32-bit instance Any databases accessed from the DB2 Embedded Application 7Server can be located in 32-bit or 64-bit instances.

7 7 7

Deploying DB2 Web Tools

7

Application servers using JDK 1.4 no longer require customization of the 7CLASSPATH variable during DB2 Web Tools deployment. All dependencies, including 7those for XML parser and transformer, are now deployed with the web module 7and are expected to be loaded from the WEB-INF\lib directory according to the J2EE specification. This change affects two 7information topics:

7

The updated topics are as follows:

7 7
Deploying DB2 Web Tools on WebLogic application servers
7

This task describes how to deploy and configure DB2 Web Tools (including 7the Web Command Center and the Web Health Center) on BEA WebLogic 7.0. These 7tools run as Web applications on a Web server to provide access to DB2 servers 7through Web browsers.

7
7Prerequisites 7

Before you install DB2 Web Tools on WebSphere, ensure that you have:

7
7
7Restrictions 7

The following restrictions apply to the DB2 Web Tools deployment:

7
7
7Procedure 7

To install DB2 Web Tools on WebLogic application servers:

7
    7
  1. Deploy the DB2 Web Tools through the WebLogic administrative console by 7completing the following: 7
      7
    1. Start the WebLogic administrative console.
    2. 7
    3. Click domain -> deployments -> Web Applications in 7the left pane of the window.
    4. 7
    5. Click the Configure a new Web Application link 7to install DB2 Web Tools Web application.
    6. 7
    7. Browse the listing of the file system to locate Sqllib\tools\web\db2wa.war.
    8. 7
    9. Click on select beside the db2wa.war file name.
    10. 7
    11. Choose a server from the list of available servers to house DB2 Web Tools, 7select the server and click the arrow to move the server to target servers. 7 7
      Note:
      7
      Preserving the original name db2wa is 7mandatory, as DB2 Web Tools has it hardcoded.
    12. 7
    13. Click Configure and Deploy.
    14. 7
    15. Wait until the application server refreshes the deployment status of the 7Web application on the selected server. If successful, it should show Deployed=true
  2. 7
  3. Invoke the DB2 Web Tools Web application, which is located at: 7
    http://server_name:app_server_port_number/db2wa
    For example, http://server_name:7001/db2wa.
7 7
Deploying DB2 Web Tools on other application servers
7

This task describes how to deploy and configure DB2 Web Tools (including 7the Web Command Center and the Web Health Center) on other application servers 7such as Tomcat 4.0 and Macromedia JRun 4.0. These tools run as Web applications 7on a Web server to provide access to DB2 servers through Web browsers.

7
7Prerequisites 7

Before you install DB2 Web Tools, ensure that you have:

7
7
7Restrictions 7

The following restrictions apply to the DB2 Web Tools deployment:

7
7
7Procedure 7

The following are the procedures for installing DB2 Web Tools using application 7servers such as Tomcat 4.0 or Macromedia JRun 4.0:

7
7
Tomcat 4.0
7
7
    7
  1. Prepare the Tomcat 4.0 configuration file (CLASSPATH) by completing the 7following: 7
      7
    1. Create a new environment/system variable CATALINA_HOME to contain the path (root directory) to Tomcat 4.0. For example, D:\jakarta-tomcat-4.0.3. 7 7
      Note:
      7
      This step is not mandatory on 7Windows operating systems, however, step c depends 7on this value having been set or the original path used.
    2. 7
    3. Confirm that the Tomcat Servlet/JSP Container is functional: 7
        7
      1. Start Tomcat by running startup.bat from 7Tomcat's bin directory.
      2. 7
      3. Access the main Web page http://localhost:8080/ through a Web browser.
  2. 7
  3. Deploy the DB2 Web Tools into the Tomcat Servlet/JSP Container by locating 7the DB2 Web Tools install path (i.e. Sqllib\tools\web\db2wa.war) and copying db2wa.war into Tomcat's 7deployment directory (i.e. Tomcat's webapps directory).
  4. 7
  5. Invoke DB2 Web Tools on Tomcat Servlet/JSP Container by completing the 7following: 7
      7
    1. Open a DB2 Command Window and change the directory to Tomcat's bin directory.
    2. 7
    3. Start Tomcat using startup.bat and confirm 7that a new directory (db2wa) has been added 7into the webapps directory. 7 7
      Note:
      7
      Running startup.bat from a command prompt window 7would not set DB2PATH. In order to enable DB2PATH being set, the CLASSPATH 7line needs to be changed to explicitly reference the DB2 installation path 7rather than the %DB2PATH% environment variable.
    4. 7
    5. The DB2 Web Tools enterprise application is located at http://localhost:8080/db2wa and can be accessed with an HTML 4.0 compliant 7Web browser.
7
7
JRun
7
7
    7
  1. Prepare a new application server for DB2 Web Tools by completing the following 7tasks: 7
    7Recommendation 7

    Creating a new application server is recommended, but not mandatory. For 7testing purposes, the default server can be used, and only the configuration 7of the JVM classpath and the deployment is required.

    7
      7
    1. Start the JRun Management Console and login as the administrator of the 7application server.
    2. 7
    3. Create a new application server using Create 7New Server located at the top right of the main page. Do not change the 7host name selection from localhost.
    4. 7
    5. Enter the new server name (DB2WebToolsServer) and click the JRun Server Directory. The value is automatically filled 7in.
    6. 7
    7. Click the Create Server button.
    8. 7
    9. Record the generated values or enter new values for: 7
        7
      • JNDI Provider URL
      • 7
      • Web Server Port Number. This would be the value to be used in the URL 7for the DB2 Web Tools (i.e. http://localhost:web_server_port_numer/db2wa)
      • 7
      • Web Connector Proxy Port Number
    10. 7
    11. Click update port numbers if necessary 7and close the window.
  2. 7
  3. Deploy DB2 Web Tools on the JRun application server by completing the 7following tasks: 7
      7
    1. Start the application server selected to host DB2 Web Tools Web application 7(DB2WebToolsServer, default or any other except admin).
    2. 7
    3. Click Web Applications and then click Add.
    4. 7
    5. Browse the Deployment File section to select 7the Sqllib\tools\web\db2wa.war file in the DB2 7installation path.
    6. 7
    7. Click Deploy and confirm that the context 7path is /db2wa.
    8. 7
    9. Select the application server and confirm that the DB2 Web Tools application 7appears in the Web Applications section. Do not click Apply on 7this page.
    10. 7
    11. Select the Home link from the upper left 7panel of the main page.
    12. 7
    13. 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 7accessed with an HTML 4.0 compliant Web browser. 7
7
7 7 7

Direct I/O on block devices (Linux)

7

Direct I/O is now supported on both file systems and block devices for 7distributions of Linux with a 2.6 kernel. Direct I/O on block devices is an 7alternative way to specify device containers for direct disk access or for 7raw I/O. The performance of Direct I/O is equivalent to the raw character 7device method. DB2 UDB enables Direct I/O while opening the table space when 7the CREATE TABLESPACE statement specifies a block device name for the container 7path. Previously, the same performance was achieved using the raw I/O method, 7which required binding the block device to a character device using the raw utility.

7

7 777777777777777
Table 21. Comparison of direct I/O and raw I/O
Direct I/O (new method) Raw I/O (old method)
7
CREATE TABLESPACE dms1
7MANAGED BY DATABASE
7USING (DEVICE '/dev/sda5' 11170736)
7
CREATE TABLESPACE dms1
7MANAGED BY DATABASE 
7USING (DEVICE '/dev/raw/raw1' 11170736)
7

Although the raw I/O method is still supported by DB2 UDB, it has been 7deprecated and support for it might be removed from future kernels.

7
7Recommendation 7

If you want to exploit direct disk access, create your DMS device containers 7using Direct I/O to avoid future migration issues.

7

7 7
Note:
7
Direct I/O is not supported by DB2 UDB on Linux/390.
7 7 7

DB2 Information Center daemon (Linux, UNIX)

7

The DB2 Information Center daemon is responsible for the control of the 7DB2 documentation server. The daemon, which is part of the DB2 Information 7Center installation, is composed of two files:

7

These files are installed in the following locations:

7
7
AIX
7
/etc/db2icd 7

/var/db2/v81/db2ic.conf

7
7
HP
7
/sbin/init.d/db2icd 7

/var/opt/db2/v81/db2ic.conf

7
7
Solaris Operating Environment
7
/etc/init.d/db2icd 7

/var/db2/v81/db2ic.conf

7
7
Linux
7
/etc/init.d/db2icd 7

/var/db2/v81/db2ic.conf

7
7
7 7
Starting or stopping the Information Center daemon (AIX, Solaris Operating 7Environment, HP, Linux)
7

The only time you should need to start or stop the daemon manually is when 7you want to change the configuration variables for the daemon. Normally, the 7daemon is started at system startup, according to the run levels created during 7the installation of the DB2 Information Center.

7
7Procedure 7

To stop and start the Information Center daemon:

7
    7
  1. Halt the daemon if it is already running. At a command line, enter: 7
    INIT_DIR/db2icd stop
    where INIT_DIR is the installation directory of the db2icd file 7listed previously.
  2. 7
  3. Change any of the variables for the daemon by editing the db2ic.conf file. Currently, you can modify the TCP port number where the documentation 7is available, and the location of the temporary workspace used by the daemon 7while it is running.
  4. 7
  5. Start the daemon. At a command line, enter: 7
    INIT_DIR/db2icd start
    where INIT_DIR is 7the installation directory of the db2icd file listed previously.

When the daemon starts, it uses the new environment variables.

7

There is also an option to shut down and restart the daemon immediately. 7At a command line, enter:

7
INIT_DIR/db2icd restart

where INIT_DIR is the installation directory 7of the db2icd file listed previously.

7

You can check the status of the daemon at any time. At a command line, 7enter:

7
INIT_DIR/db2icd status

where INIT_DIR is the installation directory of the db2icd 7file listed previously. The daemon returns the current status, and displays 7the ID of the daemon process or processes if it is active.

7 7 7

Response file installation error codes

7

The following error code is for Windows only and is not applicable to UNIX 7and Linux operating systems.

7
7
3010
7
The installation is successful, however a system restart is required 7to complete the installation. 7
7
7 7 7

Required user accounts for installation of DB2 servers (Windows)

7
7
Increase quotas
7
The Increase quotas user right has been 7changed to Adjust memory quotas for a process on 7the Windows XP and Windows Server 2003 operating systems. 7
7
User rights granted by the DB2 installer - Debug Programs
7
The DB2 installation program does not grant the Debug Programs user 7right. The DB2 installer grants the following user rights: 7 7
7
7 7 7

Asynchronous I/O support (Linux)

7

Asynchronous I/O (AIO) support is now available on Linux (2.6 and some 72.4 kernels) for raw devices and O_DIRECT file systems. AIO improves page 7cleaner performance. You can enable or disable AIO on Linux by issuing the db2set command.

7

To use AIO, users must install libaio-0.3.98 or later and have a kernel 7that supports AIO. Users must also run the db2set DB2LINUXAIO=true command and restart DB2 UDB.

Message Reference

ADM message updates

7 7 7
ADM12504E
7

The description for message ADM12504E incorrectly implies that the instance 7name on the primary database should match the instance name on the standby 7database.

7
7
ADM12504E
7
Unable to establish HADR primary-standby connection because the DB2 7instance names do not match. Correct the HADR_REMOTE_INST configuration 7parameter. 7
7
7

It is not a HADR requirement for the instance name on the primary to match 7the instance name on the standby.

CLP message updates

7 7 7
DB21015E
7

The Command Line Processor backend process request queue or input queue 7was not created within the timeout period.

7
7
Explanation
7
Either the values for the DB2BQTRY and DB2BQTIME environment variables 7need to be increased or the command line processor back-end program "db2bp" 7cannot be started. The "db2bp" program must reside in the correct database 7manager install path and users must have execute permission on the file. 7 7

On UNIX platforms, ensure that the file system has enough file blocks 7and inodes.

7
7
User Response
7
Correct the error and resubmit the command. 7
7
5 5 5

DBI message updates

5 5
DBI1060E
5

Invalid package name <"pkg-name">

5

5
5
Explanation:
5
An incorrect name has been entered. The package either does not exist 5or the name has been entered incorrectly. 5
5
User Response:
5
Check to see if the name of the given package exists on the distribution 5media. If so, examine the name to see if it has been misspelled. All package 5names should be in lowercase. 5
5

SQL message additions

7 7 7
SQL0121N
7

The target name "<name>" is specified more than once for assignment 7in the same SQL statement.

7
7
Explanation
7
The same target name "<name>" is specified more than once as an 7 OUT or INOUT argument of a CALL statement, or in the list of columns of an 7 INSERT statement, the left hand side of assignments in the SET clause of 7an UPDATE statement, or the left hand side of the assignment statement. The 7 target name identifies a column, SQL parameter, SQL variable, or new transition 7variable. 7

Note that this error may occur when updating or inserting into 7a view where more than one column of the view is based on the same column 7of a base table.

7

The statement cannot be processed.

7
7
User Response
7
Correct the syntax of the statement so each name is specified only once. 7 7

sqlcode : -121

7
7
7 7 7
SQL0270N
7

Function not supported (Reason code = "<reason-code>")

7

7
7
Explanation
7
74 Updating a status field in the recovery history file by timestamp 7is not allowed. 7
7
User Response
7
74 Update the status field in the recovery history file by EID only. 7
7
7

7
7
Explanation
7
75 Automatic statistics collection is not supported on a multiple 7database partition system, on a system where SMP is enabled, or on a federated 7system. 7
7
User Response
7
75 Disable automatic statistics collection for this database by setting 7the database configuration parameters AUTO_STATS_PROF and AUTO_PROF_UPD to 7OFF. 7

Or change the system to one that is on a single database partition, 7where SMP is not enabled, and that is not federated.

7
7
7 7 7
SQL0494W
7

The number of result sets is greater than the number of locators.

7

7
7
Explanation
7
The number of result set locators specified on the ASSOCIATE LOCATORS 7statement is less than the number of result sets returned by the stored procedure. 7The first "n" result set locator values are returned, where "n" is the number 7of result set locator variables specified on the SQL statement. 7

The SQL 7statement is successful.

7
7
User Response
7
Increase the number of result set locator variables specified on the 7SQL statement. 7
7
7

sqlcode : +494

7

sqlstate : 01614

7 7 7
SQL1227N
7
7
Explanation:
7
7
7
Reason code 4
7
Buffer size entries of PAGE_FETCH_PAIRS must be ascending in value. 7Also, for 32-bit instances, any buffer size value in a PAGE_FETCH_PAIRS entry 7cannot be greater than the number of pages in the table or 524287, whichever 7is lower. For 64-bit instances, any buffer size value in a PAGE_FETCH_PAIRS 7entry cannot be greater than the number of pages in the table or 2147483674. 7
7
7
7
7 7 7
SQL1768N
7

Unable to start HADR. Reason code = "<reason-code>"

7

7
7
Explanation:
7
9 The database is configured to use raw logs. 7
7
User Response:
7
9 Reconfigure the database to use only file system storage for the 7log files, instead of using raw i/o (direct disk access) devices. Refer to 7the discussion of the logpath and newlogpath database configuration parameters in Administration Guide: Performance. 7
7
7 7 7
SQL1790W
7

A default table space could not be found with a page size of at least 7"<page size>".

7

7
7
Explanation
7
The procedure NNSTAT was not able to create the SYSPROC.FED_STATS table 7to keep a history of the statement that was run. The table space with sufficient 7page size (at least "<pagesize>") could not be found. 7
7
User Response
7
Ensure that a table space with a page size of at least "<pagesize>" 7exists. 7
7
7

sqlcode: +1790

7

sqlstate: 01670

7 7 7
SQL1791N
7

The specified server definition, schema, or nickname object-name does not 7exist.

7

7
7
Explanation
7
The procedure NNSTAT accepts a server definition, schema, and nickname 7as input and one or more of these objects, including object-name, could not 7be found. 7
7
User Response
7
Specify an existing server definition, schema, or nickname and resubmit 7the statement. 7
7
7

sqlcode: -1791

7

sqlstate: 42704

7 7 7
SQL2316W
7

The Runstats command string for the statistics profile has exceeded the 7maximum size. The Runstats command string will be truncated to the maximum 7size and stored in the catalog table SYSIBM.SYSTABLE.

7

7
7
Explanation
7
The maximum size of the STATISTICS_PROFILE column is 32768 bytes. If 7the size of the Runstats command string for the statistics profile is greater 7than this amount, the Runstats command string is truncated to the maximum 7size. 7

The utility continues processing.

7
7
User Response
7
Refer to the STATISTICS_PROFILE column in the catalog table SYSIBM.SYSTABLES 7to review the statistics profile. If the existing statistics profile is not 7desired, reissue the RUNSTATS utility and specify the UPDATE PROFILE or the 7UPDATE PROFILE ONLY option to modify the profile. Refer to the RUNSTATS utility 7documentation for information about the utility options. 7
7
7 7 7
SQL3705N
7

The buffer size parameter specified is not valid. The buffer size must 7be specified as 0 or be between 8 and 250000 inclusive. For multiple buffers, 7the total buffer size must not exceed 250000.

7 7 7
SQL20290N
7

The SQL statement references routine "<routine-name>" (specific name 7"<specific-name>") which cannot be run on partition "<partition-number>".

7

7
7
Explanation
7
The routine "<routine-name>" (specific name "<specific-name>") 7was called with an invalid partition number "<partition-number>". 7
7
User Response
7
Specify -1 for the partition number parameter to run the routine on 7the current partition. 7
7
7

sqlcode: -20290

7

sqlstate: 560CA

7 7 7
SQL22025N
7

An invalid input argument was specified for the reorgchk stored procedure.

7

7
7
Explanation
7
Only 'T' and 'S' are supported for the first argument of the stored 7procedure. If 'T' is specified as the first argument, the second argument 7to the stored procedure must be a fully qualified table name as <schema.table-name>. 7
7
User Response
7
Resubmit with valid input arguments. 7
7
7 7 7
SQL27994W
7

The length of a special register default column is smaller than the target 7column length. Load may truncate the values corresponding to this column 7(<column-num>).

7

7
7
Explanation
7
The clause SESSION_USER, CURRENT_USER, SYSTEM_USER, or CURRENT_SCHEMA 7has been specified for column "<column-num>", but this column was either 7defined with a length that is less than 128 bytes (SESSION_USER only) or 7the column-value inserted into this column may exceed the target length after 7codepage conversion. Load may truncate the column-value. 7
7
User Response
7
If your system standards would not allow a user ID (SESSION_USER) to 7exceed the length of the column, then this warning may be ignored. To prevent 7this warning from occurring, the length of the column must be at least 128 7bytes. If codepage conversion resulted in the growth of this register default 7column, increase the length of the column to accommodate the growth. 7
7

Query Patroller

5 5 5

Create Explain tables before running Query Patroller historical data 5generator

5

When running the historical data generator for Query Patroller, if the 5Explain tables do not already exist, the generator will create them for you. 5However, it is strongly recommended that you create the Explain tables before 5running the historical data generator. When you create the Explain tables 5be sure you create them on the same partition. Actively creating the Explain 5tables on the same partition improves the performance of the Explain facility. 5This improvement increases the performance of the historical data generator.

5 5 5

Checking Query Patroller log files for historical analysis

5

If the Explain Run column of the Query Activity 5over Time (Historical Analysis) report shows a status of Ran unsuccessfully for a query, historical data has not been generated 5for that query. Therefore, the query will not appear in any historical analysis 5reports or graphs. As documented in version 8, to determine why the query 5was unsuccessful, you can examine the qpuser.log file.

5

In addition to examining the qpuser.log file, you should examine the qpdiag.log 5file.

6 6 6

Abnormal shutdown of the historical data generator

6

If you run the historical data generator and shut it down in an abnormal 6way, you will receive an error the next time you attempt to run the historical 6data generator. Examples of abnormal shutdown include:

6 6

When the historical data generator shuts down abnormally, you must issue 6the following command before attempting to rerun the historical data generator:

6
    qp -d database generate historical_data stop

where database identifies the database that the command 6is being run against.

6 6 6

Dynamic query class updates

6

Certain query class operations no longer require Query Patroller to be 6stopped and restarted to take effect.

6

In the table that follows, an active query is a query whose status is Running 6or Queued.

6 666666666666666666666666666
Table 22. Conditions for query class changes to take effect
Nature of change Conditions for change to take effect
Addition, removal, or update of a query class. If there are no active queries, changes take effect 6immediately.
An update to a query class that involves only a change 6to the Maximum number of queries. Takes effect immediately, even if there are active queries.
An update to a query class that involves only a change 6to the Maximum cost of a query. If there are active queries, the update takes effect 6when either: 6
    6
  • Query Patroller is stopped and restarted.
  • 6
  • There are no more active queries.
6 6
Note:
6
When there is a change pending against Maximum cost of a query, subsequent query class updates of any kind will 6not take effect until one of the two previous conditions is met.
Addition or removal of a query class. If there are active queries, the addition or removal 6takes effect when either: 6
    6
  • Query Patroller is stopped and restarted.
  • 6
  • There are no more active queries.
6 6 6

Nested query behavior

6

Nested queries cannot be queued. Instead, a nested query will run immediately 6if it exceeds a threshold that would normally cause it to be queued.

6 6 6

Limitations by SQL statement type

6

Contrary to previous documentation, the queries with the following statements 6can be queued:

67 7 7

Resolution limitation when using the Terminal Services Client

7

When using the Terminal Services Client at resolution 640x480 to connect 7to a remote desktop that is running the Query Patroller Center, the Submission 7Preferences window might appear blank. For the Submission Preferences window 7to display properly, you must use a resolution higher than 640x480.

7 7 7

New group support for query submissions

7

Starting in version 8.2, DB2 UDB supports user groups beyond operating 7system groups. Therefore, there is a slight change in the Submitter Profile to Use drop-down list in the Query Submission Preferences 7window of the Query Patroller Center.

7

If you are logged in, but do not have either DBADM authority or Edit privilege 7for Query Patroller user administration, you can only add or update a submission 7preference for yourself. In this case, the Submitter 7Profile to Use drop-down list contains existing submitter profiles of 7the DB2 UDB groups that you belong to, instead of just the operating system 7groups that you belong to.

7

If you are logged in, and have either DBADM authority or Edit privilege 7for Query Patroller user administration, you can add or update submission 7preferences for other users. In this case, the Submitter Profile to Use drop-down list contains all existing group submitter 7profiles.

7 7 7

Query Patroller schedule limitations

7

When working with schedules in the Query Patroller Center, you can use 7the Schedule window to save schedules to a file and import them later. If 7you have a schedule that you saved using FixPak 6 or earlier, you cannot import 7the schedule using version 8.2 or later. This limitation is due to the change 7in serialization between JDK levels introduced with DB2 UDB version 8.2.

7 7 7

Authorization required to use RUN IN BACKGROUND QUERY command

7

To run the RUN IN BACKGROUND QUERY command, you must be the submitter who 7submitted the query originally.

7 7 7

Creating an alias for a result table

7

As of Query Patroller Version 8.1 FixPak 5, Query Patroller stopped creating 7result tables in the schema that matched the authorization ID of the submitter 7of the query. Instead, Query Patroller started creating result tables in a 7common DB2QPRT schema. To allow result tables to be referenced using the schema 7of the submitter, Query Patroller Version 8.2 introduces an option to automatically 7create an alias for each new result table that Query Patroller creates. The 7result table is created in the DB2QPRT schema and the alias is created in 7a schema that matches the submitter's authorization ID.

7

To turn this option on or off, issue the UPDATE QP_SYSTEM command with 7the CREATE_RESULT_TABLE_ALIASES option:

7

7
Read syntax diagramSkip visual syntax diagram7>>-UPDATE QP_SYSTEM USING--------------------------------------->
7
7>--+-DEFAULT------------------------------+--------------------><
7   '-CREATE_RESULT_TABLE_ALIASES--+-'Y'-+-'
7                                  '-'N'-'
7
7 7 7
Removing orphaned result table aliases
7

Aliases created with CREATE_RESULT_TABLE_ALIASES option are automatically 7dropped when a result table is dropped. However, there are two situations 7in which a result table may be dropped without the corresponding alias being 7dropped.

7 7

To clean up aliases that have no corresponding result tables, a new command, 7REMOVE RESULT_TABLE_ALIASES, has been created. This command is automatically 7executed whenever result tables are purged as part of the Query Patroller 7scheduled result table purging process. The REMOVE RESULT_TABLE_ALIASES command 7obtains the list of aliases to purge using the following query:

7
7with a as (select tabschema, tabname from syscat.tables 
7           where type = 'A' and tabname like 'QUERY%_RESULTS'), 
7     t as (select tabname from syscat.tables 
7           where type = 'T' and tabname like 'QUERY%_RESULTS')
7  select all tabschema, tabname from a 
7  where not exists (select * from t where t.tabname=a.tabname)
7
7Prerequisites 7

You must have DBADM authority.

7
7Procedure 7

7
    7
  1. Issue the REMOVE RESULT_TABLE_ALIASES command

This command removes all aliases that exist after having their corresponding 7result tables dropped. The aliases were originally created by Query Patroller 7for result tables.

7
7Command syntax 7

7
Read syntax diagramSkip visual syntax diagram7>>-REMOVE RESULT_TABLE_ALIASES---------------------------------><
7
7

7

7 7
Note:
7
For information about entering Query Patroller commands 7using the command line interface, and general syntax for Query Patroller commands, 7see the Query Patroller command line interface.

Quick Beginnings

7 7 7

Verifying that your databases are ready for migration

7

The following prerequisites section is documented in the 8.2 version of 7the topic that explains how to verify that your databases are ready for migration:

7
7
Prerequisites
7
Ensure that the migration.log file, found in the instance owner's home 7directory, contains the following text: Version of DB2CKMIG being run: VERSION 78. 7
7
7

This prerequisite is in fact a post-migration step performed at the end 7of the procedure.

7 7 7

Common Criteria certification for DB2 UDB

7

The authoritative information for DB2 UDB configurations that have been 7certified for Common Criteria can be found at http://niap.nist.gov/cc-scheme

Spatial Extender

7 7 7

Verifying the Spatial Extender installation

7

The runGseDemo sample program can be used to become familiar with application 7programming for DB2 Spatial Extender. For a description of the steps that 7the sample program takes to create a spatially-enabled database and perform 7spatial analysis on data in that database, refer to the topic titled "The 7DB2 Spatial Extender sample program". This topic is in the Information Center 7and the Spatial Extender and Geodetic Extender User's 7Guide and Reference.

7

DB2 Spatial Extender provides another sample program, seBankDemoRunBankDemo, 7that demonstrates how to add spatial capabilities to an existing information 7system.

7

For more information about both sample programs, see the README files in 7the following directories:

7

7
7
Windows
7
7
~\sqllib\samples\spatial
7~\sqllib\samples\spatial\bank
7
7
Linux and UNIX
7
7
~/sqllib/spatial
7~/sqllib/spatial/bank
7
7

SQL Administrative Routines

7 7 7

Column expansion for snapshot UDFs

7

The size of some VARCHAR and CLOB columns in snapshot UDFs have changed 7to match the maximum database object name standards.

7

7 77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
Table 23. Expanded columns for UDFs
UDF
Column name Existing column definition Updated column definition
SYSFUN.SQLCACHE_SNAPSHOT
DB_NAME VARCHAR(8) VARCHAR(128)
STMT_TEXT CLOB(64K) CLOB(16M)
SNAPSHOT_APPL_INFO
APPL_NAME VARCHAR(255) VARCHAR(256)
APPL_ID VARCHAR(32) VARCHAR(128)
AUTH_ID VARCHAR(30) VARCHAR(128)
CLIENT_NNAME VARCHAR(20) VARCHAR(128)
CLIENT_PRDID VARCHAR(20) VARCHAR(128)
INPUT_DB_ALIAS VARCHAR(20) VARCHAR(128)
CLIENT_DB_ALIAS VARCHAR(20) VARCHAR(128)
DB_NAME VARCHAR(8) VARCHAR(128)
DB_PATH VARCHAR(256) VARCHAR(1024)
EXECUTION_ID VARCHAR(20) VARCHAR(128)
CORR_TOKEN VARCHAR(32) VARCHAR(128)
TPMON_CLIENT_USERID VARCHAR(20) VARCHAR(256)
TPMON_CLIENT_WKSTN VARCHAR(20) VARCHAR(256)
TPMON_CLIENT_APP VARCHAR(20) VARCHAR(256)
TPMON_ACC_STR VARCHAR(100) VARCHAR(200)
SNAPSHOT_STATEMENT
CURSOR_NAME VARCHAR(31) VARCHAR(128)
CREATOR VARCHAR(32) VARCHAR(128)
PACKAGE_NAME VARCHAR(20) VARCHAR(128)
STMT_TEXT CLOB(64K) CLOB(16M)
SNAPSHOT_LOCKWAIT
TABLE_NAME VARCHAR(35) VARCHAR(128)
TABLE_SCHEMA VARCHAR(32) VARCHAR(128)
APPL_ID_HOLDING_LK VARCHAR(32) VARCHAR(128)
SNAPSHOT_DATABASE
INPUT_DB_ALIAS VARCHAR(8) VARCHAR(128)
DB_NAME VARCHAR(8) VARCHAR(128)
DB_PATH VARCHAR(256) VARCHAR(1024)
SNAPSHOT_BP
BP_NAME VARCHAR(20) VARCHAR(128)
DB_NAME VARCHAR(8) VARCHAR(128)
INPUT_DB_ALIAS VARCHAR(8) VARCHAR(128)
DB_PATH VARCHAR(256) VARCHAR(1024)
SNAPSHOT_LOCK
TABLE_NAME VARCHAR(35) VARCHAR(128)
TABLE_SCHEMA VARCHAR(32) VARCHAR(128)
SNAPSHOT_TABLE
TABLE_NAME VARCHAR(35) VARCHAR(128)
TABLE_SCHEMA VARCHAR(32) VARCHAR(128)
SNAPSHOT_TBREORG
TABLE_NAME VARCHAR(35) VARCHAR(128)
TABLE_SCHEMA VARCHAR(32) VARCHAR(128)
SNAPSHOT_SUBSECT
STMT_TEXT CLOB(64K) CLOB(16M)
SNAPSHOT_DYN_SQL
STMT_TEXT CLOB(64K) CLOB(16M)
HEALTH_DBM_INFO
SERVER_INSTANCE_NAME VARCHAR(8) VARCHAR(128)
HEALTH_DBM_HI
SERVER_INSTANCE_NAME VARCHAR(8) VARCHAR(128)
HEALTH_DBM_HI_HIS
SERVER_INSTANCE_NAME VARCHAR(8) VARCHAR(128)
HEALTH_DB_INFO
DB_NAME VARCHAR(8) VARCHAR(128)
INPUT_DB_ALIAS VARCHAR(8) VARCHAR(128)
DB_PATH VARCHAR(256) VARCHAR(1024)
HEALTH_DB_HI
DB_NAME VARCHAR(8) VARCHAR(128)
HEALTH_DB_HI_HIS
DB_NAME VARCHAR(8) VARCHAR(128)
HEALTH_DB_HIC
DB_NAME VARCHAR(8) VARCHAR(128)
HEALTH_DB_HIC_HIS
DB_NAME VARCHAR(8) VARCHAR(128)
7 7
Note:
7
The definition of STMT_TEXT for the SNAPSHOT_DYN_SQL, 7SNAPSHOT_STATEMENT, SNAPSHOT_SUBSECT, and SQLCACHE_SNAPSHOT routines has 7expanded to CLOB(16M) to allow for future expansion only. Actual output of 7the statement text data will continue to be truncated at 64K.

SQL Reference

7 7 7

CONNECT statement

7

When connecting to Windows Server explicitly, the TO authorization-name or the USER host-variable can be specified using the Microsoft Windows NT Security Account Manager 7(SAM)-compatible name. The qualifier must be a NetBIOS style name, which has 7a maximum length of 15 characters. For example, 'Domain\User'.

7 7 7

Schema used by the Explain facility

7

The Explain facility uses the following IDs as the schema to use in qualifying 7the explain tables to populate:

7

The schema can be associated with a set of explain tables, or aliases 7that point to a set of explain tables under a different schema.

7

If no explain tables are found under the schema, the Explain facility checks 7for explain tables under the SYSTOOLS schema and attempts to use them.

String representations of datetime values

Time strings

A string representation of a time is a string that starts with a digit and has a length of at least 4 characters. Trailing blanks may be included; a leading zero may be omitted from the hour part of the time, and seconds may be omitted entirely. If seconds are omitted, an implicit specification of 0 seconds is assumed. Thus, 13:30 is equivalent to 13:30:00.

Valid string formats for times are listed in the following table. Each format is identified by name and associated abbreviation.

Table 24. Formats for String Representations of Times
Format Name Abbreviation Time Format Example
International Standards Organization2 ISO hh.mm.ss 13.30.05
IBM USA standard USA hh:mm AM or PM 1:30 PM
IBM European standard EUR hh.mm.ss 13.30.05
Japanese Industrial Standard Christian Era JIS hh:mm:ss 13:30:05
Site-defined LOC Depends on the territory code of the application -

7Starting with Version 8.2, "AM" and "PM" can 7be represented in lowercase or uppercase.

System monitor

7 7 7

Decoupled applications list without connection concentrator enabled

7

It is possible to see decoupled applications when issuing the list applications command even without connection concentrator enabled.

7 7 7

Progress monitoring of the run time rollback process

7

Progress monitoring of run time rollback provides progress information 7of rollback events using application snapshots. Rollback events are of two 7types:

7
7
Unit of work rollback
7
Includes explicit (user invoked) and implicit (forced) rollback of the 7entire transaction. 7
7
Savepoint rollback
7
Includes statement and application level savepoints. Nested savepoints 7are considered a single unit, using the outermost savepoint. 7
7
7

The information provided is the start time of the rollback event, the total 7work to be done, and completed work. The work metric is bytes.

7

Total Work units is the range in the log stream that needs to be rolled 7back for the transaction or savepoint.

7

Completed Work units shows the relative position in the log stream that 7has been rolled back.

7

Updates to Completed Work are made after every log record is processed. 7 Updates are not performed evenly because log records vary in size.

7
7Sample output from GET SNAPSHOT FOR ALL APPLICATIONS command 7

7
            Application Snapshot
7
7Application handle         = 6
7Application status         = Rollback Active
7      Start Time           = 02/20/2004 12:49:27.713720
7      Completed Work       = 1024000 bytes
7      Total Work           = 4084000 bytes
7
7            Application Snapshot
7
7Application handle         = 10
7Application status         = Rollback to Savepoint
7      Start Time           = 02/20/2004 12:49:32.832410
7      Completed Work       = 102400 bytes
7      Total Work           = 2048000 bytes
7 7
Note:
7
If rollback is not active during a snapshot, then rollback 7elements will not be displayed.

XML Extender

7 7 7

Configuring MQ XML UDFs with XML Extender

7

You must configure and enable MQ XML user-defined functions (UDFs) 7before you can use them.

7
7Prerequisites 7

Install the UDFs by following the procedure in the "Installing DB2 WebSphere 7MQ functions" topic, which is found either in the Information Center or the IBM DB2 Information Integrator Application Developer's 7Guide.

7
7Procedure 7

To configure and enable MQ XML UDFs with XML Extender:

7
    7
  1. Open a DB2 command prompt window.
  2. 7
  3. Connect to the database that will use the MQ XML UDFs by entering the 7following command: 7
    db2 connect to <database>
  4. 7
  5. Change to the bnd directory within the path where you installed 7DB2, such as: 7
      7
    • SQLLIB/bnd (Linux, UNIX)
    • 7
    • C:\Program Files\IBM\SQLLIB\bnd (Windows)
  6. 7
  7. Bind the database to XML Extender using the following command: 7
    db2 bind @dbxxbind.lst
  8. 7
  9. Bind the database for XML Extender to use the MQ XML UDFs using the following 7command: 7
    db2 bind mqxml.bnd
  10. 7
  11. Bind the database to the CLI using the following command: 7
    db2 bind @db2cli.lst
7 7 7

XML Extender environment variable DB2DXX_MIN_TMPFILE_SIZE

7

DB2 XML Extender can place large documents in temporary files to avoid 7using a great amount of memory during processing. On systems with large amounts 7of physical memory, you can avoid moving documents to temporary files, reducing 7the amount of Input/Output activity. The environment variable DB2DXX_MIN_TMPFILE_SIZE 7instructs XML Extender to use memory buffers, instead of temporary files, 7 for processing documents smaller than the specified value. The variable 7is applicable only on the server. If multiple physical nodes participate 7in a partitioned environment, the variable can be set differently on each 7node, accurately reflecting the amount of memory installed on each computer. 7If the environment variable is not set, documents larger than 128 KB will 7automatically be placed into temporary files during processing. Documents 7smaller than 128 KB will be processed in memory.

7 7 7

DB2XML.XMLVarchar UDT redefinition

7

You can redefine the user-defined type (UDT) DB2XML.XMLVarchar up to 32 7KB. To change the size of an XMLVarchar UDT, create the UDT before you enable 7the database for XML Extender.

7

For more information, see DB2 XML Extender Administration 7and Programming.

[ Top of Page |Previous Page | Next Page | Contents ]