search cancel

PPADB2 Explain with XMLTABLE Function Fails with SQL -206


Article ID: 103031


Updated On:


Bind Analyzer for DB2 for z/OS SQL-Ease for DB2 for z/OS SYSVIEW Performance Management Option for DB2 for z/OS Plan Analyzer for DB2 for z/OS Subsystem Analyzer for DB2 for z/OS


When running Explain on a package with XML data ,Plan Analyzer uses the qualifier of the package to qualify the tables and also the table resulting in the XMLTABLE function. This is causing a SQLCODE=-206 on the result of XMLTABLE function when the qualifier isn't override. 



Component: PPADB2


The PPA explain by default uses the qualifier from the bound package to qualify any unqualified objects in the SQL, but one can override the catalog SQL qualifier by supplying this explain card: SQLQUAL = (XXXXXXX,OVERRIDE).  To do so, go through the explain options, update SQL qualifiers and specify SQL Qualifier ID and SQL QUALIFIER Override with Y.