OraLogoff Function

Action

Shuts down a connection to an Oracle database. When a program establishes multiple simultaneous active connections, separate OraLogoff function calls must be performed for each active connection.

Include file

Ora.bdh

Syntax

OraLogoff( in hConnection : number ): boolean;

Return value

  • true if successful

  • false otherwise. In this case, you can use the OraOciError function to retrieve the Oracle OCI error code

Parameter Description
hConnection Valid handle to a database connection established using the OraLogon function

Example

var
  hConnection : number;
  cCursor     : cursor;

dcltrans
  transaction TMain
  begin
    OraLogon(hConnection, "user", "password", "orclnet2");
    OraOpen(cCursor, hConnection);
    ...
    OraLogoff(hConnection);
  end TMain;

Sample scripts

OraArrayFetch.bdf, OraSample.bdf, OraLoadPers.bdf