![]() |
Locking![]() ![]() ![]() ![]() ![]()
ORACLE uses locks to control concurrent access to data. Lock are mechanisms intended to prevent destructive interaction between users accessing ORACLE data. Destructive interaction can be interpreted as any interaction that incorrectly updates data or incorrectly alter underlying data structures. Locks guarantee data integrity while allowing maximum concurrent access to the data by unlinuited users. There are two types of locking AUTOMATIC and MANUAL. Automatic locking ORACLE locking is performed automatically and requires no user action Implicit locking occurs for SQL statement as necessary, depending on the action requested. ORACLE'S lock manager automatically locks table data at row level. By locking table data at row level, contention for the same data is minimized. In general there are two types of locks EXCLUSIVE lock and SHARE lock. EXCLUSIVE lock prohibits the sharing of the associated resource. The first transaction to exclusively lock a resource is the only transaction that can alter the resource until the exclusive lock is released. SHARE lock allows the associated resource to be shared, depending on the operations involved (several users can read the same data at the same time). Several transactions can acquire share locks on the same resource. Share locks acquire a higher degree of data concurrency than exclusive locks. Manual locking Some times a user may want to override default locking. ORACLE allows manual override of automatic locking which features both the row level and table level locking. A row is locked exclusively so that users can modify the row until the transaction holding the lock is committed or rolled back. A table lock can be in any one of the modes:
Row share
|
|
Domain NamesSQL Database Management Systems Relational Database Management System Properties of RDBMS Client Server Computing Oracle Relational Database Database Structure and Space Management SQL Data Types How to Use Data Types? What is Operators and Conditions Character OperatorsOperator Precedence Data Retrieval Using SQL Plus SQL Data Definitions Data Retrieval Using Select SQL Operator Precedence Selecting Rows and Columns The Group by Clause
Having Clause Union, Union all, Intersact and Minus Commands Playing with Numbers Date Functions Example of Date Arithmetic Working with Null Values
Joining Tables and Subqueries Views Synonyms Indexes Clusters Sequences Formatting Query Results with SQL Plus Data Integrity Locking The Optimizer How Oracle Optimizes SQL Statements Evaluating Expression and ConditionsOptimization Hints PL-SQL PL-SQL Architecture Error Reporting Functions Character Functions Composite Data Types PL-SQL Structures How to use PL-SQL Structures Normalization Operator Precedence Cursor Error Handling Database Triggers Types of Triggers Locking Sub Programs Packages New and Improved Data Types Improved Select Statement Advanced Quering Improved Scalability Improved Performance Via Partitioning Object Relational Features Heterogeneous Data Access Improved Security Administration New Data Types Improved Select Statement Changes to the Select Statement Improved Scalability Data Partitioning Oriented Toward Objects Character Functions Creating Object Types Created Nested Tables Oracle8 and Distributed Database Oracle8 Database Management and Security Distributed Database Invoking Export Invoking ImportWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |