To close Historical Server, connect to it using the isql utility and issue one of the following commands:
hs_shutdown – defers shutdown until all active recording sessions complete and any other active connections are closed. No new connections are accepted during this time.
A deferred shutdown may block for an extended period of time, and entering Ctrl+C while the hs_shutdown command is blocked inside the isql has no effect.
hs_shutdown no_wait – shuts down Historical Server immediately and terminates any connections and active recording sessions.
In either case, the active recording sessions are shut down in a controlled manner. The Historical Server control file and the historical data files are available to Historical Server when it is restarted.