Before Forced Recovery

Restricting database access provides greater control over inadvertent database opens during forced recovery.

Use two server startup switches to restrict access:

An alternate way to restrict connections is to specify:

sa_server_option('disable_connections', 'ON')

just after you start the connection where you are performing forced recovery and

sa_server_option('disable_connections', 'OFF')

on the same connection after recovery. The disadvantage is that this method precludes emergency access from another DBA connection.