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

DB2 MIGHT PRODUCE SQL0901N ERROR MESSAGE WHEN EXECUTING LEFT JOIN QUERY ON
TABLE WITH RCAC

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
Under rare scenarios DB2 might produce SQL0901N if the
following conditions are true:
1) One or more tables in the query have Row and Column Access
Control (RCAC) declared on them
2) One or more of the columns on which a RCAC mask is declared
are marked as not nullable
3) The table(s) are referenced in the null-producing side of a
left outer join

Example:
create Table T2(key varchar(8) not null, c1 int);
CREATE MASK MASK_KEY ON T2 FOR COLUMN "KEY" RETURN case when
VERIFY_ROLE_FOR_USER(SESSION_USER,'CONFIDENTIAL')=1  THEN KEY
else 'xxxxxxxx' END  ENABLE;

select * from T1 left join T2 on t1.c1 = t2.c1;

SQL0901N  The SQL statement or command failed because of a
database system
error. (Reason "unexpected type".)  SQLSTATE=58004


sqlns_qgs
sqlnq_compile_fgac
sqlnq_apply_column_level_access_control
sqlnq_apply_column_read_level_access_control
sqlnq_identify_mask_location
sqlnq_fun_tres
sqlnq_fun_res_walk
sqlnq_encap_doit
sqlnq_encap_cast_rtn
sqlnq_encap_cast_check_char_len
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to DB2 10.1 Fix Pack 5                               *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : IT01954 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
06.03.2017
03.05.2017
03.05.2017
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)