Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Relational Functions, 8 of 38
This function is used to release a session that was retrieved using OCILogon2()
or OCILogon()
.
sword OCILogoff ( OCISvcCtx *svchp OCIError *errhp );
The service context handle which was used in the call to OCILogon()
or OCILogon2()
.
An error handle you can pass to OCIErrorGet()
for diagnostic information in the event of an error.
This function is used to release a session that was retrieved using OCILogon2()
or OCILogon()
. If OCILogon()
was used, then this function terminates the connection and session. If OCILogon2()
was used, then the exact behavior of this call is determined by the mode
in which the corresponding OCILogon2()
function was called. In the default case, it will close the session/connection. For connection pooling, it closes the session and returns the connection to the pool. For session pooling, it returns the session/connection pair to the pool.
See Also:
For more information on logging on and off in an application, refer to the section "Application Initialization, Connection, and Session Creation". |
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|