No incorrect readings, but what is a good solution?

I am new to Oracle and I recently discovered that there is no reading (reading data stop) in Oracle.

This is the problem that I am trying to solve:

I have a table that has a bunch of lines representing hours of some reports that should be running. Each line has a status column. I have a separate process that was going to read this table clamp the first regular element and run it. I was about to transact the whole process of execution. The first thing that would be is I would update the status column to ' (was) 'R' (market), then I ran the item, and finally I would update the State towards the of '. The reason for all the status changes, is there a website sitting in front of it that allows the user to Setup or modify these hours. Business rules are that the user can change the schedule at any time, except when the report runs. I just context of SQL Server, I thought that updating the status of 'R' and then do a bad read on the site and seeing that the situation is now at 'R' would make this case by not allowing the user to change the calendar. But since there are no incorrect readings, what are you doing? Of course we don't have to deal with the whole process, we can update the status of first commit, then run the planned element and then update the status back and validation, but this is not a good solution for me, b/c, what happens if there is an exception in the meantime.

I think there must be some sort of a good design pattern that Oracle users from cases such as the present case. Does anyone have any suggestions?

Thanks to you all.

It seems that you will have to use a separate table (log) to hold the current state of the transaction in flight. In order to VALIDATE the records in this table, you will need to use "PRAGMA TRANSACTION INDEPENDENT", which tells Oracle that it is an independent operation and is not related to the parent transaction which gave birth to it.

Attention, however, and strictly control the scope of the PRAGMA.

Tags: Database

Similar Questions

Maybe you are looking for