Kbase 47546: Erro ORA-28002 efetuar login produto Datasul
Autor |
  Kleber Eduardo Clemente - CAT |
Acesso |
  Público |
Publicação |
  11/13/2012 |
|
Ambiente:
HCM 2.10 Oracle
Progress 10.1B
Erro:
Ao efetuar o login apresenta a mensagem "ORA-28002: the password will expire within x days"
Causa:
No Oracle 11g, por padrão, existem algumas alterações de segurança e gerenciamento de senhas.
Na visão DBA_PROFILES tem o valor atual para o PASSWORD_GRACE_TIME e PASSWORD_LIFE_TIME, entre outros.
Comando para listar os valores da visão DBA_PROFILES:
SELECT *
FROM dba_profiles
WHERE profile = 'DEFAULT'
AND resource_name IN ('PASSWORD_LIFE_TIME','PASSWORD_GRACE_TIME');
Solução:
Caso os valores acima estejam diferentes de UNLIMITED deve ser executado o comando abaixo com o usuário system ou sys:
ALTER PROFILE DEFAULT LIMIT password_grace_time UNLIMITED;
ALTER PROFILE DEFAULT LIMIT password_life_time UNLIMITED;
Em seguida conectar no SQLPlus com o usuário que estava apresentando a mensagem ORA-28002 e digitar a mesma senha.
SQL> password
Changing password for TOPOGRO
Old password:
New password:
Retype new password:
Password changed
Obs.: a senha do usuário TOPOGRO era hellokitty, foi digitada a mesma senha para efetivar as alterações e para de emitir a mensagem ORA-28002.
FAILED_LOGIN_ATTEMPTS - The maximum number of attempts which a user can make before an account is locked
PASSWORD_LIFE_TIME - The length of time that one password can be in use before it has to be changed
PASSWORD_REUSE_TIME - The length of time that has to pass before a password can be reused
PASSWORD_REUSE_MAX- The number of times a password can be reused as a password
PASSWORD_VERIFY_FUNCTION - A user defined function to enforce password rules, such as complexity
PASSWORD_LOCK_TIME - Specifies in days how long the account will remain locked. You can specify smaller time periods, for example 30 minutes is 0.0208 days (30mins/1440mins in a day)
PASSWORD_GRACE_TIME - How long a user has to change their password after it has hit a threshold to be changed