Oracle 12C Last Login Time
Nelle versioni precedenti, per poter conoscere l’ora dell’ultimo accesso dell’utente, dovevamo abilitare la “SESSIONE DI AUDIT” e quindi interrogare la tabella AUD $. La tabella SYS.USER $ in Oracle Database 12c include una colonna per memorizzare l’ora dell’ultimo accesso dell’utente. Come parte delle funzionalità di sicurezza aumentate in 12c, l’ora dell’ultimo accesso è ora memorizzata nella stessa tabella USER $, nella colonna SPARE6. Questa è un’ottima informazione per sapere quando un utente ha utilizzato il database per l’ultima volta.
PTIME: data e ora dell’ultima modifica della password utente
LTIME: data e ora in cui l’account utente è stato bloccato
LCOUNT: numero di tentativi di accesso non riusciti
Aggiunti in Oracle Database 12c:
SPARE6: Ora dell’ultimo accesso dell’utente.
$ sqlplus aet/aet
SQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 15 23:34:32 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Last Successful login time: Tue Jul 15 2016 23:10:22
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 – 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL>
If you don’t want to show this timestamp …
$ sqlplus -nologintime aet/aet
SQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 15 23:34:32 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 – 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL>