OCILIB (C and C++ Driver for Oracle)
4.6.3
|
To use OCILIB, it first needs to be initialized through a call to OCI_Initialize().
Then, the application connects to server, executes queries...
Finally, OCILIB resources must be released by OCI_Cleanup()
The following objects are automatically freed by the library:
All other standalone object instances (mutexes, threads, dates, lobs, ...) ARE NOT freed.
Functions | |
OCI_EXPORT boolean OCI_API | OCI_Initialize (POCI_ERROR err_handler, const otext *lib_path, unsigned int mode) |
Initialize the library. More... | |
OCI_EXPORT boolean OCI_API | OCI_Cleanup (void) |
Clean up all resources allocated by the library. More... | |
OCI_EXPORT unsigned int OCI_API | OCI_GetOCICompileVersion (void) |
Return the version of OCI used for compilation. More... | |
OCI_EXPORT unsigned int OCI_API | OCI_GetOCIRuntimeVersion (void) |
Return the version of OCI used at runtime. More... | |
OCI_EXPORT unsigned int OCI_API | OCI_GetImportMode (void) |
Return the Oracle shared library import mode. More... | |
OCI_EXPORT unsigned int OCI_API | OCI_GetCharset (void) |
Return the OCILIB charset type. More... | |
OCI_EXPORT big_uint OCI_API | OCI_GetAllocatedBytes (unsigned int mem_type) |
Return the current number of bytes allocated internally in the library. More... | |
OCI_EXPORT boolean OCI_API | OCI_EnableWarnings (boolean value) |
Enable or disable Oracle warning notifications. More... | |
OCI_EXPORT boolean OCI_API | OCI_SetErrorHandler (POCI_ERROR handler) |
Set the global error user handler. More... | |
OCI_EXPORT boolean OCI_API | OCI_SetHAHandler (POCI_HA_HANDLER handler) |
Set the High availability (HA) user handler. More... | |
OCI_EXPORT boolean OCI_API OCI_Initialize | ( | POCI_ERROR | err_handler, |
const otext * | lib_path, | ||
unsigned int | mode | ||
) |
#include <ocilib.h>
Initialize the library.
err_handler | - Pointer to error handler procedure (optional) |
lib_path | - Oracle shared library path (optional) |
mode | - Environment mode |
Possible values for parameter mode:
lib_path
, missing MSVC runtime required by oci.dll (MS Windows)Referenced by ocilib::Environment::SetHAHandler().
OCI_EXPORT boolean OCI_API OCI_Cleanup | ( | void | ) |
#include <ocilib.h>
Clean up all resources allocated by the library.
Referenced by ocilib::Environment::SetHAHandler().
OCI_EXPORT unsigned int OCI_API OCI_GetOCICompileVersion | ( | void | ) |
#include <ocilib.h>
Return the version of OCI used for compilation.
Referenced by ocilib::Environment::GetCompileMajorVersion(), ocilib::Environment::GetCompileMinorVersion(), ocilib::Environment::GetCompileRevisionVersion(), and ocilib::Environment::GetCompileVersion().
OCI_EXPORT unsigned int OCI_API OCI_GetOCIRuntimeVersion | ( | void | ) |
#include <ocilib.h>
Return the version of OCI used at runtime.
Referenced by ocilib::Environment::GetRuntimeMajorVersion(), ocilib::Environment::GetRuntimeMinorVersion(), ocilib::Environment::GetRuntimeRevisionVersion(), and ocilib::Environment::GetRuntimeVersion().
OCI_EXPORT unsigned int OCI_API OCI_GetImportMode | ( | void | ) |
#include <ocilib.h>
Return the Oracle shared library import mode.
Referenced by ocilib::Environment::GetImportMode().
OCI_EXPORT unsigned int OCI_API OCI_GetCharset | ( | void | ) |
#include <ocilib.h>
Return the OCILIB charset type.
Referenced by ocilib::Environment::GetCharset().
OCI_EXPORT big_uint OCI_API OCI_GetAllocatedBytes | ( | unsigned int | mem_type | ) |
#include <ocilib.h>
Return the current number of bytes allocated internally in the library.
mem_type | : type of memory to request |
Referenced by ocilib::Environment::GetAllocatedBytes().
OCI_EXPORT boolean OCI_API OCI_EnableWarnings | ( | boolean | value | ) |
#include <ocilib.h>
Enable or disable Oracle warning notifications.
value | - enable/disable warnings |
Referenced by ocilib::Environment::EnableWarnings().
OCI_EXPORT boolean OCI_API OCI_SetErrorHandler | ( | POCI_ERROR | handler | ) |
#include <ocilib.h>
Set the global error user handler.
handler | - Pointer to error handler procedure |
OCI_EXPORT boolean OCI_API OCI_SetHAHandler | ( | POCI_HA_HANDLER | handler | ) |
#include <ocilib.h>
Set the High availability (HA) user handler.
handler | - Pointer to HA handler procedure |
Referenced by ocilib::Environment::SetHAHandler().