Then, the application connects to server, executes queries, ....
Finally, OCILIB resources must be released by OCI_Cleanup()
#include "ocilib.h" int main(void) { if (!OCI_Initialize(NULL, NULL, OCI_ENV_DEFAULT)) return EXIT_FAILURE; /* ... application code here ... */ OCI_Cleanup(); return EXIT_SUCCESS; }
Functions | |
OCI_EXPORT boolean OCI_API | OCI_Initialize (POCI_ERROR err_handler, const mtext *home, unsigned int mode) |
Initializes the library. | |
OCI_EXPORT boolean OCI_API | OCI_Cleanup (void) |
Clean up all resources allocated by the library. | |
OCI_EXPORT unsigned int OCI_API | OCI_GetOCICompileVersion (void) |
Return the version of OCI used for compilation. | |
OCI_EXPORT unsigned int OCI_API | OCI_GetOCIRuntimeVersion (void) |
Return the version of OCI used at runtime. | |
OCI_EXPORT unsigned int OCI_API | OCI_GetImportMode (void) |
Return the Oracle shared library import mode. | |
OCI_EXPORT unsigned int OCI_API | OCI_GetCharsetMetaData (void) |
Return the metadata charset type. | |
OCI_EXPORT unsigned int OCI_API | OCI_GetCharsetUserData (void) |
Return the user data charset type. |
OCI_EXPORT boolean OCI_API OCI_Cleanup | ( | void | ) |
OCI_EXPORT unsigned int OCI_API OCI_GetCharsetMetaData | ( | void | ) |
OCI_EXPORT unsigned int OCI_API OCI_GetCharsetUserData | ( | void | ) |
OCI_EXPORT unsigned int OCI_API OCI_GetImportMode | ( | void | ) |
OCI_EXPORT unsigned int OCI_API OCI_GetOCICompileVersion | ( | void | ) |
Return the version of OCI used for compilation.
OCI_EXPORT unsigned int OCI_API OCI_GetOCIRuntimeVersion | ( | void | ) |
Return the version of OCI used at runtime.
Definition at line 1220 of file library.c.
Referenced by OCI_GetVersionConnection().
OCI_EXPORT boolean OCI_API OCI_Initialize | ( | POCI_ERROR | err_handler, | |
const mtext * | home, | |||
unsigned int | mode | |||
) |
Initializes the library.
err_handler | - Pointer to error handler procedure (optional) | |
home | - Oracle home path (optional) | |
mode | - Environment mode |