Oracle® TimesTen In-Memory Database PL/SQL Packages Reference Release 11.2.1 Part Number E14000-03 |
|
|
View PDF |
The DBMS_LOCK
package provides an interface to Lock Management services.
In the current release, TimesTen supports only the SLEEP
subprogram.
This chapter contains the following topics:
TimesTen currently implements only the SLEEP
subprogram, used to suspend the session for a specified duration.
In the current release, TimesTen supports only the SLEEP
subprogram.
Table 2-1 DBMS_LOCK package subprograms
Subprogram | Description |
---|---|
Suspends the session for a specified duration. |
This procedure suspends the session for a specified duration.
DBMS_LOCK.SLEEP (
seconds IN NUMBER);
Table 2-2 SLEEP procedure parameters
Parameter | Description |
---|---|
|
Amount of time, in seconds, to suspend the session. The smallest increment is a hundredth of a second. |
The actual sleep time may be somewhat longer than specified, depending on system activity.
If the PLSQL_TIMEOUT
general connection attribute is set to a positive value that is less than this sleep time, the timeout will take effect first. Be sure that either the sleep value is less than the timeout value, or PLSQL_TIMEOUT=0
(no timeout). See "PL/SQL connection attributes" in Oracle TimesTen In-Memory Database PL/SQL Developer's Guide for information about PLSQL_TIMEOUT
.
DBMS_LOCK.SLEEP(1.95);