oracle用户被锁定,oracle用户锁定
sqlplus sys/password@localhost:1521/cmsx as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 7月 21 13:33:13 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alert user cmsuser account unlock;
SP2-0734: 未知的命令开头 "alert user..." - 忽略了剩余的行。
SQL> alter user cmsuser account unlock;
用户已更改。
SQL>
1.你可以用 alter user 用户ID account unlock 先解开这个用户锁定
2.这个机制是在用户的profile中设定,profile主要是对系统资源和用户囗令的管理,你可以打开查看,里面有个 FAILED_LOGIN_ATTEMPTS 参数,你还可以结合其它的参数一起使用来管理资源和囗令。系统有个默认的profile叫default
给个示例:
1.资源的
create profile luck_prof limit
sessions_per_user 8
cpu_per_session 16800
logical_reads_per_session 23688
connect_time 268
idle_time 38;
2.囗令的,如修改 default
alter profile default limit
password_life_time 60
password_grace_time 10
password_reuse_time 1800
failed_login_attempts 3
password_lock_time 1/1440;
然后再创建或修改用户时指定一个profile如:
create user wuser
identified by wuser
.......
profile luck_prof ;
希望以上能给你提供解决问题的方向
使用sysdba身份登录,解锁
例如要解锁scott用户,可以如下:
sqlplus / as sysdba
alter user scott identify by password account unlock;
其中password是新设置的密码