Home > Database > Mysql Tutorial > Oracle用户登录密码过期的修改

Oracle用户登录密码过期的修改

WBOY
Release: 2016-06-07 17:23:34
Original
1233 people have browsed it

Oracle用户登录密码过期的修改 1、查看用户的proifle是哪个,一般是default: sqlgt;SELECT username,PROFILE FROM dba_use

Oracle用户登录密码过期的修改

1、查看用户的proifle是哪个,,一般是default:

  sql>SELECT username,PROFILE FROM dba_users;

2、查看指定概要文件(如default)的密码有效期设置:

  sql>SELECT * FROM dba_profiles s WHERE s.profile=\'DEFAULT\' AND resource_name=\'PASSWORD_LIFE_TIME\';

3、将密码有效期由默认的180天修改成“无限制”:

  sql>ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

  修改之后不需要重启动数据库,会立即生效。

4、修改后,还没有被提示ORA-28002警告的帐户不会再碰到同样的提示;

  已经被提示的帐户必须再改一次密码,举例如下:

  $sqlplus / as sysdba

  sql> alter user smsc identified by ----不用换新密码

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template