difference between locking a user account and revoking restricted session
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