美文网首页
oracle 12c 忘记账户密码

oracle 12c 忘记账户密码

作者: e43ef8a56980 | 来源:发表于2018-10-06 18:37 被阅读0次

    A few working sqls to save your ass

    1. login the super user on the oracle installation machine;

    sqlplus / as sysdba

    2.unlock the default test account hr, another one is scott/tiger also locked

    alter user hr account unlock;

    3.set the password for this account

    alter user hr identified by hr;

    1. find all the usernames on the system

    select username from dba_users;

    less priviledge

    select username from all_users;

    1. login with one command

    sqlplus hr/hr;

    1. view history close by default

    hist list

    7.view which database you wanna connect to (execute this as sysdba)

    SELECT NAME FROM v$database;

    相关文章

      网友评论

          本文标题:oracle 12c 忘记账户密码

          本文链接:https://www.haomeiwen.com/subject/jtihaftx.html