home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC93537 Status: Closed

CREATE FUNCTION FAILS WITH SQL0109 WHEN QUERY INCLUDES "WITH UR"

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
The create function statement fails with a SQL0109 error when  a 
"With UR" clause is included in a query in the function body.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* SQL Routine Users                                            * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 9.7 Fix Pack 9                                * 
****************************************************************
Local Fix:
The function will create successfully with the "WITH UR" clause 
removed.  The special register Current Isolation can then be set 
to UR using the command  "set current isolation ur"  Once the 
register is set the function should compile using the new 
isolation level.  For additional information on the Current 
Isolation special register please see the following URL. 
 
http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2 
Fcom.ibm.db2.luw.sql.ref.doc%2Fdoc%2Fr0010945.html 
 
For details on the "SET CURRENT ISOLATION" command please see 
this URL. 
 
http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2 
Fcom.ibm.db2.luw.sql.ref.doc%2Fdoc%2Fr0010944.html
available fix packs:
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
First Fixed in DB2 LUW 9.7 Fix Pack 9, the Fix Pack should be 
applied to to server.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.06.2013
06.01.2014
06.01.2014
Problem solved at the following versions (IBM BugInfos)
9.7.FP9,
9.7.FP9
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.9 FixList
9.7.0.9 FixList