Initializes the OCI environment and allocates a handle to the initialized environment.
Ora8.bdh
Ora8Init (out hEnv : number, in nMode : number optional ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hEnv | Variable receiving the handle to the initialized environment. |
nMode |
Specifies initialization of an environment mode (optional). Valid modes are:
|
var ghEnv0 : number; dcltrans transaction TMain var bOK : boolean; begin bOK := Ora8Init(ghEnv0, OCI_DEFAULT); if bOK then write("OCI environment successfully initialized."); writeln; else write("Error initializing OCI environment."); writeln; end; ... Ora8HandleFree(ghEnv0, OCI_HTYPE_ENV); end TMain;
OCI environment successfully initialized.