In the event of a failure of either the primary database or the machine on which it runs, failover occurs. During failover, database activity is moved to a secondary database.