Linux修改Oracle用戶

來源:互聯網
上載者:User

標籤:linux   erro   更換   ted   user   ===   word   更改   invalid   


Linux下SSH登陸後:

su - Oracle;

sqlplus /nolog;

conn system/密碼; 或者 connect/as sysdba;

alter user 使用者名稱 identified by 密碼;
=========================================
1、使用oracle使用者登入,串連資料庫
[[email protected] ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Feb 26 12:06:29 2009

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

SQL> conn /as sysdba
Connected.

//查看使用者
SQL> select username,password from dba_users;
//修改使用者口令 格式 alter user 使用者名稱 identified by 新密碼;
SQL> alter user system identified by manager;

User altered.

//再次查看,對比發現密碼已經更換
SQL> select username,password from dba_users;
SQL>
//現在就可以用此密碼連結進行操作了
SQL> connect system/manager

已串連。

==========================

另一種修改值的辦法

SQL> alter user system identified by values ‘2D594E86F93B17A1‘;

使用者已更改。

//在試試這個密碼

SQL> connect system/oracle

已串連。

//這個密碼就不靈了

 

SQL> connect system/manager

ERROR:

ORA-01017: invalid username/password; logon denied

Linux修改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.