root 授予oracle权限,oracle – 列出具有root(管理)权限的用户
以下是您查找用戶權限的方法:
select
lpad(' ', 2*level) || granted_role "User, his roles and privileges"
from
(
/* THE USERS */
select
null grantee,
username granted_role
from
dba_users
/* THE ROLES TO ROLES RELATIONS */
union
select
grantee,
granted_role
from
dba_role_privs
/* THE ROLES TO PRIVILEGE RELATIONS */
union
select
grantee,
privilege
from
dba_sys_privs
)
start with grantee is null
connect by grantee = prior granted_role;
這將顯示哪些用戶具有虛增的權限.您可以通過鍵入在shell腳本中執行此操作
sqlplus / as sysdba --(if you are root on the box)
spool user_privileges.txt
@whos_a_root.sql --(if that's what you call your script)
spool off
exit;
總結
以上是生活随笔為你收集整理的root 授予oracle权限,oracle – 列出具有root(管理)权限的用户的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 文件上传控件 css,CSS3 自定义文
- 下一篇: it计算机哪些专业术语,IT之家学院:笔