OCI-31159: XML DB is in an invalid state Cause: XML DB's internal tables are in an invalid state, probably because the database was not upgraded or the upgrade was not successful Action: Ensure that the database is upgraded successfully. If the problem persists, contact Oracle Support