Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7671313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:01:17+00:00 2026-05-31T16:01:17+00:00

Say you create a directory like: CREATE OR REPLACE DIRECTORY EXT_DATA_FILES AS ‘/data/ext_data_files’; GRANT

  • 0

Say you create a directory like:

CREATE OR REPLACE DIRECTORY 
EXT_DATA_FILES AS 
'/data/ext_data_files';
GRANT READ, WRITE ON DIRECTORY SYS.EXT_DATA_FILES TO MYAPPUSER;

I want to know if Oracle is capable of reading and writing files into that path. How could I test it?

That would help me a lot when creating external tables to avoid obscure error messages not really related to permissions error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:01:18+00:00Added an answer on May 31, 2026 at 4:01 pm

    You can use the UTL_FILE package. For example, this will verify that you can create a new file named some_new_file_name.txt in the directory and write data to it

    DECLARE
      l_file utl_file.file_type;
    BEGIN
      l_file := utl_file.fopen( 'EXT_DATA_FILES', 'some_new_file_name.txt', 'W' );
      utl_file.put_line( l_file, 'Here is some text' );
      utl_file.fclose( l_file );
    END;
    

    This will verify that a file named existing_file_name.txt exists and is readable

    DECLARE
      l_exists     boolean;
      l_size       integer;
      l_block_size integer;
    BEGIN
      utl_file.fgetattr( 'EXT_DATA_FILES', 
                         'existing_file_name.txt', 
                         l_exists, 
                         l_size, 
                         l_block_size );
       if( l_exists )
       then
         dbms_output.put_line( 'The file exists and has a size of ' || l_size );
       else
         dbms_output.put_line( 'The file does not exist or is not visible to Oracle' );
       end if;
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I create an instance of a class and want to assign some
Let's say I create a jagged 2d array like so: public static char[,] phoneLetterMapping
Say I want to create vb.net application in Visual studio 2005. What is the
Say I want to create a sort of Pre-processor for existing java code, so
Say I have a path to a file: /path/to/some/directory/file.ext In python, I'd like to
Say you create a form using ASP.NET MVC that has a dynamic number of
Say I create an object thus: var myObject = {ircEvent: PRIVMSG, method: newURI, regex:
Say I create one object and add it to my ArrayList . If I
Let's say you create a wizard in an HTML form. One button goes back,
Let's say that I create a Sub (not a function) whose mission in life

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.