Question
If your database was created prior to DB2 Universal Database Version 8.1, FixPak 7, new UDFs SYSFUN.GET_DBM_CONFIG and SYSFUN.APPLICATION_ID may not exist.
Answer
The db2updv8 command is a program that will define new user defined functions (UDFs) and stored procedures (SPs) that have been added to DB2 UDB in a Version 8.x FixPak.
The UDFs SYSFUN.GET_DBM_CFG and SYSFUN.APPLICATION_ID are supported in DB2 UDB Version 8.1 FixPak 7. Run db2updv8 to use these new functions.
e.g. db2 "select application_id() from sysibm.sysdummy1"
Also note that other tools (for example, the Activity Monitor and its stored procedures) may not be fully functional until these UDFs are defined.
db2updv8 - Update Database to Version 8 Current Level
This command updates the system catalogs in a database to support the current level by enabling the following built-in routines:
v HEALTH_DBM_INFO
v HEALTH_DBM_HI
v HEALTH_DBM_HI_HIS
v HEALTH_DB_INFO
v HEALTH_DB_HI
v HEALTH_DB_HI_HIS
v HEALTH_TBS_INFO
v HEALTH_TBS_HI
v HEALTH_TBS_HI_HIS
v HEALTH_CONT_INFO
v HEALTH_CONT_HI
v HEALTH_CONT_HI_HIS
v GET_WRAP_CFG_C
v LIST_FILES_C
v ODBC_DISCOVERY
v HEALTH_HI_REC
v EXEC_DB2_SCRIPT
v HEALTH_HI_REC
v EXEC_DB2_SCRIPT
Authorization:
sysadm
Required connection:
Database. This command automatically establishes a connection to the specified
database.
Command syntax:
db2updv8 -d database-name
-u userid -p password -h
Command parameters:
-d database-name
Specifies the name of the database to be updated.
-u userid
Specifies the user ID.
-p password
Specifies the password for the user.
-h Displays help information. When this option is specified, all other options
are ignored, and only the help information is displayed.
Example
After installing the current level (a FixPak or a new version), update the system catalog in the sample database by issuing the following command:
db2updv8 -d sample
Usage notes:
1. This tool can only be used on a database running DB2 Version 8.1.2 or later. If the command is issued more than once, no errors are reported and each of the catalog updates is applied only once.
2. To enable the new built-in functions, all applications must disconnect from the database and the database must be deactivated if it has been activated.
3. This command must be run if you will be importing data using nicknames.
https://www-304.ibm.com/support/docview.wss?uid=swg21221547
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0000915.htm