オブジェクト権限を確認する

Pocket

出力結果の説明:

GRANTOR : 権限付与を実行したユーザー名
GRANTEE : アクセス権が付与されるユーザー名
OWNER : オブジェクトの所有者
TABLE_NAME : オブジェクト名
PRIVILEGE : オブジェクトについての権限

 

set echo off
set line 130
set pages 2000

clear col
col GRANTOR for a20 head “権限付与USR”
col GRANTEE for a30 head “権限付与されたUSR/Role”
col OWNER for a20 head “Obj所有者”
col TABLE_NAME for a30 head “Obj名”
col PRIVILEGE for a20 head “Obj権限”

spool Obj権限.lis

SELECT
GRANTOR,
GRANTEE,
OWNER,
TABLE_NAME,
PRIVILEGE
FROM
DBA_TAB_PRIVS
WHERE
OWNER NOT IN (‘SYS’,’SYSTEM’)
AND OWNER = ‘LETSS’
;
spool off
clear col

 

投稿者:

oracledba

長年Oracleエンジニアを中心として、業務に携わってきました。 このサイトが少しでもお役に立てれば幸いです。

「オブジェクト権限を確認する」への2件のフィードバック

  1. Excellent items from you, man. I’ve take into account your stuff
    previous to and you are simply extremely great. I actually like what you’ve acquired here, certainly like what you’re stating and the way in which in which you are saying it.
    You are making it enjoyable and you continue to take care of to
    keep it smart. I can’t wait to read far
    more from you. This is really a wonderful site.

コメントを残す