Oracle使用——oracle 忘记用户密码登录

背景

  • 有时候我们忘记了oracle登录的用户密码,甚至是用户名称都不确定,应该怎么登陆呢

操作系统

  • CentOS7
  • Oracle12c

操作步骤

  • 使用sqlplus登录系统:sqlplus  /  as sysdba,如下图

  • 查找所有用户(需要写分号,重要!重要!重要!)
    select username from all_users;

        

  • 修改用户密码
    alter user '用户名称' identified by '新密码';
  • 退出即可重新登录。
原文地址:https://www.cnblogs.com/zuiyue_jing/p/9035339.html