CREATE DIRECTORY

CREATE DIRECTORY — create a directory object

Synopsis

CREATE [ OR REPLACE ] DIRECTORY dirname AS dirpath

Description

CREATE DIRECTORY defines a directory object. This command takes effect only in oracle-compatible mode.

Parameters

dirname

The dirname parameter indicates the name of the DIRECTORY object.

dirpath

The dirpath parameter indicates the directory path of the DIRECTORY object. The dirpath cannot overlap with LTDATA.

Examples

Create directory object:

CREATE DIRECTORY aaa AS '/home/lightdb';
CREATE OR REPLACE abc AS '/data';