Skip to content

ABIGetVSesstat

ABIGetVSesstat#

Syntax#

int ABIGetVSesstat (
    ABIVSesstat          **aHandle,
    unsigned int         aExecutingOnly );

Arguments#

Data Type Argument In/Output Description
ABIVSesstat ** aHandle Output The pointer which retrieves the memory address of the structure array that stores the result set
unsigned int aExecutingOnly Input 0: Selects all sessions
1: Selects only active sessions

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 the V$SESSTAT performance view. If this function executes successfully, the aHandle pointer (a pointer of the ABIVSesstat type that points to an array that stores the result set) is returned.

Example#

Please refer to sample_3.c for an applicaiton related to this function.

ABIVSesstat *sVSesstat;
int sRowCount;

sRowCount = ABIGetVSesstat( &sVSesstat );