You are on page 1of 17

Agenda

Overview Oracle Export and Import Utilities Methods of Invoking the Export and Import Utilities Export Modes Direct-Path Export Concepts Uses of the Import Utility for Recovery Globalization Support Considerations

Objectives
1. Describe the uses of the Export and Import utilities 2. Describe Export and Import concepts and structures 3. Perform simple Export and Import operations 4. List guidelines for using Export and Import

Oracle database Export

Oracle database

Import

You can use these utilities to do the following:


Archive historical data Save table definitions to protect them from user error failure Move data between machines and databases or between different versions of the Oracle server Transport tablespaces between databases

SOFTEX Form Procedure


Original Sent Directly to RBI by Certifying Agency Duplicate Retuned to Exporter Triplicate Retained by STPI/FTZ/EPZ

Duplicate form to be submitted to AD within 21 days of certification


Billing to be done for long term contracts on reaching "milestones" or once a month for others within 15 days of completion and for certification by the authorities in the STP

Methods of Invoking the Export and Import Utilities


Command-line interface An interactive dialog Parameter files Oracle Enterprise Manager

Invoking Export

Syntax:

exp keyword = value, value2, ,valuen

Examples:

exp hr/hr TABLES=employees,departments rows=y file=exp1.dmp exp system/manager OWNER=hr direct=y file=expdat.dmp exp \'username/password AS SYSDBA\' TRANSPORT_TABLESPACE=y TABLESPACES=ts_emp log=ts_emp.log

Using the Export Wizard

Direct-Path Export Concepts


Export Generate SQL commands Export Dump file Oracle Server Two-Task SQL Buffer Write common command cache blocks (TTC) processing manager

TTC buffer

Evaluating buffer

Buffer cache

Read blocks

Direct Path Direct Path Conventional Path

The direct-path option cannot be invoked interactively. Client-side and server-side character sets must be the same. The BUFFER parameter has no affect.
You cannot use the direct-path option to export rows containing LOB, BFILE, REF, or object types.

Create table definitions Extract data from a valid Export file Import from a complete or cumulative Export file Recover from user-error failures

Import Modes
Mode Table User Description Import specified tables into a schema. Import all objects that belong to a schema Import all definitions of the objects contained in the tablespace

Tablespace

Full Database

Import all objects from the export file

Exim Bank

Set up by an September, 1981

act

of

parliament

in

Wholly owned by Government of India

Commenced

operations in march, 1982

Established for providing financial assistance to exporters and importers, and for functioning as the principal financial institution for coordinating the working of institutions engaged in financing export and import of goods and services with a view to promoting the countrys international trade

Using the Import Wizard

Import Process Sequence


1. New tables are created 2. Data is imported 3. Indexes are built 4. Triggers are imported

5. Integrity constraints are enabled on thenew tables


6. Any bitmap, functional, and/or domain indexes are built

The Export file identifies the character encoding scheme used for the character data in the file. The Import utility translates data to the character set of its host system. A multibyte character set Export file must be imported into a system that has the same characteristics.