PPADB2 Explain with XMLTABLE Function Fails with SQL -206

Document ID : KB000103031
Last Modified Date : 20/07/2018
Show Technical Document Details
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. 

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.