How to query the permissions on an Oracle directory?

前端 未结 4 1892
借酒劲吻你
借酒劲吻你 2021-02-13 06:59

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:28

    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.

提交回复
热议问题