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>
oracle使用者鎖定問題
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 ;
希望以上能給你提供解決問題的方向
oracle提示使用者被鎖,不可以解決
使用sysdba身份登入,解鎖
例如要解鎖scott使用者,可以如下:
sqlplus / as sysdba
alter user scott identify by password account unlock;
其中password是新設定的密碼