zoukankan      html  css  js  c++  java
  • ORA28001: the password has expired scott/tiger

    今天在使用oracle 11时,使用sqlplus中默认的账号scott登录,发现报错,无法登录

    解决此类问题:

    1,账号scott已经是unlocked状态了。--当然,他不会报这个错

    2,

    Oracle11g的密码过期。

       原因:是由于oracle11g中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致。

    ,3,

    C:\>sqlplus / as sysdba

    查看指定概要文件(如default)的密码有效期设置:
    SQL> select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';

    4,如果时间限制为180天,则执行如下操作,修改成无限期的:
    SQL> alter profile default  limit password_life_time unlimited;
    SQL> commit;

    5,如果还不行,这里有个简单的方法。将密码改成一个新密码,然后再用password命令,再修过回原来的密码即可

  • 相关阅读:
    hdu 3074 Multiply game
    uva 10717 Mint
    uva 10128 Queue
    uva 10673 Play with Floor and Ceil
    hdu 1754 I Hate It
    hdu 1166 敌兵布阵
    uva 10079 Pizza Cutting
    费波那列素数
    uva 10236 The Fibonacci Primes
    hdu 1698 Just a Hook
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/2987419.html
Copyright © 2011-2022 走看看