Dear all,
I have the following situation using DB2 v9.5 in the multi-threaded way.
1. I created 30 working threads using _beginthread(.. .) C function.
2. For each working thread I put the following sequence at the beginning:
sqleBeginCtx(.. .)
sqleAttachToCtx (...)
connect to database
then, I'm using a semaphore to wait for something to do.
3. After each database operation I have a commit class which executes a EXEC SQL COMMIT command;
My problem is that sometimes I receive a sql error SQL0964C.
My application is running non stop with a average of 100.000 sql transactions per day.The number of primary/secondary logs is 4/10(each 250 * 4K).The sql error appears once a month.
Do you have any clue regarding this behaviour?
Thanks.
I have the following situation using DB2 v9.5 in the multi-threaded way.
1. I created 30 working threads using _beginthread(.. .) C function.
2. For each working thread I put the following sequence at the beginning:
sqleBeginCtx(.. .)
sqleAttachToCtx (...)
connect to database
then, I'm using a semaphore to wait for something to do.
3. After each database operation I have a commit class which executes a EXEC SQL COMMIT command;
My problem is that sometimes I receive a sql error SQL0964C.
My application is running non stop with a average of 100.000 sql transactions per day.The number of primary/secondary logs is 4/10(each 250 * 4K).The sql error appears once a month.
Do you have any clue regarding this behaviour?
Thanks.
Comment