Linux下SSH登陆后:

su - Oracle;

sqlplus /nolog;

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

alter user 用户名 identified by 密码;
=========================================
1、使用oracle用户登录,连接数据库
[oracle@wuzj ~]$ 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

相关文章:

  • 2021-12-17
  • 2021-11-18
  • 2022-12-23
  • 2021-07-06
  • 2022-02-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案