<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    tbwshc

    密碼即將過期提示的影響

    當用戶密碼即將過期時,在登錄時Oracle會提示ORA-28002錯誤,但是并不會影響正常的登錄。

     

     

    本來認為這個信息并沒有太大的影響,但是沒想到這個錯誤會導致SET AUTOTRACE功能失效:

    solaris*orcl-/home/oracle$ sqlplus test/test

    SQL*Plus: Release 11.2.0.3.0 Production on Fri Jul 13 11:27:28 2012

    Copyright (c) 1982, 2011, Oracle. tb All rights reserved.

    ERROR:
    ORA-28002: the password will expire within 1 days

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Oracle Label Security and Real Application Testing options

    SQL> set autot on
    ERROR:
    ORA-28002: the password will expire within 1 days


    SP2-0619: Error while connecting
    SP2-0611: Error enabling STATISTICS report
    SQL> alter user test identified by test;

    User altered.

    SQL> set autot on
    ERROR:
    ORA-24315: illegal attribute type


    SP2-0619: Error while connecting
    SP2-0611: Error enabling STATISTICS report
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Oracle Label Security and Real Application Testing options
    solaris*orcl-/home/oracle$ sqlplus test/test

    SQL*Plus: Release 11.2.0.3.0 Production on Fri Jul 13 11:27:52 2012

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


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Oracle Label Security and Real Application Testing options

    SQL> set autot on
    SQL> insert into t values (1, 'a');

    1 row created.


    Execution Plan
    ----------------------------------------------------------

    ---------------------------------------------------------------------------------
    | Id | Operation                | Name | Rows | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------
    |   0 | INSERT STATEMENT         |      |     1 |    12 |  tb   1   (0)| 00:00:01 |
    |   1 | LOAD TABLE CONVENTIONAL | T    |       |       |            |          |
    ---------------------------------------------------------------------------------


    Statistics
    ----------------------------------------------------------
             71 recursive calls
              9 db block gets
             75 consistent gets
             10 physical reads
           1284 redo size
            829 bytes sent via SQL*Net to client
            785 bytes received via SQL*Net from client
              3 SQL*Net roundtrips to/from client
              9 sorts (memory)
              0 sorts (disk)
              1 rows processed

    很顯然,由于ORA-28002錯誤導致了SET AUTOTRACE ON功能啟用時碰到了錯誤。當修改了當前的用戶密碼,則ORA-28002不再出現(xiàn)后,SET AUTOTRACE ON的功能恢復正常。

    根據(jù)上面的信息其實可以判斷,在啟用SET AUTOTRACE ON功能時,sqlplus會自動創(chuàng)建一個新的會話來記錄當前會話的統(tǒng)計信息。

    而啟用的新的會話會使用當前會話登錄時保存的密碼來進行登錄,因此可以通過下面的例子來驗證這個推論:

    solaris*orcl-/home/oracle$ sqlplus test/test

    SQL*Plus: Release 11.2.0.3.0 Production on Sun Jul 15 01:28:38 2012

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


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Oracle Label Security and Real Application Testing options

    SQL> set autot on
    SQL> set autot off
    SQL> alter user test identified by test1;

    User altered.

    SQL> set autot on
    ERROR:
    ORA-01017: invalid username/password; logon denied


    SP2-0619: Error while connecting
    SP2-0611: Error enabling STATISTICS report

    果然,在用戶登錄后,如果當前的密碼被修改,是會導致SET AUTOTRACE ON啟用時報錯不正確的用戶名密碼錯誤的。

    posted on 2012-08-29 15:15 chen11-1 閱讀(1146) 評論(0)  編輯  收藏

    主站蜘蛛池模板: 精品国产成人亚洲午夜福利| 一级特黄录像免费播放肥| 亚洲乱码一区av春药高潮| 亚洲精品美女网站| 国产人成免费视频网站| 亚洲国产精品专区在线观看 | 亚洲永久网址在线观看| 精品一区二区三区免费观看 | 人人狠狠综合久久亚洲88| 亚洲三级在线观看| 成人无码区免费视频观看| 免费无码AV电影在线观看| 免费看国产成年无码AV片| 亚洲网红精品大秀在线观看| 亚洲精品456播放| 亚洲国产成人精品无码一区二区| 一级毛片在线观看免费| 国产亚洲美女精品久久久| 中文字幕亚洲精品无码| 全免费a级毛片免费看无码| 亚洲国产精品久久久久网站| 色费女人18女人毛片免费视频| 午夜免费1000部| 亚洲AV午夜成人影院老师机影院| 久久精品国产亚洲AV未满十八| 亚洲视频免费播放| 亚洲a在线视频视频| 国产JIZZ中国JIZZ免费看| 国产乱子伦精品免费女| 亚洲国产日韩精品| 一本色道久久88亚洲综合 | 免费观看午夜在线欧差毛片| 国产成人无码免费网站| 在线观看亚洲人成网站| 国产精品视_精品国产免费| 亚洲综合精品伊人久久| 亚洲欧洲国产成人综合在线观看 | 亚洲天堂一区在线| 最近中文字幕高清免费中文字幕mv | 四虎影视大全免费入口| 亚洲人成电影网站久久|