Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

ORA-28001:a senha expirou não pode ser corrigida


Supondo que o banco de dados Oracle (deve funcionar também para o SAMPLE do Oracle-XE) esteja no Unix, ssh-in e:
sqlplus /nolog

SQL> connect / as SYSDBA
Connected.

SQL> SELECT username, account_status FROM dba_users WHERE ACCOUNT_STATUS LIKE '%EXPIRED%';
# ... your locked account should be listed ...

SQL> ALTER USER sample IDENTIFIED BY sample;         
User altered.

SQL> ALTER USER sample ACCOUNT UNLOCK;
User altered.

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Profile altered.

SQL> exit