How can I know if I have rights on directory using query in Oracle??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are talking about an Oracle directory object (
CREATE DIRECTORY ...),Note that if you don’t have access to the
DBA_*tables, you can useALL_TAB_PRIVSorUSER_TAB_PRIVSinstead.If you are talking about an operating system directory, you’d need to create an Oracle directory object that corresponds to the operating system directory. You could then use the UTL_FILE package’s FOPEN method to try to open a file in the directory. If it succeeds, you have permission to the directory. Otherwise, you’ll catch an exception.