1. 程式人生 > >Oracle忘記用戶名和密碼

Oracle忘記用戶名和密碼

成功 set fast 12c product win app right 忘記

Microsoft Windows [版本 10.0.16299.192]
(c) 2017 Microsoft Corporation。保留所有權利。

C:\WINDOWS\system32>echo %ORACLE_SID%
%ORACLE_SID%

C:\WINDOWS\system32>set ORACLE_SID=fast

C:\WINDOWS\system32>sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on 星期五 2月 2 17:03:37 2018

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


連接到:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options


SQL> alter user fast identified by "fast*123";
alter user fast identified by "fast*123"
*
第 1 行出現錯誤:
ORA-01918: 用戶 ‘FAST‘ 不存在


SQL> alter user sys identified by fast*123;
alter user sys identified by fast*123
*
第 1 行出現錯誤:
ORA-00922: 選項缺失或無效


SQL> alter user sys identified by fast*123;
alter user sys identified by fast*123
*
第 1 行出現錯誤:
ORA-00922: 選項缺失或無效


SQL> alter user sys identified by "fast*123";

用戶已更改。

SQL> alter user system identified by "manager";

用戶已更改。

SQL> create user fast identified by "fast*123";
create user fast identified by "fast*123"
*
第 1 行出現錯誤:
ORA-65096: 公用用戶名或角色名無效


SQL> create user "c##fast" identified by "fast*123";

用戶已創建。

SQL> grant connect,resource,dba to "c##fast"
2
SQL> grant connect,resource,dba to "c##fast";

授權成功。

SQL> commit;

提交完成。

SQL>

Oracle忘記用戶名和密碼