ORACLE password
1. 查看默认设置:select limit from dba_profiles where profile='DEFAULT' and resource_type ='PASSWORD';
2. 如果显示结果为'unlimited'则说明没有限制;
3. 如果需要对ORACLE用户密码做限制
a. 可运行:D:\oracle\prod t\10.2.0\db_1\RDBMS\ADMIN\utlpwdmg.sql
b. 运行后系统会更改如下参数:
PASSWORD_LIFE_TIME 60 --口令的生命周期,超过这段时间口令可能会自动过期,是否过期要看是否设定了PASSWORD_GRACE_TIME
PASSWORD_GRACE_TIME 10 --接着PASSWORD_LIFE_TIME特性,如果PASSWORD_LIFE_TIME的期限已到,那么PASSWORD_GRACE_TIME 的设置是对口令生命周期的一个grace(宽限或者延续),口令到期之后,继续可以使用的天数,在这段时间内如果我们登录系统,会有提示,提示系统在几天内过期
PASSWORD_REUSE_TIME 1800 --这个特性限制口令在多少天内不能重复使用
PASSWORD_REUSE_MAX UNLIMITED --这个特性是针对PASSWORD_REUSE_TIME的,说明要想在PASSWORD_REUSE_TIME这个参数指定的时间内重复使用当前口令,那么至少需要修改过口令的次数(修改过的口令当然肯定需要和当前口令不同,因为毕竟还有PASSWORD_REUSE_TIME 特性的限制)
FAILED_LOGIN_ATTEMPTS 3 --这个比较好理解,不知道口令的话尝试登录的次数,达到这个次数之后账户被自动锁定
PASSWORD_LOCK_TIME 1/1440 --接着FAILED_LOGIN_ATTEMPTS参数,口令被自动锁定的时间,达到这个时间之后,下次登录时系统自动解除对这个账户的锁定
c. 如果需要对具体参数做调整可运行:可以修改脚本D:\oracle\prod t\10.2.0\db_1\RDBMS\ADMIN\utlpwdmg.sql 最后的参数,再运行即可,
或者运行:ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Oracle 10g or before, there is no case sensitive; For Oracle 11g there is case sensitive.
Through following setting, it may no case sensitive.
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
Through following setting, it may no case sensitive.
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
Change the password expire time
To alter the password expiry policy for a certain user profile in Oracle first check wich profile the user is in using:
select profile from DBA_USERS where username = <username>
Then you can change the limit to never expire using:
alter profile <profile_name> limit password_life_time UNLIMITED;
If you want to previously check the limit you may use:
select resource_name,limit from dba_profiles where profile='<profile_name>';
Pasted from: <http://stackoverflow.com/questions/1095871/how-do-i-turn-off-oracle-password-expiration>
Check the error login times
select lcount from user$ where name='XYSOUL';
Change account_status
If the account_status is "EXPIRED(GRACE)", reset the password of the user to change the status back to open;
alter user <username> identified by <password>;
Check user which use the default password (Oracle 11g)
select * from DBA_USERS_WITH_DEFPWD;
Comments
Post a Comment