The DbSite handle is used by Replication Manager applications to manage and configure replication sites. You create a DbSite handle using the DbEnv::repmgr_site() , DbEnv::repmgr_site_by_eid() , or DbEnv::repmgr_local_site() , methods. All DbSite handles must be closed before closing DbEnv handles. Use the DbSite::close() method to close a DbSite handle.