Database Administration (MOSC)

MOSC Banner

difference between locking a user account and revoking restricted session

edited Jun 3, 2015 11:49AM in Database Administration (MOSC) 8 commentsAnswered ✓

I'll be putting the database in restricted mode to perform maintenance and need to disallow users from connecting to the database, including users who have the DBA role, with the exception of a few people.

If the database will be in restricted mode, what are the fundamental differences between locking a user account who has restricted session privilege and revoking restricted session?

ALTER USER <username> ACCOUNT LOCK;


or


REVOKE RESTRICTED SESSION FROM <username>;   <--for those who have been explicitly granted restricted session

REVOKE RESTRICTED SESSION FROM DBA;  <-- for those who implicitly been granted restricted session through the DBA role

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center