Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Navigational and Type Functions, 22 of 36
Locks a persistent object at the server but does not wait for the lock. and returns an error if the lock is unavailable.
sword OCIObjectLockNoWait ( OCIEnv *env, OCIError *err, dvoid *object );
The OCI environment handle initialized in object mode. See the description of OCIEnvCreate()
and OCIInitialize()
for more information.
The OCI error handle. If there is an error, it is recorded in err
and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet()
.
A pointer to the persistent object being locked. It must already be pinned.
This function locks a persistent object at the server. However, unlike OCIObjectLock()
, this function does not wait if another user holds the lock on the desired object and an error is returned if the object is currently locked by another user. This function also returns an error for transient objects and values, or objects that do not exist.
The lock of an object is released at the end of a transaction.
See Also:
For more information about object locking, see "Locking Objects For Update". |
OCIObjectLockNoWait()
returns the following values:
OCIObjectPin()
, OCIObjectIsLocked()
, OCIObjectGetProperty()
, OCIObjectLock()
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|