Skip to content

ABIGetVSessionWaitBySID

ABIGetVSessionWaitBySID#

Syntax#

int ABIGetVSessionWaitBySID (
    ABIVSessionWait          **aHandle,
    int                      aSessionID );

Arguments#

Data Type Argument In/Output Description
ABIVSessionWait ** aHandle Output The pointer which retrieves the memory address of the structure array that stores the result set
int aSessionID Input The session ID to be selected

Return Values#

If successful, returns the number of rows in the result set that aHandle points to; otherwise, returns an error code.

Description#

This function selects information about wait events for certain sessions from the V$SESSION_WAIT performance view. If this function executes successfully, the aHandle pointer (a pointer of the ABIVSessionWait type that points to an array that stores the result set) is returned.

Example#

Please refer to sample_8.c for an application related to this function.

ABIVSessionWait *sVSessionWait;
int sRowCount;

sRowCount = ABIGetVSessionWaitBySID( &sVSessionWait, 1);