Entering content frame

Function documentation Exporting: Commands Locate the document in the library structure

Use

The Loader can process a range of commands and SQL statements, including Loader-specific commands for exporting data.

Prerequisites

Creating a Database Session: Commands

Syntax

<export_command> ::= EXPORT<part_spec>
  [<configuration_instream_spec>]
  [<order_clause>]
  (<catalog_outstream_spec> <data_outstream_spec>
  |<catalog_outstream_spec>
  |<data_outstream_spec> [<longfile_spec>...])

  [<package_outstream_spec>]
  [<restart>]

Features

The range of commands of the Loader makes it possible to export, with increasing granularity, a complete database, the objects of a user, the objects of a schema or individual tables.

You can use the syntax rule

<part_spec> ::= DB | USER | SCHEMA <schema_name> | TABLE <table_name>

to specify the required granularity. That is, you can specify whether you want to export all data, the data of a user, schema or a table.

You can export a set of columns of a table using the EXPORT COLUMNS command.

Under consideration of the granularity, the export commands can be classified as follows:

What is to be exported?

Loader command (abbreviated)

 

<part_spec> ::= DB

Entire database catalog and all application data

EXPORT DB
  CATALOG <outstream_spec>
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

Entire database catalog

EXPORT DB
  CATALOG <outstream_spec>
  PACKAGE <outstream_spec>

All application data of the database

EXPORT DB
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

 

See also: EXPORT DB Commands

 

<part_spec> ::= USER

Database catalog and all the application data of a user

EXPORT USER
  CATALOG <outstream_spec>
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

Database catalog of a user

EXPORT USER
  CATALOG <outstream_spec>
  PACKAGE <outstream_spec>

All application data of a user

EXPORT USER
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

 

See also: EXPORT USER Commands

 

<part_spec> ::= SCHEMA <schema_name>

Database catalog and all the application data of a schema

EXPORT SCHEMA <schema_name>
  CATALOG <outstream_spec>
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

Database catalog of a schema

EXPORT SCHEMA <schema_name>
  CATALOG <outstream_spec>
  PACKAGE <outstream_spec>

All application data of a schema

EXPORT SCHEMA <schema_name>
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

 

See also: EXPORT SCHEMA Commands

 

<part_spec> ::= TABLE <table_name>

Database catalog and all the application data of a table

EXPORT TABLE <table_name>
  CATALOG <outstream_spec>
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

Database catalog of a table

EXPORT TABLE <table_name>
  CATALOG <outstream_spec>
  PACKAGE <outstream_spec>

All application data of a table

EXPORT TABLE <table_name>
  DATA <outstream_spec>
  PACKAGE <outstream_spec>

 

See also: EXPORT TABLE Commands

Other Commands

Export set of qualified columns of a table

EXPORT COLUMNS
  <select_expression>
  DATA <outstream_spec>

See also: EXPORT COLUMNS Commands

See also:

Exporting and Importing: Syntax Elements

Importing: Commands

Exporting and Importing LONG Values

Exporting and Importing Using Third-Party Backup Tools

Syntax Rules: Overview

 

Leaving content frame