My Oracle Support Banner

NVL Function Not Working Through Oracle Database Gateway For Drda - DG4DRDA - On iOS DB2 - AS400 (Doc ID 1341620.1)

Last updated on SEPTEMBER 20, 2021

Applies to:

Oracle Database Gateway for DRDA - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

The Oracle Gateway for DRDA (DG4DRDA) 11.2 has been configured to connect to a DB2/400 database. All supported SQL functions work with the exception of the NVL function. There is no error but data is returned without applying the function. For example:

SQL> SELECT nvl(trim(col1), '~') from  dg4db2 .table_name@dg4drda ;
NVL(TRIM(COL1),'~')
----------------------------------------
GROUP0001
REPORT0001

GROUP0001



The same query executed using Oracle Transparent Gateway for DB2400 (TG4DB2400) 10.2 returns the correct result -

SQL> SELECT nvl(trim(col1), '~') from dg4db2 .table_name@tg4db2400 ;
NVL(TRIM(COL1),'~')
----------------------------------------
GROUP0001
REPORT0001
~
GROUP0001



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.