Skip to content

Locked Account

Thomas Shone edited this page Feb 4, 2023 · 2 revisions

Issue Type

Housekeeping

Problem

Accounts can be locked to prevent use. This might be done for a number of reasons but it's always a good idea to check to see if they need to be removed or unlocked.

Remediation

Unlock

You can unlock an account by running the following command:

ALTER USER [account] ACCOUNT UNLOCK;

Remove

You can remove an account by running the following command:

DROP USER [account];

External Resources

Clone this wiki locally