Types of locks in database ?

Answer Posted / lakshminarayana reddy

2 types
1. Implicit locks: oracle automatically locks the rows
whenever user performs DML operations.
2. Explicit locks: provided by user.
2 tpyes a) Row level locks: used to lock selected rows
of table.It is imposed by "for update" clause in select.
b) Table level locks: used to lock compleate
table. 3 models 1) share mode
2) share update
3) exlcusive mode

Is This Answer Correct ?    92 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql clause?

535


Is it possible to read/write files to-and-from PL/SQL?

648


Why do we use joins in sql?

496


What is the use of pl/sql table?

544


How to create your own reports in sql developer?

530






How many sql statements are used?

560


How to add, remove, modify users using sql?

551


What is view explain with example?

514


How can I see all tables in sql?

533


what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba

553


What is mutating error in pl sql?

537


What is pl/sql table? Why it is used?

552


What is pl sql record in oracle?

555


What are %type and %rowtype for?

611


What is a common use of group by in sql?

586