HCL OneDB libraries

These topics describe how to link the static, shared, and thread-safe HCL OneDB™ general libraries with your application.

HCL OneDB products use the HCL OneDB general libraries for interactions between the client SQL application programming interface (API) products () and the database server. You can choose between the following types of HCL OneDB general libraries to link with your application:
  • Static HCL OneDB general libraries

    To link a static library, the linker copies the library functions to the executable file of your program. The static HCL OneDB general libraries allow the program on computers that do not support shared memory to access the HCL OneDB general library functions.

  • Shared HCL OneDB general libraries

    To link a shared library, the linker copies information about the location of the library to the executable file of your program. The shared HCL OneDB libraries allow several applications to share a single copy of these libraries, which the operating system loads, once, into shared memory.

  • Thread-safe versions of static and shared HCL OneDB general libraries

    The thread-safe versions of HCL OneDB general libraries allow the application that has several threads to call these library functions simultaneously. The thread-safe versions of HCL OneDB libraries are available as both static libraries and shared libraries.

Beginning with HCL OneDB Client Software Development Kit version 3.0, static versions of HCL OneDB general libraries are available on Windows™ and UNIX™ operating systems. The following table shows the available options.
Table 1. Different version of the ESQL/C general library available for UNIX and Windows
Linking options Thread-safe Default
Static Static, thread-safe general libraries Static, default general libraries
Shared Shared, thread-safe general libraries Shared, default general libraries.