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 > Quiesce Tablespace command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-09, 03:47
alecs alecs is offline
Registered User
 
Join Date: Mar 2009
Posts: 15
Quiesce Tablespace command

Hi,

I am having trouble with "quiesce tablespaces" command on db2. I ran this command for a table and it made the tablespace on which the table resides inactive as intended.
I used "QUIESCE TABLESPACES FOR schema.table_name EXCLUSIVE".
Then I ran "QUIESCE TABLESPACES FOR schema.table_name RESET" to make the tablespace available again.This command ran correctly but still, I can't access the tablespace. When I try to create a new table on that tablespace for example, it says "Tablespace access is not allowed".
I must say that I was connected with "db2admin" user when I ran both commands (on the same table).

See the link DB2 Universal Database for QUIESCE TABLESPACE info.


Thanks!
Reply With Quote
  #2 (permalink)  
Old 03-18-09, 04:56
D.Utro D.Utro is offline
Registered User
 
Join Date: Feb 2009
Posts: 14
Disconnect. And run it again script with RESET
__________________
Best regrads,
Danny Utro.
Reply With Quote
  #3 (permalink)  
Old 03-18-09, 05:34
alecs alecs is offline
Registered User
 
Join Date: Mar 2009
Posts: 15
Did it already. Even restarted the server. I still have 2 processes running that can't be killed: "db2taskd" and "db2stmm". They are running on "*LOCAL.DB2.090318092915" and "*LOCAL.DB2.090318092916" O.S. App IDs.
Maybe it's something related to these processes.
What should I do?
Reply With Quote
  #4 (permalink)  
Old 03-18-09, 07:27
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
What does "list tablespaces show detail" tell you about that tablespace?

PS. You should always indicate your platform and the DB2 version when you ask questions.
Reply With Quote
  #5 (permalink)  
Old 03-18-09, 08:10
alecs alecs is offline
Registered User
 
Join Date: Mar 2009
Posts: 15
I use DB2 v9 on Windows XP SP2, sorry.

It shows:

Tablespace ID = 2
Name = USERSPACE1
Type = Database managed space
Contents = Long data only
State = 0x0004
Detailed explanation:
Quiesced: EXCLUSIVE
Total pages = 8192
Useable pages = 8160
Used pages = 0
Free pages = 0
High water mark (pages) = 0
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 32
Number of containers = 1
Number of quiescers = 1
Quiescer 1:
Tablespace ID = 2
Object ID = 15

I don't know why it says it is still quiesced since I ran the "QUIESCE TABLESPACES FOR TABLE DB2ADMIN.CHAR_TYPES RESET" command, which runs successfully.
Reply With Quote
  #6 (permalink)  
Old 03-18-09, 10:04
D.Utro D.Utro is offline
Registered User
 
Join Date: Feb 2009
Posts: 14
Strange. I can't this reproduced on my DB2 server. Everything allright, EXCLUSIVE and after RESET - Normal.
__________________
Best regrads,
Danny Utro.
Reply With Quote
  #7 (permalink)  
Old 03-18-09, 10:06
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Try increasing DIAGLEVEL to 4 and check what comes up in db2diag.log when you attempt to reset the quiesced state.

And just a wild guess: if you ran the quiesce exclusive command for several tables, may be you should run quiesce reset for the same tables, not just one?
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