Forces all users off the instance, immediately rolls back all active transaction, and puts the instance into quiesce mode. This API provides exclusive access to the instance. During this quiesced period, system administration can be performed on the instance. After administration is complete, you can unquiesce the instance using the db2InstanceUnquiesce API. This API allows other users to connect to the databases within the instance without having to shut down and perform another instance start.
In this mode, only groups or users with DBADM, sysadm, sysmaint, or sysctrl authority will have access to the database and its objects.
None
db2ApiDf.h
SQL_API_RC SQL_API_FN
db2InstanceQuiesce (
db2Uint32 versionNumber,
void * pParmStruct,
struct sqlca * pSqlca);
typedef SQL_STRUCTURE db2InsQuiesceStruct
{
char *piInstanceName;
char *piUserId;
char *piGroupId;
db2Uint32 iImmediate;
db2Uint32 iForce;
db2Uint32 iTimeout;
db2Uint32 iQOptions;
} db2InsQuiesceStruct;
SQL_API_RC SQL_API_FN
db2gInstanceQuiesce (
db2Uint32 versionNumber,
void * pParmStruct,
struct sqlca * pSqlca);
typedef SQL_STRUCTURE db2gInsQuiesceStruct
{
db2Uint32 iInstanceNameLen;
char *piInstanceName;
db2Uint32 iUserIdLen;
char *piUserId;
db2Uint32 iGroupIdLen;
char *piGroupId;
db2Uint32 iImmediate;
db2Uint32 iForce;
db2Uint32 iTimeout;
db2Uint32 iQOptions;
} db2gInsQuiesceStruct;