For Read Stability locks are not applicable for phantoms,
What is Phantoms?

Answers were Sorted based on User's Feedback



For Read Stability locks are not applicable for phantoms, What is Phantoms?..

Answer / santoshkumar jangamashetti

example for Phantoms:

• Transaction1 opens a cursor and reads account
information, keeping a running sum of the total balance for
the selected accounts.
• Transaction2 inserts a new account that falls
within the range of accounts being processed by
Transaction1, but the insert occurs after Transaction1 has
passed the new account.
• Transaction2 commits the insert.
• Transaction1 runs a query to sum the values to
check the accuracy of the running total. But the totals
will not match.

Is This Answer Correct ?    5 Yes 2 No

For Read Stability locks are not applicable for phantoms, What is Phantoms?..

Answer / prachi

In read stability,
if t1 is performing read and t2 has done some changes in
the database which has same crieteria as T1, these new
updates or rows added by t2 is called phantom, which will
not be read during the read stability lock...

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

What are the contents of a dclmgen?

0 Answers  


What does reorg do in db2?

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 role of schema in the db2 database?

0 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  






What do you need to do before you do EXPLAIN ?

1 Answers  


What is the significance of DB2 free space and what parameters control it?

1 Answers  


What does DSNDB07 database do?

2 Answers  


what are the bind parameters?

5 Answers   IBM,


What is query_cache_limit?

0 Answers  


How would one remove old reorg information from the DB2 catalog?

2 Answers  


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

0 Answers   IBM,


Categories