Monday, April 10, 2023

directory_permissions.sql

 -- -----------------------------------------------------------------------------------

-- File Name    : directory_permissions.sql
-- Author       : AMIR DBA
-- Description  : Displays permission information about all directories.
-- Requirements : Access to the DBA views.
-- Call Syntax  : @directory_permissions (directory_name)
-- -----------------------------------------------------------------------------------
SET LINESIZE 200

COLUMN grantee   FORMAT A20
COLUMN owner     FORMAT A10
COLUMN grantor   FORMAT A20
COLUMN privilege FORMAT A20

COLUMN 
SELECT * 
FROM   dba_tab_privs 
WHERE  table_name = UPPER('&1');

No comments:

Post a Comment