My Oracle Support Banner

Getting ORA-31159 on the XMLTYPE Call, When XDB is Not Installed (Doc ID 1622373.1)

Last updated on JUNE 12, 2021

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


When attempting to run the below pl/sql statement -

the following error occurs.

ORA-31159: XML DB is in an invalid state
ORA-06512: at "SYS.XMLTYPE", line 272.

The XML document starts with

'<ProductConfiguration xmlns:xsi="" xsi:noNamespaceSchemaLocation="file://...../xmlschema.xsd">

XDB is not installed in this database, and this is the only XML documents which is raising this error




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

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