oracle 12c 忘记账户密码

2018-10-06  本文已影响0人  e43ef8a56980

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;

上一篇 下一篇

猜你喜欢

热点阅读