Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to load into XMLTYPE column--ORA-21700

mh379860lyJul 4 2011 — edited Jul 9 2011
HI Gentlemen,

I have a nice schema-based table and want to insert into it. However, I always get ORA-21700. Which object is marked for delete? I did not mark anything.
SQL> @createIcdTable

Tabelle wurde gelöscht.


Tabelle wurde erstellt.

SQL> describe icd
 Name                                      Null?    Typ
 ----------------------------------------- -------- ----------------------------
 ID                                                 CHAR(2)
 XML_DOCUMENT                                       SYS.XMLTYPE(XMLSchema "ICD/i
                                                    cd_root.xsd" Element "ehd") 
                                                    STORAGE Object-relational TY
                                                    PE "ICD$ICD_ROOT_TYP"
And here is the load script:
SQL> @loadxmlfileascolumn_int
Geben Sie einen Wert für source_directory ein: c:\gks\kbv\c\icd\xml
alt   1: create or replace directory SOURCE_DIR as '&source_directory'
neu   1: create or replace directory SOURCE_DIR as 'c:\gks\kbv\c\icd\xml'

Verzeichnis wurde erstellt.

Geben Sie einen Wert für xmltypetable ein: icd
alt   4:   INSERT INTO &XMLTypeTable
neu   4:   INSERT INTO icd
Geben Sie einen Wert für id ein: 01
Geben Sie einen Wert für instancedocument ein: test.xml
alt   5:     VALUES (&id, XMLType(bfilename('SOURCE_DIR', '&InstanceDocument'),
neu   5:     VALUES (01, XMLType(bfilename('SOURCE_DIR', 'test.xml'),
declare
*
FEHLER in Zeile 1:
ORA-21700: Objekt nicht vorhanden oder zum Löschen markiert 
ORA-06512: in Zeile 4 


SQL> spool off
Could anybody help me how to circumvent this? Or a bug again?

Thanks, regards

Miklos HERBOLY

Edited by: mh**** on Jul 4, 2011 10:31 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2011
Added on Jul 4 2011
6 comments
739 views