FAILED_LOGIN_ATTEMPTS doesn't work

"FAILED_LOGIN_ATTEMPTS" is the maximum allowable number of wrong password input, after which the account will be locked.

1、查看:select * from dba_profiles s where s.profile='DEFAULT' and resource_name='FAILED_LOGIN_ATTEMPTS'; 

2、无限次:alter profile default limit failed_login_attempts unlimited; 

3、3次:  alter profile default limit failed_login_attempts 3; 

 

Unlock:

alter user USERNAME identified by password account unlock; 

 

The problem here is that when you see the display 10 times, if you try 10 times, it still won't be locked, you can modify it to 5 times, and then you will find that it is locked after 5 times. Then change the library 10 times and try to lock it 10 times. That is to say, the 10 times seen at the beginning may be the value set at the beginning of the database, which is actually the same as unlimited. Only after modification will it really work.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326615886&siteId=291194637