Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is ACQUIRE/RELEASE in BIND?

Answers were Sorted based on User's Feedback



What is ACQUIRE/RELEASE in BIND?..

Answer / islam

RELEASE has two parametre : commit & deallocate
RELEASE specify when the the db2 resources has to be set
free
if you use RELEASE(commit) then at every commit point db2
resources will be set free
but if u use RELEASE(DEALLOCATE) then once the whole
transaction is terminated, the db2 resources will be set
free
ACQUIRE serves the purpose of maintaining data consistency.
It has two parametre : ALLOCATE & USE
ACQUIRE(USE) - Opens table spaces and acquires locks only
when the application program bound to the plan first
uses them.

ACQUIRE(ALLOCATE) - Opens all table spaces and
acquires all table space locks when the plan is
allocated.

ACQUIRE(USE) - Fixed for Packages

Is This Answer Correct ?    12 Yes 2 No

What is ACQUIRE/RELEASE in BIND?..

Answer / 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

What is ACQUIRE/RELEASE in BIND?..

Answer / ramesh naidu

Acquire:it acquire the locks on table spaces

Acquire(use): Acquire the locks at bind time
Acquire(allocate):Acquire the locks at run time.

Release:It release the locks on the table space

Release(commit):It saves the changes made to the data in database permanently.

Release(rollback):it undo the changes made to the database.

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More DB2 Interview Questions

What keyword does an SQL SELECT statement use for a string search?

2 Answers  


How do I delete a column in db2?

0 Answers  


How does one bind 2 versions of a CICS transaction with the same module name in two different CICS regions that share the same DB2 subsystem?

2 Answers  


What is a subselect? Is it different from a nested select?

1 Answers  


How do you eliminate duplicate values in db2?

0 Answers  


What is CHECK PENDING ?

5 Answers  


What DB2 Catalog column tell you when an index needs table reorganized ?

1 Answers  


how can u nderstand the sql stmts executed successfully or not ?

1 Answers   TCS,


how to resolve -811 sqlcode .give clear explaination

3 Answers   IBM,


can I alter a table (e.g. adding a column) when other user is selecting some columns or updating some columns from the same table?

1 Answers  


What is the difference between TYPE 1 index & TYPE 2 index

1 Answers   IBM,


Which catalog table stores referential constraints?

1 Answers  


Categories