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 > sql query for Database Manager Configuration

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-05-04, 08:50
alions alions is offline
Registered User
 
Join Date: Feb 2004
Location: Germany
Posts: 3
Question sql query for Database Manager Configuration

Hi all,

i am using DB2 V8 on Windows 2000 (no fixpacks yet).
As you probably all know, V8 provides a possibility to retrieve snapshot data using adequate SQL queries. Example:

select * from table(snapshot_appl('sample',-1)) as appl;

Now what I'd like to know: is that possible to get Database Manager Configuration the similar way? I looked up in SQL Reference Vol 1 and
System Monitor Guide and Reference and unfortunately I couldn't find anything about my problem there.
So maybe you can help.

Thanks in advance

Andy
Reply With Quote
  #2 (permalink)  
Old 04-05-04, 09:24
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Andy,
My SQL Reference for V8 has a function SNAPSHOT_DBM
(page 521) that should fit your needs.

Andy
Reply With Quote
  #3 (permalink)  
Old 04-05-04, 09:42
alions alions is offline
Registered User
 
Join Date: Feb 2004
Location: Germany
Posts: 3
Hi Andy,

thanks for your reply! You're right about SNAPSHOT_DBM. Unfortunately it is not the same as DBM Configuration. For example: I'm looking for the value MAXAGENTS and when I issue the command

get database manager configuration

in the CLP, I get a snapshotlike table where I can find MAXAGENTS.

But if i issue

select * from table(snapshot_dbm(-1)) as dbm;

I get no entry with MAXAGENTS.

Maybe there is no way to access dbm cfg using SQL...

Thank you anyway.

Andy
Reply With Quote
  #4 (permalink)  
Old 04-05-04, 13:38
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I don't think there is a way to do that currently ...

But, it is a 'nice to have' ...

In general , an application may not want to know the dbm parms ... But, if yours does, then you can write a udf ....


Cheers
Sathyaram

Quote:
Originally posted by alions
Hi Andy,

thanks for your reply! You're right about SNAPSHOT_DBM. Unfortunately it is not the same as DBM Configuration. For example: I'm looking for the value MAXAGENTS and when I issue the command

get database manager configuration

in the CLP, I get a snapshotlike table where I can find MAXAGENTS.

But if i issue

select * from table(snapshot_dbm(-1)) as dbm;

I get no entry with MAXAGENTS.

Maybe there is no way to access dbm cfg using SQL...

Thank you anyway.

Andy
__________________
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