Oracle忘記使用者名稱和密碼

來源:互聯網
上載者:User

標籤:忘記   使用者   user   ica   rac   reserve   win   copy   soft   

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忘記使用者名稱和密碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.