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!

Insert Trigger of XMLType table

399118Jul 16 2003 — edited Jul 28 2003
Is there any way to modify XML document in the insert trigger of XMLType table?

To preserve unique constraint of @uniqueID attribute in the XMLType table, I declare IDGEN_SEQ sequence and apply it to change the value of @uniqueID attibute by updateXML() function in the Insert Trigger.

declare
XMLDATA xmltype;
begin
XMLDATA := :new.sys_nc_rowinfo$;
Select updateXML(XMLDATA, '//@uniqueID', IDGEN_SEQ.nextval) into XMLDATA from dual;
:new.sys_nc_rowinfo$ := XMLDATA;
end;

It lists a error message, "ORA-25003 cannot change NEW values for this column type in trigger".

Thanks in advance.

Jin.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2003
Added on Jul 16 2003
9 comments
678 views