1.先确定一下环境: db版本: SQL> select * from v$version;
BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - Production PL/SQL Release 11.2.0.4.0 - Production CORE 11.2.0.4.0 Production TNS for Linux: Version 11.2.0.4.0 - Production NLSRTL Version 11.2.0.4.0 - Production
日期时间:
[oracle@dbserver ~]$ date Thu Jan 9 18:03:39 CST 2014
口令到期时间:
SQL> select resource_name,limit from dba_profiles where profile='DEFAULT' and RESOURCE_NAME='PASSWORD_LIFE_TIME';
RESOURCE_NAME LIMIT -------------------------------- ---------------------------------------- PASSWORD_LIFE_TIME 180
用户状态: SQL> select username,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where username='HR';
USERNAME ACCOUNT_STATUS EXPIRY_DA ------------------------------ -------------------------------- --------- HR OPEN 08-JUL-14
通过以上,我们看到目前hr用户的到期时间为 2014-7-08号
SQL> select resource_name,limit from dba_profiles where profile='DEFAULT' and RESOURCE_NAME='PASSWORD_GRACE_TIME';
RESOURCE_NAME LIMIT -------------------------------- ---------------------------------------- PASSWORD_GRACE_TIME 7
|