Plan Analyzer explain with XMLTABLE function fails with SQL -206
search cancel

Plan Analyzer explain with XMLTABLE function fails with SQL -206

book

Article ID: 103031

calendar_today

Updated On:

Products

Plan Analyzer for DB2 for z/OS

Issue/Introduction

When executing an explain on a package with XML data, Plan Analyzer for Db2 for z/OS (PPA) 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 is not overridden.

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 = (xxxxxxxx,OVERRIDE).  To do so, go through the explain options, update SQL qualifiers
and specify SQL Qualifier ID and SQL QUALIFIER Override with Y.