Returns the values of individual entries in a database configuration file.
For a brief description of the database configuration parameters, see the Command Reference. For detailed information about these parameters, see the Administration Guide.
Scope
This API returns information only for the node from which it is called.
Authorization
None
Required Connection
Instance. It is not necessary to call ATTACH before getting the configuration of a remote database. If the database is cataloged as remote, an instance attachment to the remote node is established for the duration of the call.
Version
sqlutil.h
C API Syntax
/* File: sqlutil.h */ /* API: Get Database Configuration */ /* ... */ SQL_API_RC SQL_API_FN sqlfxdb ( _SQLOLDCHAR * pDbAlias, unsigned short NumItems, struct sqlfupd * pItemList, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlutil.h */ /* API: Get Database Configuration */ /* ... */ SQL_API_RC SQL_API_FN sqlgxdb ( unsigned short DbAliasLen, unsigned short NumItems, struct sqlfupd * pItemList, struct sqlca * pSqlca, char * pDbAlias); /* ... */ |
API Parameters
REXX API Syntax
GET DATABASE CONFIGURATION FOR database_alias USING :values |
REXX API Parameters
Sample Programs
Usage Notes
Entries in the database configuration file that are not listed in the token values for pItemList are not accessible to the application.
The application is responsible for allocating sufficient memory for each data element returned. For example, the value returned for newlogpath can be up to 242 bytes in length.
If an error occurs, the information returned is not valid. If the configuration file is invalid, an error message is returned. The database must be restored from a backup version.
To set the database configuration parameters to the database manager defaults, use sqlfrdb - Reset Database Configuration.
For more information about these parameters, see the Administration Guide.
See Also
sqlfddb - Get Database Configuration Defaults
sqlfrdb - Reset Database Configuration
sqlfudb - Update Database Configuration.