当前位置:数据库 > Oracle >>

查看oracle用户是否有dba权限

查看oracle用户是否有dba权限
 
查询前,请先确认用户是否有dba权限。 
 
SELECT l.session_id sid, s.serial#, l.locked_mode,l.oracle_username, 
l.os_user_name,s.machine, s.terminal, o.object_name, s.logon_time 
FROM v$locked_object l, all_objects o, v$session s 
WHERE l.object_id = o.object_id 
AND l.session_id = s.sid 
ORDER BY sid, s.serial# ;

 


CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,