📜  oracle list user locked - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:26.661000             🧑  作者: Mango

代码示例1
SELECT * FROM DBA_USERS WHERE ACCOUNT_STATUS <> 'OPEN';
-- Unlock a user
ALTER USER my_user ACCOUNT UNLOCK;
-- If password is expired 
ALTER USER my_user IDENTIFIED BY new_password ACCOUNT UNLOCK;