Help Center > > Developer Guide> SQL Reference> SQL Syntax> ALTER DIRECTORY

ALTER DIRECTORY

Updated at: Mar 13, 2020 GMT+08:00

Function

ALTER DIRECTORY modifies a directory.

Precautions

  • Currently, only the directory owner can be changed.
  • The owner can only be a user with the sysadmin permission.

Syntax

1
2
ALTER DIRECTORY directory_name
    OWNER TO new_owner;

Parameter Description

directory_name

Specifies the name of a directory to be modified. The value must be an existing directory name.

Examples

1
2
3
4
5
6
7
8
-- Creates a directory.
CREATE OR REPLACE DIRECTORY  dir  as '/tmp/';

-- Change the owner of the directory.
ALTER DIRECTORY dir OWNER TO system;

-- Delete the foreign table.
DROP DIRECTORY dir;

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel