OCILogoff

Prototypes

sword OCILogoff(OCISvcCtx *svchp, OCIError *errhp);

Description

Ferme la connexion pour le handle svchp.

En cas d'erreur, un compte-rendu est associé au handle errhp.

Le résultat est OCI_SUCCESS en cas de succès.

Exemple

#include <ociap.h>

static OCIEnv *hEnvironnement;
static OCISvcCtx *hConnexion;
static OCIError *hErreur;
...
if (OCILogon2(hEnvironnement, hErreur, &hConnexion, (OraText *)"scott", -1, (OraText *)"tiger", -1 (OraText *)"oracle_sun", -1, OCI_DEFAULT)!=OCI_SUCCESS) ...
if (OCILogoff(hConnexion, hErreur)!=OCI_SUCCESS) ...

Voir aussi

OCILogon2 pour se connecter.