How to query the permissions on an Oracle directory?

前端 未结 4 1027
遥遥无期
遥遥无期 2021-02-13 06:39

I have a directory in all_directories, but I need to find out what permissions are associated with it, i.e. what has been granted on it?

4条回答
  •  借酒劲吻你
    2021-02-13 07:19

    With Oracle 11g R2 (at least with 11.2.02) there is a view named datapump_dir_objs.

    SELECT * FROM datapump_dir_objs;
    

    The view shows the NAME of the directory object, the PATH as well as READ and WRITE permissions for the currently connected user. It does not show any directory objects which the current user has no permission to read from or write to, though.

提交回复
热议问题