Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

DBMS_LOCK tips

Oracle DBMS_LOCK Tips by Donald Burleson

Oracle DBMS_LOCK?

 The Oracle DBMS_LOCK package makes the Oracle Kernel's lock management services available to user-written applications.

Application locking implemented using Oracle DBMS_LOCK is functionally identical to native RDBMS locking at the levels of lock modes and deadlock detection, compatibility, and visibility through V$ views.

Possible uses of Oracle DBMS_LOCK are as follows:

  • Oracle DBMS_LOCK can provide for exclusive access to an external device or service (e.g., a printer)

  • Oracle DBMS_LOCK can coordinate or synchronize application processing in parallel

  • Oracle DBMS_LOCK can signal the availability of services

  • Oracle DBMS_LOCK can enable or disable program execution

  • Oracle DBMS_LOCK can coordinate access to a shared database pipe

Oracle DBMS_LOCK Programs

The Oracle DBMS_LOCK package presents a relatively straightforward interface containing two procedures and three functions. These are summarized below:

The Oracle DBMS_LOCK Programs

ALLOCATE_UNIQUE   Procedure   Generate lock handle for a given lock name
REQUEST           Function    Request lock in a specific mode
CONVERT           Function    Convert lock from one mode to another
RELEASE           Function    Release previously acquired lock
SLEEP             Procedure   Suspend session for a specified time

Description of the DBMS_LOCK package:

PROCEDURE DBMS_LOCK.ALLOCATE_UNIQUE
dbms_lock

FUNCTION DBMS_LOCK.CONVERT RETURNS NUMBER(38)
dbms_lock
 
FUNCTION DBMS_LOCK.CONVERT RETURNS NUMBER(38)
dbms_lock

FUNCTION DBMS_LOCK.RELEASE RETURNS NUMBER(38)
dbms_lock

FUNCTION DBMS_LOCK.RELEASE RETURNS NUMBER(38)
dbms_lock

FUNCTION DBMS_LOCK.REQUEST RETURNS NUMBER(38)
dbms_lock

FUNCTION DBMS_LOCK.REQUEST RETURNS NUMBER(38)
dbms_lock

PROCEDURE DBMS_LOCK.SLEEP
dbms_lock

   

 

 


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.