3.3.1 Create a File

This topic describes how to create a file in Exascale using ESCLI.

Typically, you implicitly create files in Exascale as a byproduct of performing some action with an Exascale client, such as Oracle Database. For example, when you create a database or add a file to a tablespace.

However, you can also explicitly create a file inside an Exascale vault by using ESCLI.

To create a file using ESCLI, use the mkfile command. For example:

@> mkfile @my-vault-name/my-file-name

As shown in the example, the simplest form of the command creates an empty file in the specified vault location.

Using other command options available with the mkfile command, you can:

  • Specify the file size.

    For example:

    @> mkfile @my-data/my-file --attributes size=1G
  • Specify the file type.

    For example:

    @> mkfile @my-data/my-data-file --attributes fileType=DATAFILE
  • Specify a template to apply.

    For example:

    @> mkfile @my-data/my-data-file2 --template DATAFILE
  • Explicitly specify the file storage attributes.

    For example:

    @> mkfile @my-data/my-data-file3 --attributes storagePool=my-pool1