Opens the database object associated with the identifier.
Returns eOk if object was successfully opened, or an appropriate error code in the other case.
openMode must be one of the following: