Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Granting "Create Directory" Privileges in Oracle

I want to run a CREATE DIRECTORY query in Oracle 10, but it's giving me an insufficient privileges error.

Can anybody tell me how to grant this privilege to my user through the system as a user?

like image 243
Nipun Avatar asked Jun 29 '09 14:06

Nipun


2 Answers

From the Oracle 10gR2 documentation:

You must have CREATE ANY DIRECTORY system privilege to create directories.

You would use the following command to grant the privilege to the schema that will create the directory:

SQL> GRANT CREATE ANY DIRECTORY TO vnz;

Grant succeeded

As always with the privileges ANY, be careful who you will grant them to. It is indeed a powerful privilege best left to DBAs.

like image 164
Vincent Malgrat Avatar answered Sep 24 '22 05:09

Vincent Malgrat


From Oracle docs:

"You must have CREATE ANY DIRECTORY system privilege to create directories."

So,

grant create any directory to userOfInterest;

like image 36
dpbradley Avatar answered Sep 21 '22 05:09

dpbradley