This sample opens a hybrid database using 1 or 4 memory devices depending on the runtime settings determined from the database schema and whether the sample is linked with disk-based or in-memory libraries; then it displays runtime information and closes the database. The application demonstrates how to use the runtime flags
mco_disk_supportedto check for the presence of the disk-based runtime library andmco_shm_supportedfor the shared memory runtime library.
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bindirectory:02_open_hybridBut it is more instructive to run it in your development environment debugger, stepping through the code.