Answer Posted / sabahat khan
The ACQUIRE and RELEASE options of bind determine when DB2
locks an object (table, partition, or table space)which
your application uses and when it releases the lock.
The options apply to static SQL statements(like Embedded
SQL statement in application program), which are bound
before your program executes. If your program executes
dynamic SQL statements, the objects they lock are locked
when first accessed and released at the next commit point
though some locks acquired for dynamic SQL might be held
past commit points.
ACQUIRE(ALLOCATE)
Acquires the lock when the object is allocated. This option
is not allowed for BIND or REBIND PACKAGE.
ACQUIRE(USE)
Acquires the lock when the object is first accessed.
RELEASE(DEALLOCATE)
Releases the lock when the object is deallocated (the
application ends). The value has no effect on dynamic SQL
statements, which always use RELEASE(COMMIT)
RELEASE(COMMIT)
Releases the lock at the next commit point, unless cursors.
If the application accesses the object again, it must
acquire the lock again.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How do I delete a table in db2?
What is dbrm? When it will be created?
How to restart a DB2 program?
How to check sequence on a table in db2?
What is collection in db2 bind?
How do I connect my db2 database to ibm?
What do you mean by cursor?
what is the responsibility of the construction superintendent
How to find schema of a table in db2?
Why do we need reorg in db2?
What is a collection in db2?
What does a deadlock mean in DB2?
What is the use of value function?
Why do we use cursor?
How do I add a column to an existing table in db2?