The common SQL API provides a collection of common-signature and signature-stable stored procedures that are portable across IBM® data servers. You can use these stored procedures to create applications that perform common administrative functions such as getting and setting the values of configuration parameters or getting system and error information.
IBM data servers have many ways to obtain data for administrative purposes and to issue administrative commands. Prior to the introduction of this feature, the variety of methods for performing administrative functions, their different syntaxes, and their security options resulted in tight coupling between tool and data server versions, high implementation complexity on the tools side, and slow integration.
Procedure name | Description |
---|---|
CANCEL_WORK | Cancels either a specific activity (for example, an SQL statement) or all activities for a connected application |
GET_CONFIG | Retrieves data server configuration data, including nodes.cfg file data, database manager configuration data, database configuration data, and DB2® registry settings from all database partitions |
GET_MESSAGE | Retrieves the short message text, long message text, and SQLSTATE for an SQLCODE |
GET_SYSTEM_INFO | Retrieves information about the data server, including information about the system, the current instance, installed DB2 products, environment variables, and available processors |
SET_CONFIG | Updates the configuration parameters retrieved by the GET_CONFIG procedure |