#1. Make sure the database is up.
#2. If the database is down, get it back up.

Perhaps if you described what you were looking for, we could better help you.