My Oracle Support Banner

SYS.DBMS_XMLQUERY Package Body Invalid After Upgrade 11.2.0.3 (Doc ID 1572407.1)

Last updated on JANUARY 21, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

SYS.DBMS_XMLQUERY package body invalid after upgrade 11.2.0.3

After the upgrade to 11.2.0.3, this package body is invalid and won't validate.

select owner, object_name, object_type from dba_objects where status = 'INVALID' and owner not in ('SAPBP0SHD', 'SAPBP0');

OWNER OBJECT_NAME OBJECT_TYPE
------------------------------ ---------------------------------------- -------------------
SYS DBMS_XMLQUERY PACKAGE BODY

On view ALL_ERRORS:

SQL> select owner, name, text, message_number from all_errors where owner='SYS';

OWNER NAME TEXT
------ -------------- --------------------------------------------------------------------------------
SYS DBMS_XMLQUERY PLS-00593: default value of parameter "METATYPE" in body must match that of spec

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.