Updates the alternate server for a database alias in the system database directory.
This API affects the system database directory.
None
db2ApiDf.h
SQL_API_RC SQL_API_FN
db2UpdateAlternateServerForDB (
db2Uint32 versionNumber,
void * pParmStruct,
struct sqlca * pSqlca);
typedef SQL_STRUCTURE db2UpdateAltServerStruct
{
char *piDbAlias;
char *piHostName;
char *piPort;
} db2UpdateAltServerStruct;
SQL_API_RC SQL_API_FN
db2gUpdateAlternateServerForDB (
db2Uint32 versionNumber,
void * pParmStruct,
struct sqlca * pSqlca);
typedef SQL_STRUCTURE db2gUpdateAltServerStruct
{
db2Uint32 iDbAlias_len;
char *piDbAlias;
db2Uint32 iHostName_len;
char *piHostName;
db2Uint32 iPort_len;
char *piPort;
} db2gUpdateAltServerStruct;
The API will only be applied to the system database directory.
The API should only be used on a server. If it is issued on a client, it will be ignored and warning SQL1889W will be issued.
If LDAP (Lightweight Directory Access Protocol) support is enabled on the current machine, the alternate server for the database will automatically be updated in the LDAP directory.