简体   繁体   中英

How to modify registered XML schema for XMLTYPE in Oracle

Initially i had an XML schema and created a table with reference to that XML schema.

Now i want to add one more attribute to the existing XML schema.

How to do that?

You'll need to to drop the schema and re-register.

begin 
    DBMS_XMLSCHEMA.DELETESCHEMA(
   'SCHEMA_URL',
   DBMS_XMLSCHEMA.DELETE_CASCADE);
   commit;
end;

https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_xmlsch.htm#i1007471

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM