Re: How can I create a trigger that increments on read?
The field is a transaction number, right now, it is stored in a file. The file is locked, read, incremented, and then unlocked.
I'm trying to get the same effect out of the database.
Since there can be up to 15 threads all trying to access the data all at once the file lock is needed. Each and every request ***must*** get a different number. On the DB side, I am worried about locks, if I lock the row and the thread is killed or suspended, I am stuck with a locked row. If I have an unlock run by the next process I can never gaurentee that my write will get writen before another thread comes in and unlocks then relocks the row/table.
I hope that is the info you wanted.
Subject
Views
Written By
Posted
7546
August 18, 2005 07:36PM
2832
August 19, 2005 02:55AM
2536
November 01, 2006 03:50AM
2646
November 01, 2006 04:28AM
Re: How can I create a trigger that increments on read?
2449
August 19, 2005 12:43PM
2667
August 19, 2005 01:09PM
2385
August 19, 2005 04:33PM
2433
August 19, 2005 01:40PM
2465
August 20, 2005 12:36PM
2202
October 22, 2006 11:29PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.