RE: Which query is best?

From: Dunbar, Norman <norman.dunbar_at_environment-agency.gov.uk>
Date: Tue, 15 Dec 2009 14:18:22 -0000
Message-ID: <919FC80F27E0C6428106496EDF92A7520A6A55F6_at_EXCCLUS05.PRODDS.NTNL>



Hi Syed,

>> ... they have a SELECT FOR UPDATE and some other series of actions
and then
>> followed by an UPDATE command.

This is fine, but as you can see from your problem, it leads to all sorts of enqueue problems. As I initially though, it is sounding a lot like "lazy developer syndrome" - but obviously, I can't be 100% sure! ;-)

>> ...

>> ...they are going to put the time out value at the end of
>> SELECT .. FOR UPDATE command, probably 60 seconds time out
>> for the lock.

Well, this can lead to two separate options. The first is that whatever UPDATE they planned on doing will now fail because they were stuck on an enqueue wait for 60 seconds then it timed out.

The second option is to wait on the enqueue for 60 seconds, then loop back and wait another 60 second.

In the first case, the application is not processing as it should. In the second case, you have the same problem that you have now. Nothing has actually changed.

So I'm a little puzzled as to how any of this solves your actual problem. Or are they planning on some other course of action when the WAIT 60 option times out?

Cheers,
Norman.

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Dec 15 2009 - 08:18:22 CST

Original text of this message