sword OCILogoff(OCISvcCtx *svchp, OCIError *errhp);
En cas d'erreur, un compte-rendu est associé au handle errhp.
Le résultat est OCI_SUCCESS en cas de succès.
#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)
{
...
}
...