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

I am getting a error multiple row fetched while executing a Cobol-DB2 program.How can I solve it without using a cursor.

8 Answers  


What is meant by AUTO COMMIT?

3 Answers  


we can code COPY DCLGEN or INCLUDE DCLGEN, At which stage of the precompilation , dclgen get expanded if we write 1) copy 2) include one question about dclgen.. Is it mandatory to use declare table in dclgen.. I think no...but it will be used by the precompiler to validate the table name,column name etc.., can one clear my doubt ..is it necessary to include declare table or not?

2 Answers  


What are the levels of isolation available with DB2V4

2 Answers   IBM,


What is image copy?

1 Answers   Virtusa,






What is consistency token in db2?

0 Answers  


What is dynamic SQL?

1 Answers   ADP,


What is check constraint. Explain with example.

0 Answers  


This was related to -811 sqlcode, In a COBOL DB2 program which accesses employee table and selects rows for employee 'A', it should perform a paragraph s001-x if employee 'A' is present. In this case it gets -811 sqlcode, but still it process the paragraph s001-x. What could be wrong in my code.

3 Answers  


What is the maximum number of columns in a db2 table?

0 Answers   IBM,


when i am trying to update a table having 1000 rows. the program abends.how we will come to know the last successful updated row was. we are not using any commit operations

3 Answers   IBM,


What os does db2 run on?

0 Answers  


Categories