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 > need urgent help regarding the alteration on a SMS table space userspace1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-12, 04:41
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
Thumbs up need urgent help regarding the alteration on a SMS table space userspace1

environment details : db2 9.7.4 on linux OS

i need an urgent help regarding the alteration of the tablespace *userspace1*
the mount in which the user space is present is full and i would want to add an other container to it which is on a different mount point and which has morespace.
but i am unable to do the same

i tried to user the command
alter tablespace userspace1
add(file,'newcontainername',2000);

but this command works for the dms tablespaces but not on this sms.

plz help..!!!

Last edited by divya.s; 02-01-12 at 04:44.
Reply With Quote
  #2 (permalink)  
Old 02-01-12, 04:51
Revu Revu is offline
Registered User
 
Join Date: Jan 2012
Posts: 18
im not 100% sure about mi answer but i think that you cannot add containers to a SMS tablespace, it has to be a DMS tablespace.
Reply With Quote
  #3 (permalink)  
Old 02-01-12, 05:00
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
not possible
you have to create a new ts on a new location and move some tables to this ts
in non-dev/test environment it is always better to use dms also for maintenance reasons
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #4 (permalink)  
Old 02-01-12, 05:00
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
so what would be the other option i could do immediately to the get application running,without dropping and recreating the table??
Reply With Quote
  #5 (permalink)  
Old 02-01-12, 05:02
divya.s divya.s is offline
Registered User
 
Join Date: Jul 2011
Posts: 36
moving the tables means droping and recreating them right??
Reply With Quote
  #6 (permalink)  
Old 02-01-12, 05:04
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you could copy the table with load cursor to a new table and finally rename the tables
but be carefull that in the mean time no rows have been added/changed/..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #7 (permalink)  
Old 02-01-12, 05:06
Revu Revu is offline
Registered User
 
Join Date: Jan 2012
Posts: 18
you could try to reorg some tables using a tempspace to free some space lowing the HWM.
Reply With Quote
  #8 (permalink)  
Old 02-01-12, 06:39
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by divya.s View Post
environment details : db2 9.7.4 on linux OS
You can use the new "admin_move_table" IBM DB2 9.7 for Linux, UNIX and Windows Information Center to move your tables to another tablespace on-the-fly.
Maybe you must drop your FK contraints first and rebuild them aferwards.
Quote:
Originally Posted by Revu View Post
you could try to reorg some tables using a tempspace to free some space lowing the HWM.
Does that work on SMS tablespaces?????
Reply With Quote
  #9 (permalink)  
Old 02-01-12, 08:02
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Revu View Post
you could try to reorg some tables using a tempspace to free some space lowing the HWM.
High water mark in an SMS?
Reply With Quote
  #10 (permalink)  
Old 02-01-12, 08:54
Revu Revu is offline
Registered User
 
Join Date: Jan 2012
Posts: 18
i just want to explain that he could free some space in the tbs.
Reply With Quote
  #11 (permalink)  
Old 02-01-12, 10:18
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Copy the SMS container to the new location and use db2relocatedb

Cannot be done online, though

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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