用户解锁

xiaoxiao2021-02-27  175

查看用户状态 select username,account_status from dba_users;

username:用户名 account_status :用户状态 open:用户已解锁 expired:用户过期 locked:用户被锁

解锁 对scott用户解锁,未解锁不能连接

如果这个用户是锁定状态,我们不能对它进行操作,报错:没有这个表或者视图

步骤1: 修改用户scott 为状态,消除locked alter user scott account unlock;

步骤2: 修改密码,消除expired alter user scott identified by tiger;

转载请注明原文地址: https://www.6miu.com/read-13173.html

最新回复(0)