ABIGetVSesstatBySID
ABIGetVSesstatBySID#
Syntax#
int ABIGetVSesstatBySID (
ABIVSesstat **aHandle,
int aSessionID );
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 |
int | aSessionID | 입력 | 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 statistics about a certain session from 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 application related to this function.
ABIVSesstat *sVSesstat;
int sRowCount;
/* Select session whose ID is 1 */
sRowCount = ABIGetVSesstatBySID ( &sVSesstat, 1 );