GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Mainframe  >  DB2
Go To First  |  Previous Question  |  Next Question 
 DB2  |  Question 46 of 196    Print  
What are the three lock types?
The three types are shared, update and exclusive. Shared locks allow two or more programs to read simultaneously but not change the locked space. An exclusive lock bars all other users from accessing the space. An update lock is less restrictive; it allows other transactions to read or acquire shared locks on the space.


  
Total Answers and Comments: 1 Last Update: December 19, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 19, 2006 09:36:47   #1  
ajay ajjur        

types.......
3 types of locks are SHARE EXCLUSIVE UPDATE
 
Is this answer useful? Yes | No

 Related Questions

Tables are stored in tablespaces (hence the name)! There are three types of tablespaces: simple, segmented and partitioned.  
Latest Answer : Any database contain one or more Table spaces. Each Table space is devided into pages of size 4kb or 32kb. Each table psace can have one or more tables. TABLE SPACE SPACE IS UNIT OF RECOVERY OR REORGANIZATION. There are 3 types of Table Spaces a) ...

To maintain the integrity of DB2 objects the DBD permits access to only on object at a time. Lock contention happens if several objects are required by contending application processes simultaneously. 

The three data types are DATE, TIME and TIMESTAMP. CHAR can be used to specify the format of each type. The DAYS function calculates the number of days between two dates. (It's Y2K compliant). 
Latest Answer : DATE PIC X(10)TIME PIC X(8)TIMESTAMP PIC X(26) ...

Explain transactions, commits and rollbacks in DB2. In DB2 a transaction typically requires a series of updates, insertions and deletions that represent a logical unit of work. A transaction puts an implicit lock on the DB2 data. Programmers can use the COMMIT WORK statement to terminate the transaction creating smaller units for recovery. If the transaction fails DB2 uses the log to roll back values to the start of the transaction or to the preceding commit point.

Deadlock occurs when transactions executing at the same time lock each other out of data that they need to complete their logical units of work. What are the four lockable units for DB2? 
Latest Answer : The 4 lock units are Row, Page, Table (if segmented), and Table space. Christine Pastor  ...

The three types are shared, update and exclusive. Shared locks allow two or more programs to read simultaneously but not change the locked space. An exclusive lock bars all other users from accessing 
Latest Answer : 3 types of locks are SHARE EXCLUSIVE UPDATE ...

An intent lock is at the table level for a segmented tablespace or at the tablespace level for a nonsegmented tablespace. They indicate at the table or tablespace level the kinds of locks at lower levels. 
Latest Answer : how to eliminate duplicate rows from a table leaving one from the duplicates ...

Cursor stability means that DB2 takes a lock on the page the cursor is accessing and releases the lock when the cursor moves to another page.  
Latest Answer : Cursor stability  isolation level ensures that any row that was changed by an application process cannot be read untill committed by that process. It ensures that the current row of every updatable cursor is not changed by other application process. ...

A lock is the mechanism that controls access to data pages and tablespaces.  
Latest Answer : Lock is a DB2 mechanism by which DB2 can provide Concurrency and Consistency at  the same time(not exactly).  Based on the SQL statement DB2 provides different  types of locks. They are   1. ...

This is a key concept for any relational database. Isolation level is the manner in which locks are applied and released during a transaction. For DB@ a 'repeatable read' holds all locks untile 
Latest Answer : Isolation level means the extent to which the transaction isolates the data is accessed ...


 Sponsored Links

 
Related Articles

jQuery - Sorting Other Types of Data

Learning jQuery Sorting Other Types of Data Our sort routine should be able to handle not just the Title and Author columns but the Publish Dates and Price as well Since we streamlined our comparator function it can handle all kinds of data but the computed keys will need to be adjusted for other da
 

EDI Document Types

EDI Document Types EDI documents come in various forms each of which can appear differently depending on the company’ s internal computer system Also while each standard has code specificity each order may look very different a clothes company will send details of color and sizes while a f
 

Listening Skills - Types of Bad Listeners

Types of Bad Listeners What are the main types of bad listeners You might find in your work environment that some individuals are simply not very good at listening This can create a myriad of problems and make the performance of the most mundane day to day tasks nearly impossible to accomplish mosgo
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value  and  passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

Types of Resumes and When to Use Them

Resumes are written to give our future employers an insight of who we are and why we should hire them. But resumes are more than just a collection of FYIs about you, it should be written in a way that highlights important things about yourself. Take note that you are not altering any information jus
 

SQL Data Types

SQL Data Types Overview In SQL, as in many other programming languages, every piece of data has a particular type. For example, 11 is an integer, and “Wall Street” is a text string. The SQL standard defines many data types to accommodate almost any type of data. Some cases aris
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Types of IT Certification

For those that are considering an IT Certification, they may have found that there are several types to choose from.  Before deciding on a particular IT Certification, it is important to know what choices are available to you as well as what will be included in each of the types. 
 

Mainframe Features

Mainframe Features In this Mainframe tutorial you will learn about features of Mainframe Processing power memory capacity performance computing multiple operating system time sharing reliability serviceability availability clustering technology and other features available in Mainframe mosgoogle cen
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape