Home > Database > Mysql Tutorial > oracle数据库密码过期解决方案

oracle数据库密码过期解决方案

WBOY
Release: 2016-06-07 15:38:58
Original
2007 people have browsed it

修改密码并设置密码期限为无限制 报错:ora-28001 口令已经失效 Microsoft Windows [版本 6.1.7601] C:\Users\Administratorsqlplus /nolog SQL*Plus: Release 11.2.0.1.0 Production on 星期一 6月 9 16:56:34 2014 Copyright (c) 1982, 2010, Oracle. All

修改密码并设置密码期限为无限制

报错:ora-28001 口令已经失效

 

Microsoft Windows [版本 6.1.7601]

C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期一 6月 9 16:56:34 2014

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL>
SQL> conn sys/password@orcl as sysdba
已连接。
SQL> select username from dba_users;

USERNAME
------------------------------
YLCW
SCOTT
ORACLE_OCM
XS$NULL
MDDATA
DIP
APEX_PUBLIC_USER
SPATIAL_CSW_ADMIN_USR

USERNAME
------------------------------
SPATIAL_WFS_ADMIN_USR
DBSNMP
SYSMAN
FLOWS_FILES
MDSYS
ORDSYS
EXFSYS
WMSYS
APPQOSSYS
APEX_030200
OWBSYS_AUDIT

USERNAME
------------------------------
ORDDATA
CTXSYS
ANONYMOUS
XDB
ORDPLUGINS
OWBSYS
SI_INFORMTN_SCHEMA
OLAPSYS
MGMT_VIEW
SYS
SYSTEM

USERNAME
------------------------------
OUTLN

已选择34行。

SQL> ALTER USER YLCW  IDENTIFIED BY 123456 ;

用户已更改。

SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME' ;

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


SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED ;

配置文件已更改

SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

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

 

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