1.查看用户归属的profile
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0
Connected as xx@xxxxxx
sql> SELECT username,PROFILE FROM dba_users;
2. 查看指定profile文件的有效期
sql>SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
3.使用DBA权限的用户修改
将密码有效期由默认的180天修改成“无限制”:
sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;