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 > DB_CFG_CONFIG or DBM_CFG_CONFIG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-09-05, 14:47
nagasurir nagasurir is offline
Registered User
 
Join Date: Nov 2003
Location: California,USA
Posts: 71
DB_CFG_CONFIG or DBM_CFG_CONFIG

1. I want to get each configuration parameter with its value and want to insert these data in to a table, time to time, which has the cfg parameters as its columns.

2. I am getting the below error when I try to execute the below command(for example)
SELECT SORTHEAP, APP_CTL_HEAP_SZ FROM TABLE(SYSPROC.GET_DB_CONFIG()) AS DBMCFG

Error: SQL0440N No authorized routine named "GET_DB_CONFIG" of type "FUNCTION"
having compatible arguments was found. SQLSTATE=42884

I found this query from the db2 docs found in below link....

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

3. Also, as given in the docs, there is no schema like SYSFUN found and no table function like GET_DBM_CONFIG found.
Only I can find is GET_DB_CONFIG under the schema SYSPROC.

Here, is document giving wrong information or I am doing something wrong?

Environment:
Operating System AIX 5200-03
Level DB2 v8.1.7.445
Client Windows XP proffessional
PTF WR21342

Last edited by nagasurir; 03-15-05 at 17:40.
Reply With Quote
  #2 (permalink)  
Old 03-09-05, 16:13
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Was this database migrated from pre-V8.2 ??? Then please run db2updv8 which creates these routines for you ....

GET_DB_CONFIG is a bug in documentation .. IBM's support pages have a corrected version of the page, but it is a shame that the main documentation has not been fixed yet ...

Have a look at
http://www.db2click.com/tip_month.htm#Feb05-4

for examples

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-09-05, 16:15
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
Try db2 "select ...... ;"; toget all the fields(columns) try select *
__________________
mota
Reply With Quote
  #4 (permalink)  
Old 03-10-05, 13:42
nagasurir nagasurir is offline
Registered User
 
Join Date: Nov 2003
Location: California,USA
Posts: 71
Quote:
Originally Posted by sathyaram_s
Was this database migrated from pre-V8.2 ??? Then please run db2updv8 which creates these routines for you ....

GET_DB_CONFIG is a bug in documentation .. IBM's support pages have a corrected version of the page, but it is a shame that the main documentation has not been fixed yet ...

Have a look at
http://www.db2click.com/tip_month.htm#Feb05-4

for examples

Cheers
Sathyaram
Thank you Sathyaram for the response.
By the way, we don't find this command 'db2updv8' in any instance or database commands folders. Can you guide me where can we get this and execute it?

Thank you once again.
Reply With Quote
  #5 (permalink)  
Old 03-10-05, 13:58
udbraja udbraja is offline
Registered User
 
Join Date: Sep 2004
Posts: 111
It should be under $INSTHOME/sqllib/bin directory.
If not, you are missing some thing........

Thanks,
Raj
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