Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam C2090-616 All Questions

View all questions & answers for the C2090-616 exam

Exam C2090-616 topic 1 question 20 discussion

Actual exam question from IBM's C2090-616
Question #: 20
Topic #: 1
[All C2090-616 Questions]

Which operation typically requires a Share (S) lock?

  • A. INSERT
  • B. SELECT
  • C. DELETE
  • D. UPDATE
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference: https://www.ibm.com/developerworks/data/library/techarticle/dm-0509schuetz/index.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Belusa_7
4 years, 2 months ago
B is correct Read-only This processing type includes all SELECT statements that are intrinsically read-only, have an explicit FOR READ ONLY clause, or are ambiguous, but the query compiler assumes that they are read-only because of the BLOCKING option value that the PREP or BIND command specifies. This type requires only share locks (IS, NS, or S). Intent to change This processing type includes all SELECT statements that have a FOR UPDATE clause, a USE AND KEEP UPDATE LOCKS clause, a USE AND KEEP EXCLUSIVE LOCKS clause, or are ambiguous, but the query compiler assumes that change is intended. This type uses share and update locks (S, U, or X for rows; IX, S, U, or X for blocks; and IX, U, or X for tables). Change This processing type includes UPDATE, INSERT, and DELETE statements, but not UPDATE WHERE CURRENT OF or DELETE WHERE CURRENT OF. This type requires exclusive locks (IX or X). https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.admin.perf.doc/doc/c0009697.html
upvoted 2 times
...
db2tester
5 years, 1 month ago
UPDATE, DELETE and INSERT operations will hold a X lock (eXclusive lock).
upvoted 1 times
...
db2tester
5 years, 1 month ago
By default, the isolation level is CS (Cursor Stability). If you read a table with SELECT, you hold a shared lock on the read row. THe good answer will be "B. SELECT"
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...