1 1、查看用户的proifle是哪个,一般是default:
2 sql>SELECT username,PROFILE FROM dba_users;
3 2、查看指定概要文件(如default)的密码有效期设置:
4 sql>SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='FAILED_LOGIN_ATTEMPTS';
5 3、将尝试登录失败次数由默认的10次修改成“无限制”:
6 sql>ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;
7 4、修改后,还没有被提示ORA-28000警告的用户不会再碰到同样的提示;
8 已经被锁定的帐户必须解除锁定,举例如下:
9 C:\Users\HuaWei>sqlplus /nolog
10 SQL> conn sys/orcl as sysdba
11 SQL> select username,account_status from dba_users where username='C##PE_ZHJT';
12 SQL> alter user C##PE_ZHJT account unlock;
1、查看用户的proifle是哪个,一般是default:sql>SELECT username,PROFILE FROM dba_users;2、查看指定概要文件(如default)的密码有效期设置:sql>SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='FAILED_LOGIN_ATTEMPTS';3、将尝试登录失败次数由默认的10次修改成“无限制”:sql>ALTER PROFILE DEFAULT LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;4、修改后,还没有被提示ORA-28000警告的用户不会再碰到同样的提示;已经被锁定的帐户必须解除锁定,举例如下:C:\Users\HuaWei>sqlplus /nologSQL> conn sys/orcl as sysdbaSQL> select username,account_status from dba_users where username='C##PE_ZHJT';SQL> alter user C##PE_ZHJT account unlock; |