Skip to main content
Known Participant
December 18, 2008
Question

Lock records or table

  • December 18, 2008
  • 6 replies
  • 927 views
How do I lock records when I am processing the records in CF. I want to lock the entire table of insert sometimes or lock a few rows.

Any help is appreciated.

Aruna
This topic has been closed for replies.

6 replies

arunaumucAuthor
Known Participant
December 24, 2008
well, normal work, but I intend to do a select for update so that I can ensure an exclusive lock is encountered while operating on the data.
Inspiring
December 24, 2008
That's beyond my level of expertise. I am only able to do simple things.

But they work. Are normal insert or update queries not appropriate for your situation?
arunaumucAuthor
Known Participant
December 23, 2008
Dan,

I tried to use the select for update in one of the package fucntions, but it doesnot work. Do you have any idea?

Aruna
Inspiring
December 21, 2008
I just run the query and let oracle look after any locking that is required.
Inspiring
December 18, 2008
arunaumuc wrote:
> Please re- read to mean this:
>
> How do I lock records at back end when I am processing the records in CF. I want to lock the entire table for insert. I also want to lock a few rows for update.
>
>

I believe the <cftranaction...> tag allows one to tell the database how
you would like it to lock records.

arunaumucAuthor
Known Participant
December 18, 2008
Please re- read to mean this:

How do I lock records at back end when I am processing the records in CF. I want to lock the entire table for insert. I also want to lock a few rows for update.