1.区别:

Password expires提示你改密码

Password inactive 到期后账号无法使用,Account 变成expired 状态

Account expires 到期后账号无法使用,和上面两个没有关系,是独立的,可以人为的设置一个Account 过期时间


2.

date:2023/02/28

[root@sztest11g5280 ~]# chage -l oracle

Last password change                                    : Feb 20, 2023

Password expires                                        : Feb 27, 2023

Password inactive                                       : Mar 09, 2023

Account expires                                         : May 31, 2023

Minimum number of days between password change          : 0

Maximum number of days between password change          : 7

Number of days of warning before password expires       : 7

此时已经expires   但是没有inactive    

用oracle账号登录,提示如下

You are required to change your password immediately (password aged)

Last login: Tue Feb 28 11:22:19 2023 from 10.10.10.xxx

WARNING: Your password has expired.

You must change your password now and login again!

Changing password for user oracle.

Changing password for oracle.

(current) UNIX password: 


3.

[root@sztest11g5280 ~]# chage -l oracle

Last password change                                    : Feb 20, 2023

Password expires                                        : Feb 15, 2023

Password inactive                                       : Feb 25, 2023

Account expires                                         : May 31, 2023

Minimum number of days between password change          : 0

Maximum number of days between password change          : 7

Number of days of warning before password expires       : 7


此时已经expires  也已经inactive    

用oracle账号登录,提示如下

Your account has expired; please contact your system administrator


4.如果账号既不expires ,也不inactive    ,但是手动设置account expired

[root@sztest11g5280 ~]# chage -l oracle

Last password change                                    : Feb 28, 2023

Password expires                                        : Mar 30, 2023

Password inactive                                       : Apr 01, 2023

Account expires                                         : Jan 02, 1970

Minimum number of days between password change          : 0

Maximum number of days between password change          : 30

Number of days of warning before password expires       : 7

用oracle账号登录,提示如下

Your account has expired; please contact your system administrator