dbTalk Databases Forums  

Get tablespace autoresize config setting in DB2 V8 via tablefunctions?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Get tablespace autoresize config setting in DB2 V8 via tablefunctions? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Willem Fischer
 
Posts: n/a

Default Get tablespace autoresize config setting in DB2 V8 via tablefunctions? - 02-11-2010 , 05:21 AM






Hi,

I'm writing scripts to monitor our databases. They should be somewhat
universal, i.e. run on on DB2 versions 8+ (yes, we still have some V8
databases).

Is there a way to get the autoresize flag of a tablespace using a
table function (or any other SQL statement)?

Of course, I could parse GET SNAPSHOT FOR TABLESPACES or db2pd, but I
want to implement everything in SQL.

Thanks in advance,

Willem

Reply With Quote
  #2  
Old   
MarkB
 
Posts: n/a

Default Re: Get tablespace autoresize config setting in DB2 V8 via tablefunctions? - 02-11-2010 , 07:20 AM






On Feb 11, 2:21*pm, Willem Fischer <w.l.fisc... (AT) googlemail (DOT) com> wrote:
Quote:
Hi,

I'm writing scripts to monitor our databases. They should be somewhat
universal, i.e. run on on DB2 versions 8+ (yes, we still have some V8
databases).

Is there a way to get the autoresize flag of a tablespace using a
table function (or any other SQL statement)?

Of course, I could parse GET SNAPSHOT FOR TABLESPACES or db2pd, but I
want to implement everything in SQL.

Thanks in advance,

Willem
Hi Willem,

http://publib.boulder.ibm.com/infoce...n/r0012562.htm

select tbsp_auto_resize_enabled, tbsp_name
from table(snap_get_tbsp('', -1)) t
where tbsp_type=0

Sincerely,
Mark B.

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.