Come lo stato altre risposte, cambiando il profilo dell'utente (ad esempio il 'default' profilo) opportunamente porterà alle password, che, una volta impostato, non scadrà mai.
Tuttavia, come indicato da un commentatore, le password impostate sotto i vecchi valori del profilo potrebbero essere già scadute e (se dopo il periodo di tolleranza specificato del profilo) l'account bloccato.
La soluzione per le password scadute con i conti bloccati (come previsto in un commento di risposta) è quello di utilizzare una versione del comando ALTER USER:
ALTER USER xyz_user ACCOUNT UNLOCK;
Tuttavia, il comando di sblocco funziona solo per gli account in cui l'account è effettivamente bloccato, ma non per quegli account che si trovano nel periodo di prova, in cui la password è scaduta ma l'account non è ancora bloccato. Per questi conti la password deve essere reimpostata con un'altra versione del comando ALTER USER:
ALTER USER xyz_user IDENTIFIED BY new_password;
Qui di seguito è un po 'SQL * Plus script che un utente privilegiato (ad esempio, l'utente 'SYS') può utilizzare per reimpostare la password di un utente al valore corrente dell'hash esistente memorizzato nel database.
REM Tell SQL*Plus to show before and after versions of variable substitutions
SET VERIFY ON
SHOW VERIFY
REM Tell SQL*Plus to use the ampersand '&' to indicate variable substitution expansion
SET DEFINE '&'
SHOW DEFINE
REM Specify in a SQL*Plus variable the account to 'reset'
DEFINE USER_NAME = 'xyz_user'
REM Show the status of the account before reset
SELECT
ACCOUNT_STATUS,
TO_CHAR(LOCK_DATE, 'YYYY-MM-DD HH24:MI:SS') AS LOCK_DATE
FROM
DBA_USERS
WHERE
USERNAME = '&USER_NAME';
REM Create a SQL*Plus variable to hold the hash of existing password
DEFINE OLD_PASSWORD = ""
REM Tell SQL*Plus where to store the value to be selected with SQL
COLUMN PWORDHASH NEW_VALUE OLD_PASSWORD
REM Select the old hash password as a delimited string
SELECT
'''' || PASSWORD || '''' AS PWORDHASH
FROM
SYS.USER$
WHERE
NAME = '&USER_NAME';
REM Show the contents of the SQL*Plus variable
DEFINE OLD_PASSWORD
REM Reset the password
ALTER USER &USER_NAME IDENTIFIED BY VALUES &OLD_PASSWORD;
REM Show the status of the account after reset
SELECT
ACCOUNT_STATUS,
TO_CHAR(LOCK_DATE, 'YYYY-MM-DD HH24:MI:SS') AS LOCK_DATE
FROM
DBA_USERS
WHERE
USERNAME = '&USER_NAME';
fonte
2014-04-24 19:14:37
Penso che potrebbe essere meglio chiedere questo su serverfault.com. Non ho intenzione di forzarlo perché hai detto che lo stai usando per lo sviluppo, e penso che ci sia ancora una possibilità che qualcuno qui lo saprà e/o altri qui potrebbero beneficiare di queste informazioni. –
Penso che farò proprio questo. Stavo discutendo su quale sito fosse più appropriato, dal momento che si tratta di una domanda di base del database e non di una cosa da DBA. –
Non so quale sia il criterio dupe per le domande cross-site, ma ecco il link: http://serverfault.com/questions/37622/how-do-i-turn-off-oracle-password-expiration –