Returns the values of individual entries in the database manager configuration file.
For a brief description of the database manager configuration parameters, see the Command Reference. For detailed information about these parameters, see the Administration Guide.
Authorization
None
Required Connection
An instance attachment is not required to perform database manager configuration operations at the current instance (as defined by the value of the DB2INSTANCE environment variable), but is required to perform database manager configuration operations at other instances. To display the database manager configuration for another instance, it is necessary to first attach to that instance.
Version
sqlutil.h
C API Syntax
/* File: sqlutil.h */ /* API: Get Database Manager Configuration */ /* ... */ SQL_API_RC SQL_API_FN sqlfxsys ( unsigned short NumItems, struct sqlfupd * pItemList, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlutil.h */ /* API: Get Database Manager Configuration */ /* ... */ SQL_API_RC SQL_API_FN sqlgxsys ( unsigned short NumItems, struct sqlfupd * pItemList, struct sqlca * pSqlca); /* ... */ |
API Parameters
REXX API Syntax
GET DATABASE MANAGER CONFIGURATION USING :values |
REXX API Parameters
Sample Programs
Usage Notes
If an attachment to a remote instance (or a different local instance) exists, the database manager configuration parameters for the attached server are returned; otherwise, the local database manager configuration parameters are returned.
The application is responsible for allocating sufficient memory for each data element returned. For example, the value returned for dftdbpath can be up to 215 bytes in length.
If an error occurs, the information returned is invalid. If the configuration file is invalid, an error message is returned. The user must install the database manager again to recover.
To set the configuration parameters to the default values shipped with the database manager, use sqlfrsys - Reset Database Manager Configuration.
For more information about these parameters, see the Administration Guide.
See Also
sqlfdsys - Get Database Manager Configuration Defaults
sqlfrsys - Reset Database Manager Configuration
sqlfusys - Update Database Manager Configuration.