ORA-904 when Shrinking Space of a XMLTYPE column (Doc ID 1610886.1)

Last updated on DECEMBER 29, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Information in this document applies to any platform.

Symptoms

Unable to shrink XMLTYPE column , fails with ORA-00904: error.

SQL> desc APPS_ACTIVITY_XML
 Name Null? Type
 ----------------------------------------- -------- ----------------------------
 RECID NOT NULL VARCHAR2(255)
 XMLRECORD SYS.XMLTYPE


SQL> ALTER TABLE APPS_ACTIVITY_XML enable row movement;

Table altered.

SQL> ALTER TABLE FBNK_ACCT_ACTIVITY_BKXML SHRINK SPACE CASCADE;

Table altered.

SQL> ALTER TABLE APPS_ACTIVITY_XML MODIFY LOB(XMLRECORD)(SHRINK SPACE);

Table altered.

SQL> ALTER TABLE APPS_ACTIVITY_XML MODIFY LOB(XMLRECORD)(SHRINK SPACE);
ALTER TABLE APPS_ACTIVITY_XML MODIFY LOB(XMLRECORD)(SHRINK SPACE)
  *
ERROR at line 1:
ORA-00904: "XMLRECORD": invalid identifier

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms