I use CS and update a page. Will the lock be released after
I am done with that page?

Answers were Sorted based on User's Feedback



I use CS and update a page. Will the lock be released after I am done with that page?..

Answer / m4io

No.
An update takes an exclusive lock. These persist until
commit.
Only shared locks will be released when you move away from
the page.

Is This Answer Correct ?    8 Yes 0 No

I use CS and update a page. Will the lock be released after I am done with that page?..

Answer / s

Yes, the CS lock is held until the application locks the
next page.

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More DB2 Interview Questions

when we are tying to update a table having 100 rows. if the program abends when updating 51 row . how to start updating again from the 51 row .what was the logic

2 Answers   TCS,


Suppose we are doing transaction in a table and abend happened in between. Suppose i have completed the transaction upto X rows and I want to start the transaction again where the abend happened. I don't want to do the transaction from the first record. Then what i have to do.

9 Answers   Cap Gemini,


On which levels locks can be applied?

0 Answers  


how to copy the host variables from ps file into cobol program other than include statement

1 Answers   Syntel,


What is runstats utility in db2?

0 Answers  






How to see the structure of db2 table??

4 Answers   IBM,


What is ibm db2 used for?

0 Answers  


What is the meaning concurrency in the db2 database?

0 Answers  


How to compare data between two tables in db2?

0 Answers  


Can you search give an array in the WHERE clause of a db2 query?

1 Answers  


What are the four lockable units for DB2?

1 Answers  


What is db2 bind?

0 Answers  


Categories