Ocasion receive "ORA-01403 no data found" in multi thread
Posted: Thu 23 Jul 2009 11:36
I am encountering a very strange problem using ODAC and have been looking for a solution for month and now became very frustrated, hope experts here can help.
I have a test multi thread program that will insert large amount of data into oracle 11g database, and occasionally I will receive "ORA-01403 no data found" error from the database. Below is the coding environments:
- Using Odac 650d11 pro
- Program compiled using RAD 2007
- A table with primary key with no trigger
- 50 threads, each thread to insert 1000 record, insert one record follow by another record
- insert statement is like 'insert into table1 (...) values (...)'
- most of the record is duplicated, so primary key violation will be occurred, but exception is catch and continue next record
- each insert statement will be follow by a select statement from another table
- The error occurred at insert statement, not select statement
Each time the program is finished, I will find a few "ORA-01403 no data found" errors out of many primary key violation error. I don't have any idea how on earth this no data found error comes from, I tried to use both TOraQuery & TOraSQL, result is the same. Can anyone help?
I have a test multi thread program that will insert large amount of data into oracle 11g database, and occasionally I will receive "ORA-01403 no data found" error from the database. Below is the coding environments:
- Using Odac 650d11 pro
- Program compiled using RAD 2007
- A table with primary key with no trigger
- 50 threads, each thread to insert 1000 record, insert one record follow by another record
- insert statement is like 'insert into table1 (...) values (...)'
- most of the record is duplicated, so primary key violation will be occurred, but exception is catch and continue next record
- each insert statement will be follow by a select statement from another table
- The error occurred at insert statement, not select statement
Each time the program is finished, I will find a few "ORA-01403 no data found" errors out of many primary key violation error. I don't have any idea how on earth this no data found error comes from, I tried to use both TOraQuery & TOraSQL, result is the same. Can anyone help?