Best practice for a DBA to login to a database

best practicesoracle

I've read that a DBA never should login to a database as system user. That makes me wondering… how should a DBA login to a database? Should he/she create a DBA account and use it for login purposes? But I think that would be the same as login as system. Or should he login to each schema as the owner of that schema ?

Best Answer

In theory you should login as the user with as few privileges as possible that can still accomplish the task. In practice you can maintain a better password, save time, and have more useful auditing/logging information if you login as yourself. Here is the guideline I follow:

Only login using an account other than your own when…

  1. Your own account doesn’t have sufficient privileges.
  2. You are trying to track down an issue that cannot be reproduced using your own account.