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
What parameters are used to control the free space in DB2?
What do you mean by cursor?
What is the use of predicate?
How to find primary key of a table in db2?
How can you do the explain of a dynamic sql statement?
What are catalog tables in db2?
What is the difference between nvl and coalesce?
How and when does the db2 enforces the unique key?
What are union and union all?
How can you find out the # of rows updated after an update statement?
What is load utility in db2?
Can we delete records from view?
what are bind concepts in db2 cobol?
What is db2 instance?
What types of tables are there in the db2 database?