-- 修改密码的有效期策略, 永不过期
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Profile altered
-- 修改密码
SQL> alter user zc_sczh02 identified by zc_sczh20;
User altered
-- 查看用户状态,是否被锁定
select username, t.account_status from dba_users t;
-- 解锁用户
ALTER USER 用户名 ACCOUNT UNLOCK;
-- 无限尝试不锁定
ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
alter profile default limit failed_login_attempts 100;