Oracle10g與Oracle11g中PASSWORD_LIFE_TIME的差異

snowdba發表於2015-01-09
Oracle 10g的PASSWORD_LIFE_TIME預設值為UNLIMITED

SYS@OCM10G >select * from dba_profiles where profile='DEFAULT' and RESOURCE_NAME='PASSWORD_LIFE_TIME';

PROFILE                        RESOURCE_NAME                    RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD UNLIMITED


Oracle11g的PASSWORD_LIFE_TIME預設值為180天

SYS@OCM11G >select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';

PROFILE                        RESOURCE_NAME                    RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD 180

安裝11G資料庫後如果忽略該引數的的有效期變為180天,那麼半年之後使用者就無法登入了。在這裡可以手工修改為無限(UNLIMITED)

SYS@OCM11G >alter profile default limit PASSWORD_LIFE_TIME UNLIMITED;

SYS@OCM11G >select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';

PROFILE                        RESOURCE_NAME                    RESOURCE LIMIT
------------------------------ -------------------------------- -------- ----------------------------------------
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD UNLIMITED

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1395543/,如需轉載,請註明出處,否則將追究法律責任。

相關文章