If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Table quiesce ...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-08, 11:02
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Table quiesce ...

I have a question about quiescing a table. The command refers to a table but the whole tbspce is quiesced. Am I interpreting something wrong? Also, how to unquiesce?

db2 "quiesce tablespaces for table tabschema.tabname exclusive"

Is there a way to quiesce a table and not a tablespace?

Thanks
__________________
Thanks
SK
Reply With Quote
  #2 (permalink)  
Old 10-25-08, 14:08
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by Kota
Is there a way to quiesce a table and not a tablespace?
No. Only if you put just one table in the tablespace.

At the DB2 "implementation" level (logs, backups, quiesce, ...) there are just tablespaces, no tables.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 10-25-08, 15:28
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by Kota
How to unquiesce?
db2 quiesce tablespaces for table tabschema.tabname reset

See e.g. page 316 of the Utilities Guide:
Quote:
"Table Space State Quiesced Exclusive":
A table space is in this state when the application that invokes the table space quiesce function has exclusive (read or write) access to the table space. You can put a table space in Quiesced Exclusive state explicitly by issuing the QUIESCE TABLESPACES FOR TABLE command.

Ensure that the table space state is Normal before setting it to Quiesced Exclusive.
connect to sample;
quiesce tablespaces for table staff reset;
quiesce tablespaces for table staff exclusive;
connect reset;
The "quiesce" action --taken by utilities like e.g. LOAD or REORG-- is also known as a "claim & drain" action (terminology used on DB2 for z/OS), since it drains out all "normal" tablespace locks while the claim prevents other "normal" locks to be taken in the meantime.
In contrast with "normal" locking, quiesce is a "persistent" way of locking a tablespace, since it is not released at e.g. disconnect, commit, or rollback. Only a "quiesce reset" can release it.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #4 (permalink)  
Old 10-27-08, 11:40
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
Thanks for the info.
__________________
Thanks
SK
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On