CREATE AND GRANT ACCESS TO DIRECTORY IN ORACLE

Create a logical directory on database

SQL> create directory dpexp as '/home/oracle';

Directory created.

Grant the both read and write privileges to access the directory for a user

SQL> grant read,write on directory dpexp to hr;

Grant succeeded.

To modify the path of the existing directory

SQL> create or replace directory dpexp as '/home';

Directory created.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s