PPADB2 Explain with XMLTABLE Function Fails with SQL -206
book
Article ID: 103031
calendar_today
Updated On:
Products
CA Bind Analyzer for DB2 for z/OSCA DetectorCA SQL-Ease for DB2 for z/OSCA Sysview Performance Management Option for DB2 for z/OSCA Database Detector for DB2 for z/OSCA Plan Analyzer for DB2 for z/OSCA Subsystem Analyzer for DB2 for z/OS
Issue/Introduction
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.
Environment
Release: Component: PPADB2
Resolution
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.