ocrDbCopy implementation for shared memory. TODOs left : 1) fix release bug 2) add ONCE event support 3) Distributed semantics.