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 > Tablespace Management

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-05, 05:25
esanthosh esanthosh is offline
Registered User
 
Join Date: Oct 2005
Posts: 8
Tablespace Management

Dear all,

I have to schedule a script which will tell me the amount of free space left in each tablespace available in the database. Please let me know how to proceed with this script.

Regards,
Santhosh
Reply With Quote
  #2 (permalink)  
Old 10-31-05, 10:59
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
What platform?

You can schedule it through the Task Center if you've set up your admin instance. Or you can use the operating system's native scheduling, ie. crontab.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 11-01-05, 06:27
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
ts mgt

there are table function, that allow you to query ts information with regular select statements and predicates...
SNAPSHOT_TBS_CFG table function
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #4 (permalink)  
Old 11-01-05, 10:03
chavadb2 chavadb2 is offline
Registered User
 
Join Date: Aug 2004
Posts: 138
I use the script in the following link

http://www.db2click.com/my_script_di...space.ksh.html

usage -> db2_tspace.ksh -d dbname

not useful if you have sms tablespaces. THis only helps if you have dms
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