2014-02-26 120 views
0

如何恢復Oracle數據庫的用戶名和密碼?oracle 11g express版本 - 恢復用戶名和密碼

我有嘗試:

C:\Users\sa>orapwd file=PWDXE.ORA password=new_sys_password entries=10 

我將文件複製到一個位置C:\oraclexe\app\oracle\product\11.2.0\server\database

C:\Users\sa>set oracle_sid=xe 

C:\Users\sa>sqlplus sys/new_sys_password as sysdba 

SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 26 13:57:05 2014 

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

ERROR: 
ORA-12560: TNS:protocol adapter error 


Enter user-name: 

SQLNET.ORA

TRACE_LEVEL_CLIENT = OFF 
#sqlnet.authentication_services = (NONE) 
names.directory_path = (TNSNAMES, HOSTNAME) 
names.default_domain = world 
name.default_zone = world 
automatic_ipc = off 

的listener.ora

# LISTENER.ORA Network Configuration File: C:\oracle\ora92\network\admin\listener.ora 
# Generated by Oracle configuration tools. 

LISTENER = 
    (DESCRIPTION_LIST = 
    (DESCRIPTION = 
     (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = TCP)(HOST = COMP1A862)(PORT = 1521)) 
    ) 
     (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) 
    ) 
    ) 
) 

SID_LIST_LISTENER = 
    (SID_LIST = 
    (SID_DESC = 
     (SID_NAME = PLSExtProc) 
     (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN) 
     (PROGRAM = extproc) 
    ) 
) 

和tnsnames.ora

# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\NETWORK\ADMIN\tnsnames.ora 
# Generated by Oracle configuration tools. 
XE.WORLD = 
    (DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST =COMP1A862)(PORT = 1521)) 
    (CONNECT_DATA = 
     (SERVER = DEDICATED) 
     (SERVICE_NAME = XE) 
    ) 
) 

我做錯了什麼?

p.s. 服務正在運行 enter image description here

回答

0

如果你想重置密碼,你在服務器計算機上,你可以(假設你設置ORACLE_HOME和ORACLE_SID ENV變量)做:

的sqlplus/as sysdba已

然後您可以解鎖或更改任何用戶的密碼 - 例如要更改密碼:

alter user identified by;