我们通过如下的方法,可以安全使用该用户,然后再跳转回来,在某些时候比较有用
需要Alter user权限或DBA权限:
SQL> select password from dba_users where username=‘SCOTT‘;
PASSWORD
-----------------------------
F894844C34402B67
SQL> alter user scott identified by lion;
User altered.
SQL> connect scott/lion
Connected.
REM Do whatever you like...
SQL> connect system/manager
Connected.
SQL> alter user scott identified by values ‘F894844C34402B67‘;
User altered.
SQL> connect scott/tiger
Connected.
原文地址:https://www.cnblogs.com/fanweisheng/p/11113334.html
时间: 2024-10-05 05:05:13