How to check a user status (Locked/ unlocked) in Oracle

 To check a user status in Oracle Database run below command: 

SELECT 
  USERNAME, 
  ACCOUNT_STATUS 
from 
  dba_users 
where 
  username like 'User_Name';

Example query and its output: 




Comments

Popular posts from this blog

How to Enable / Disable a user in MS SQL Server

How to Create a Database in MS SQL Server

How to Import / Export Data in Oracle