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 IT07500 Status: Closed

NULL AS CHAR(0) IS PUSHDOWN TO ORACLE FROM DB2 WHICH CAUSES ERROR
ORA-01723: ZERO-LENGTH COLUMNS ARE NOT ALLOWED

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
If user is federating Oracle from db2 then db2 may generate NULL 
AS CHAR(0) and push it down to oracle where its not supported. 
 
To test this user may issues below query: 
db2 "select replace ('we are here', 'are', '') from dual 
 
below replace query is generated and pushdown to oracle where 
NULL AS CHAR(0) is not supported: 
REPLACE(:H0 , :H1 , CAST(NULL AS CHAR(0))) 
 which causes below error : 
"ORA-01723: zero-length columns are not allowed "
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 fp5                                           * 
****************************************************************
Local Fix:
Solution
Fixed in DB2 10.1 fp 5
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
04.03.2015
13.07.2015
13.07.2015
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.5 FixList