J2EE application is running successfully with v9.1 db and "v9.7 migrated" (migrated from v9.1) db. The same application is experiencing intermittent -803 when it's used with "v9.7 new" (created under v9.7) db.
SQLSTATE 23505 SQLCODE -803 with JDBC
From WebSphere Application server log -
[1/18/11 4:20:02:025 EST] 00000731 SystemErr R xxxxxxxx.model.jdbc.
xxxxxxxxxJdbcSessionBean:

QL Error from StoredProcedu
re! SQL0803N One or more values in the INSERT statement, UPDATE
statement, or foreign key update caused by a DELETE statement
are not valid because the primary key, unique constraint or unique
index identified by "1" constrains table "DB2.xxxxxx"
from having duplicate values for the index key. SQLSTATE=23505
I've been told that the application, DDL and data is exactly the same.
There are some db cfg differences between v9.1 and v9.7. Most of them have been updated to match what "v9.7 migrated" db has (cur_commit, etc..) except for those that can't be modified without recreating the db (codepage...) or should be unrelated to this error (memory settings). I'm attaching a file with db cfg differences prior to making any changes.
I've also asked to create a "v9.7 new" db using the backup image of "v9.7 migrated". So far, they haven't seen any -803 with this new db.
If the application, DDL, data and db2level is exactly the same, then why is this happening? The only difference I see are the codepage/codeset/collating sequence settings. Could that cause this error?
-803 is coming from a stored procedure. This stored procedure has several insert and update statements. Is there a way to know which one generated -803 by enabling some stored procedure setting? diaglevel 4 doesn't help.
In summary:
v9.1 - OK
mig v9.7 - OK
new v9.7 - sql0803n