Granting “Create Directory” Privileges in Oracle

前端 未结 2 1154
余生分开走
余生分开走 2021-02-20 06:48

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 t

相关标签:
2条回答
  • 2021-02-20 07:20

    From Oracle docs:

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

    So,

    grant create any directory to userOfInterest;

    0 讨论(0)
  • 2021-02-20 07:43

    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.

    0 讨论(0)
提交回复
热议问题