Oracle中忘記System和Sys密碼後的處理方法
本文介紹了有關Oracle中忘記System和Sys密碼後的處理方法,一種是OS驗證,另一種密碼檔案驗證方式。
Oracle提供兩種驗證方式,一種是OS驗證,另一種密碼檔案驗證方式
如果是第一種方式用以下方法修改密碼:
sqlplus /nolog; connect / as sysdba alter user sys identified by ; alter user system identified by ; |
如果是第二種方法用以下方法修改密碼:
orapwd file=pwdxxx.ora password=你設定的新密碼 entries=10 |
設定完後,重新啟動服務,再次登陸就可以了。
Oracle 10g忘記system,sys,sysman密碼解決方案
C:\Documents and Settings\Administrator>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 星期六 12月 26 11:08:34 2010
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> alter user system identified by “123456”;
User altered.
SQL> alter user sys identified by “123456”;
User altered.
SQL> alter user system identified by “123456”;
User altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
C:\Documents and Settings\Administrator>sqlplus
SQL*Plus: Release 10.1.0.2.0 - Production on 星期六 6月 26 11:11:34 2010
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter user-name: system
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
orcl