Using Export and Import Utility Wizards

dbForge Fusion for Oracle has Export Utility and Import Utility wizards for exporting and importing database objects. It allows to transfer data objects between Oracle databases, even if they reside on the platforms with different hardware and software configurations. The Export Utility Wizard allows to extract the object definitions and table data from an Oracle database and stores them in an Oracle binary-format export dump file. The Import Utility Wizard allows to insert extracted objects from export dump files to Oracle database.

dbForge Fusion uses Oracle export and import utilities for export and import. So these utilities are required for export and import operations. These utilities are installed with Oracle Client software.

Note

It is recommended to use Oracle Client with version less or equal to the lowest version between source and target Oracle servers.

Export

To call the Export Utility Wizard, on the Fusion menu, point to Oracle, and then click Export Utility.

Note

To export tables owned by another user, you must have enough privileges.

There are four modes of export: Table, User, Full and Tablespace. You must connect as SYSDBA to use the Full and Tablespace modes.

Table mode

The Table mode allows to export particular tables. In the Table mode you can select tables and set additional queries to select a subset of rows from a set of tables for export.

To export particular tables:

  1. Call the Export Utility Wizard.
  2. Click Next if the Export Mode page is active.
  3. Select tables to export.
  4. Click the Additional query button and enter a condition to select a subset of rows from a set of tables if necessary. Condition must be the WHERE clause for the SELECT statement applicable for all selected tables.
  5. Click Next.
  6. Select additional objects and settings to export and click the Next button.
  7. Enter or select export dump and configuration files location and names. Click the Export button.
  8. Wait for export finish, select the check box if you want to view the export log, and click Finish.

User mode

The User mode allows extracting data objects of one ore more (for SYSDBA) users. It can be useful for users who want to back up their data or who want to move objects from one owner to another.

To export all data of one or more users:

  1. Call the Export Utility Wizard.
  2. Click the Back button if the Export Tables page is active.
  3. Select the User mode and click the Next button.
  4. Select the users whose data you want to export, and click Next. Only SYSDBA can export another user data.
  5. Select additional objects and settings to export. Click Next.
  6. Enter or select export dump and configuration files location and names. Click Export.
  7. Wait for export finish, select the check box if you want to view the export log. Click Finish.

Full mode

In the Full mode an entire database can be exported to the file with all GRANTS and all data.

To export a whole database:

  1. Call the Export Utility Wizard.
  2. Click Back if the Export Tables page is active.
  3. Select the Full mode. Click Next. If the Full option is not available, you have not enough privileges to use the Full mode. You must connect as SYSDBA to use this mode.
  4. Select additional objects and settings to export. Click Next.
  5. Enter or select export dump and configuration file locations and names. Click Export.
  6. Wait for the export finish, select the check box if you want to view the export log. Click Finish.

Tablespace mode

To move or copy a set of tablespaces you must copy the datafiles of these tablespaces, and export their metadata using Export Wizard in the Tablespace mode. The Tablespace mode allows to move a set of tablespaces from one Oracle database to another. Tablespaces to export must be ONLINE and READONLY. dbForge Fusion can temporarily make exporting tablespaces ONLINE and READONLY and restore their state after export.

To export tablespaces metadata:

  1. Call the Export Utility Wizard.
  2. Click Back if Export Tables page is active.
  3. Select the Tablespace mode and click Next. If the Tablespace option is not available, you have not enough privileges to use the Tablespac mode. You must connect as SYSDBA to use this mode.
  4. Select tablespaces to export. Click Next.
  5. Select additional objects and settings to export. Click Export.
  6. Enter or select export dump and configuration files location and names. Click Next.
  7. Wait for export finish, select the check box if you want to view the export log. Click Finish.

Import

There are four modes of import: Table, User, Full and Tablespace. You must connect as SYSDBA to use the Tablespace mode. To call Import Utility Wizard, in the Fusion menu, point to Oracle and then click Import Utility.

Table mode

This mode allows you to import specific tables. You can import either all tables from dump file or select particular tables.

To import specific tables:

  1. Call Import Utility Wizard.
  2. Select the export dump file and the configuration file location. Click Next. You can optionally select the index file for indexes import.
  3. Select the Table mode. Click Next.
  4. Select what tables to import, source and target schemas. You can import all tables from the file, enter table names manually or select table names from existing tables. Click Next.
  5. If you have chosen the Select from existing option, select tables from the existing tables list. Only table names but not owners will be selected. Table owners have been selected at the previous step.
  6. Select additional objects to import and import settings on this page. Click Import.
  7. Wait for import finish, select the check box if you want to view the import log. Click Finish.

User mode

This mode allows you to import all objects that belong to you (such as tables, grants, indexes, and procedures). If you are connected as SYSDBA, you can import all the objects in the schemas of a specified set of users to the specified schemas.

To import data in the User mode:

  1. Call Import Utility Wizard.
  2. Select export dump file and configuration file location. Click Next. You can optionally select index file for indexes import.
  3. Select the User mode. Click Next.
  4. Select source and destination schemas. Click Next.
  5. Select additional objects to import and import settings on this page. Click Import.
  6. Wait for import finish, select the check box if you want to view the import log. Click Finish.

Full mode

This mode allows you to import all data objects from the dump file. It also allows to use incremental import. Incremental import can be used for database restore.

To import the whole dump file:

  1. Call Import Utility Wizard.
  2. Select the export dump file and the configuration file location. Click Next. You can optionally select the index file for indexes import.
  3. Select the Full mode. Click Next.
  4. Select the destination schema and incremental import type. Click Next.
  5. Select additional objects to import and import settings on this page. Click Import.
  6. Wait for import finish, select the check box if you want to view the import log. Click Finish.

Tablespace mode

This mode allows to move a set of tablespaces from one Oracle database to another.

To import tablespaces:

  1. Call Import Utility Wizard.
  2. Select the export dump file and configuration file location. Click Next. You can optionally select the index file for indexes import.
  3. Select the Tablespace mode. Click Next. If the Tablespace option is not available, you have not enough privileges to use the Tablespace mode. You must connect as SYSDBA to use this mode.
  4. Select tablespaces’ datafiles, owners and tablespaces’ names to import. Click Next. You can select tablespaces’ owners from existing ones.
  5. If you have selected the Select from existing option, select tablespaces’ source and target owners from existing users. Click Import.
  6. Wait for import finish, select the check box if you want to view the import log. Click Finish.