Oracle7 Server Administrator's Guide

Contents Index Home Previous Next

Using the Export and Import Utilities for Supplemental Database Protection

This section describes the Import and Export utilities, and includes the following topics:

Export and Import are utilities that move Oracle data in and out of Oracle databases. Export writes data from an Oracle database to an operating system file in a special format. Import reads Export files and restores the corresponding information into an existing database. Although Export and Import are designed for moving Oracle data, you can also use them to supplement backups of data.

See Also: Both the Export and Import utilities are described in detail in the Oracle7 Server Utilities guide.

Using Export

The Export utility allows you to backup your database while it is open and available for use. It writes a read-consistent view of the database's objects to an operating system file. System audit options are not exported.

Warning: If you use Export to backup, all data must be exported in a logically consistent way so that the backup reflects a single point in time. No one should make changes to the database while the Export takes place. Ideally, you should run the database in restricted mode while you export the data, so no regular users can access the data.

Table 23 - 1 lists available export modes.

Mode Description
User exports all objects owned by a user
Table exports all or specific tables owned by a user
Full Database exports all objects of the database
Table 23 - 1. Export Modes

Following are descriptions of Export types:

Incremental Export Only database data that has changed since the last incremental, cumulative, or complete export is exported. An incremental export exports the object's definition and all its data. Incremental exports are typically performed more often than cumulative or complete reports.
For example, if tables A, B, and C exist, and only table A's information has been modified since the last incremental export, only table A is exported.
Cumulative Exports Only database data that has been changed since the last cumulative or complete export is exported.
Perform this type of export on a limited basis, such as once a week, to condense the information contained in numerous incremental exports.
For example, if tables A, B, and C exist, and only table A's and table B's information has been modified since the last cumulative export, only the changes to tables A and B are exported.
Complete Exports All database data is exported.
Perform this type of export on a limited basis, such as once a month, to export all data contained in a database.

Using Import

The Import utility allows you to restore the database information held in previously created Export files. It is the complement utility to Export.

To recover a database using Export files and the Import utility:

Note: These re-created structures should not have objects in them.

Assume that the schedule illustrated in Figure 23 - 1 is used in exporting data from an Oracle database.

Figure 23 - 1. A Typical Export Schedule

A complete export was taken on Day 1, a cumulative export was taken every week, and incremental exports were taken daily.

To recover from a disk failure that occurs on Day 10, before the next incremental export is taken on Day 11


Contents Index Home Previous Next