|Subject:||Distinguish committed data from other transactions and uncommitted data from my|
|Date:||12 Jan 2004|
I have the following problem:
I have an interace table ordedata with a a sequence number to
the sequence of the data.
The table looks like this:
seqnbr (sequence number )
I have now a transaction, which writes one or several rows into
What I want is the following:
At the beginning of the transaction I am selecting the highest
number for the data for a specific order and store it in a global
At the end of the transaction, I want to get again the highest
number in the table for my order.
Now I want to find out in my transaction, if some other transaction
have written also data in that table.
How can I distinguish in my transaction, if the data comes from my
and is not yet committed or if the data comes from a different
and is alredy committed. My transaction sees always all data
regardless if it they are mine or not.
I was trying to do it with autonomous transactions, but it seems not
I don't want to rely on some data, like a columns, where it is stored,
who writes the data.
Is there a possibility to do this ????