默认安装时,Oracle密码180天后会过期。
查看密码的有效期设置
SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
更改密码有效期
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED ;
此时已过期的密码仍需要重先设定,为避免更改密码造成软件连接失败,或将密码更改错误,使用用户登陆的命令,用原始用户名及密码进行登陆,登陆成功后再进行密码更改。
sqlplus / as sysdba
connect spaceuser/spaceuser
alter user x3dpassadmin identified by x3dpassadmin;
alter user x3dpasstokens identified by x3dpasstokens;
alter user x3ddashadmin identified by x3ddashadmin;
alter user x3ddashadmin identified by x3ddashadmin;
alter user spaceuser identified by spaceuser;