oracle資料庫密碼到期報錯

來源:互聯網
上載者:User

標籤:資料庫

[[email protected] ~]# su - oracle

[[email protected] ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 15 09:23:28 2015

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT username,PROFILE FROM dba_users;        ---查看使用者的profile是哪一個,一般是default

USERNAME       PROFILE

------------------------------ ------------------------------

SPATIAL_WFS_ADMIN_USR       DEFAULT

SPATIAL_CSW_ADMIN_USR       DEFAULT

APEX_PUBLIC_USER       DEFAULT

DIP       DEFAULT

MDDATA       DEFAULT

XS$NULL       DEFAULT

ORACLE_OCM       DEFAULT

SCOTT       DEFAULT

UMPUSER       DEFAULT

SEARCH       DEFAULT

OLAPSYS       DEFAULT

USERNAME       PROFILE

------------------------------ ------------------------------

SI_INFORMTN_SCHEMA       DEFAULT

OWBSYS       DEFAULT

ORDPLUGINS       DEFAULT

XDB       DEFAULT

ANONYMOUS       DEFAULT

CTXSYS       DEFAULT

ORDDATA       DEFAULT

OWBSYS_AUDIT       DEFAULT

APEX_030200       DEFAULT

APPQOSSYS       DEFAULT

WMSYS       DEFAULT

USERNAME       PROFILE

------------------------------ ------------------------------

EXFSYS       DEFAULT

ORDSYS       DEFAULT

MDSYS       DEFAULT

FLOWS_FILES       DEFAULT

SYSMAN       DEFAULT

DBSNMP       MONITORING_PROFILE

OUTLN       DEFAULT

SYSTEM       DEFAULT

SYS       DEFAULT

MGMT_VIEW       DEFAULT

32 rows selected.

SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; --將密碼有效期間設定成無限制

Profile altered.

SQL> SELECT * FROM dba_profiles s WHERE s.profile=‘DEFAULT‘ AND resource_name=‘PASSWORD_LIFE_TIME‘;                                                      --查看密碼有效期間

PROFILE       RESOURCE_NAME RESOURCE

------------------------------ -------------------------------- --------

LIMIT

----------------------------------------

DEFAULT       PASSWORD_LIFE_TIME PASSWORD

UNLIMITED

不需要重啟資料庫,可立即生效。

這個時候可以使用plsql登入,登陸的時候會讓你輸入密碼,你輸入原來的密碼即可。

或在伺服器上執行

SQL>alter user 使用者名稱 identified by <原來的密碼>     --可以不換密碼。

這樣修改後再重啟服務,就不會報資料庫的密碼到期的錯誤了。。


oracle資料庫密碼到期報錯

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.