|
INTERVIEW QUESTIONS
ORACLE
DETAILS
Question: What is the difference between locks, latches, enqueues and semaphores?
Answer: A latch is an internal Oracle mechanism used to protect data structures in the SGA from simultaneous access. Atomic hardware instructions like TEST-AND-SET is used to implement latches. Latches are more restrictive than locks in that they are always exclusive. Latches are never queued, but will spin or sleep until they obtain a resource, or time out. Enqueues and locks are different names for the same thing. Both support queuing and concurrency. They are queued and serviced in a first-in-first-out (FIFO) order. Semaphores are an operating system facility used to control waiting. Semaphores are controlled by the following Unix parameters: semmni, semmns and semmsl. Typical settings are: semmns = sum of the "processes" parameter for each instance (see init<instance>.ora for each instance) semmni = number of instances running simultaneously; semmsl = semmns
|
|
|
Category |
Oracle Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6840 users |
Added on |
9/18/2014 |
Views |
70867 |
Rate it! |
|
|
Question:
What is the difference between locks, latches, enqueues and semaphores?
Answer:
A latch is an internal Oracle mechanism used to protect data structures in the SGA from simultaneous access. Atomic hardware instructions like TEST-AND-SET is used to implement latches. Latches are more restrictive than locks in that they are always exclusive. Latches are never queued, but will spin or sleep until they obtain a resource, or time out. Enqueues and locks are different names for the same thing. Both support queuing and concurrency. They are queued and serviced in a first-in-first-out (FIFO) order. Semaphores are an operating system facility used to control waiting. Semaphores are controlled by the following Unix parameters: semmni, semmns and semmsl. Typical settings are: semmns = sum of the "processes" parameter for each instance (see init<instance>.ora for each instance) semmni = number of instances running simultaneously; semmsl = semmns Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is meant by recursive hints ?
|
View Answer
|
|
What is meant by Redo Log file mirroring ? How it can be achieved?
|
View Answer
|
|
Why query fails sometimes ?
|
View Answer
|
|
What is advantage of having disk shadowing/ Mirroring ?
|
View Answer
|
|
How to implement the multiple control files for an existing database ?
|
View Answer
|
|
What is hot backup and how it can be taken?
|
View Answer
|
|
What is the use of INCTYPE option in EXP command ?
|
View Answer
|
|
What is the significance of having storage clause ?
|
View Answer
|
|
What are disadvantages of having raw devices ?
|
View Answer
|
|
Is it possible to use raw devices as data files and what is the advantages over file. system files ?
|
View Answer
|
|
What is a Static Record Group?
|
View Answer
|
|
What is the difference between OLE Server & Ole Container?
|
View Answer
|
|
What database aspects should be monitored?
|
View Answer
|
|
What is a difference between pre-select and pre-query?
|
View Answer
|
|
What is WHEN-Database-record trigger?
|
View Answer
|
|
What is the remove on exit property?
|
View Answer
|
|
What are different types of modules available in oracle form?
|
View Answer
|
|
What is the advantage of the library?
|
View Answer
|
|
How does one create a password file?
|
View Answer
|
|
How does one connect to an administrative user?
|
View Answer
|