简体   繁体   中英

SQLCODE=-723 during insertions in DB2

I have a series of insert statements in my code. The table has few triggers to update last updated date and time.

Certain insertions are succeeding while other similar inserts into the table fails with DB2 SQL Error: SQLCODE=-723, SQLSTATE=09000, SQLERRMC=CMSDB.ITNPROD_AUDIT_AFTER_INSERT;-818;51003;, DRIVER=4.8.87

What could be the problem. My worry is it works for certain records whereas fails for other.

Look up the errors in the DB2 Message reference.

The SQL0723N error ( here ) is telling us that an error occurred in the named trigger (in your case, the trigger is named CMSDB.ITNPROD_AUDIT_AFTER_INSERT).

Furthermore, in the second part of the message, DB2 is telling us that the error that is occurring in the trigger is SQL0818N (SQLSTATE 51003) which is here .

I don't really understand what 818 is saying, but it seems you may have some sort of timestamp problem with a package. Good luck.

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