MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re-Allocating a TableSpace

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Wed Aug 31, 2005 12:26 pm    Post subject: Re-Allocating a TableSpace Reply with quote

I have a table that has grown larger than expected. Here are the steps I believe need to be done:
Unload table
Delete table and tablespace(1 table in 1 tablespace)
Re-allocate the tablespace
Create tablespace and table with indexes
Reload table

Do I need to rebind all programs accessing the table?
Did I miss something?
It's my understanding you can't alter tablespace allocations.

Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Aug 31, 2005 12:55 pm    Post subject: Reply with quote

Quote:

It's my understanding you can't alter tablespace allocations.


Wrong . You can indeed change the tablespace allocations. You actually don't have to drop and re-create the table spaces. you can simply use ALTER ADDVOLUMES and extend the space.

Check this link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAGH10/2.2.7?DT=20010212102121

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Wed Aug 31, 2005 1:23 pm    Post subject: Reply with quote

Kolusu, The volumes this tablespace resides on are not full or even close to being full. The tablespace was created like this:

PRIQTY 140000
SECQTY 1400

ALLOCATION
SPACE-TYPE------CYLINDER
SPACE-PRI------------195
SPACE-SEC--------------2

There are 198 extents, so I would like to change the allocations.
Above appears to be used for full or close to full volumes. At least this is how I interpreted the manual. Correct me if I'm wrong.

Thanks,
NASCAR9
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Aug 31, 2005 1:43 pm    Post subject: Reply with quote

If you are not using STOGROUPs, the ADD VOLUMES will not work. If this is the case then these are the steps:

1. Backup the tables in the tablespace;
2. Stop the tablespace
3. Delete / Define the VSAM file (making it bigger)
4. Start the tablespace
5. Recover the tablespace TOCOPY
6. Either backup the tables or REPAIR .. NOCOPYPEND
7. Rebind all the PLANS affected

If you are using STOGROUPs then alter the PRIQTY, SECQTY and run a REORG.
Back to top
View user's profile Send private message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Wed Aug 31, 2005 1:53 pm    Post subject: Reply with quote

Thanks Bithead,
We are using Stogroups. The table was poorley allocated from day one. We were not aware you could alter the allocations.

Thanks,
NASCAR9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group