BC remote Oracle DBA - Call (800) 766-1884
Free Oracle Tips

Oracle Consulting Oracle Training Development

Remote DBA

 

Remote DBA Plans
Remote DBA Service

 
Remote DBA Oracle Home
Remote DBA Oracle Training
Remote DBA SQL Tuning Consulting
Remote DBA Oracle Tuning Consulting
Remote DBA Data Warehouse Consulting
Remote DBA Oracle Project Management
Remote DBA Oracle Security Assessment
Remote DBA Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Internals Magazine
Oracle Links
Remote DBA Oracle Monitoring
Remote DBA Support Benefits
Remote DBA Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

 

 

Oracle Using Data Pump Export and Import

Oracle Tips by Burleson Consulting

This is an excerpt from "Oracle 10g New Features for Administrators" by Ahmed Baraka.

Data Pump Export Interfaces - Using the Command Line

expdp system/manager directory=dpump_dir1
dumpfile=expdat1.dmp

Using a Parameter File

expdp parfile=myfile.txt

Using Interactive-command Data Pump Export

In Data Pump export, you use the interactive-command interface for one purpose only: when you decide you need to change some export parameters midstream, while the job is still running. Note that the export or import job keeps running throughout, without any interruption.

This mode is enabled by pressing [Ctrl] + [C] during an export operation started with the command-line interface or the parameter file interface.

Using EM Database Control

Start the Database Control and go to the Maintenance | Utilities page.

Data Pump Export Modes

o Full export mode: using FULL parameter

o Schema mode: using SCHEMAS parameter

o Tablespace mode: using TABLESPACES and/or    TRANSPORT_TABLESPACES parameters

o Table mode: using TABLES parameter

Data Pump Export Parameters - File and Directory-Related Parameters

DIRECTORY - specifies the location of the dump and other files.

DUMPFILE - provides the name of the dump file to which the export dump should be written.

You can provide multiple dump filenames in several ways:

o by specifying the %U substitution variable. Using this method, the number of files you can create is equal to the value of the PARALLEL parameter.

o using a comma-separated list.

o specifying the DUMPFILE parameter multiple times

FILESIZE - this optional parameter specifies size of export file. The export job will stop if your dump file reaches its size limit.

PARFILE - used to specify the parameter file. Every parameter should be in a line.

Note: The directory object is not used by this parameter. The directory path is an operating system specific directory specification. The default is the user's current directory.

LOGFILE and NOLOGFILE - You can use the LOGFLE parameter to specify a log file
for your export jobs. If you don’t specify this parameter, Oracle will create a log file
named export.log. If you specify the parameter NOLOGFILE, Oracle will not create its log file.

Export Mode-Related Parameters

The export mode-related parameters are the FULL, SCHEMAS, TABLES,
TABLESPACES, TRANSPORT_TABLESPACES, and  TRANSPORT_FULL_CHECK parameters. The TRANSPORT_FULL_CHECK parameter simply checks to make sure that the tablespaces you are trying to transport meet all the conditions to qualify for the job.

Export Filtering Parameters

CONTENT - It controls contents of exported data. The possible values are:

o ALL exports data and definitions (metadata).

o DATA_ONLY exports only table rows.

o METADATA_ONLY exports only metadata (this is equivalent to
   rows=n ).

EXCLUDE and INCLUDE - Those are mutually exclusive parameters. The EXCLUDE
parameter is used to omit specific database object types from an export or import
operation. The INCLUDE parameter enables you to include only a specific set of objects.

The syntaxes of using them are as follows:

EXCLUDE=object_type[:name_clause]
INCLUDE=object_type[:name_clause]

Examples:

EXCLUDE=INDEX
EXCLUDE=TABLE:"LIKE 'EMP%'"
EXCLUDE=SCHEMA:"='HR'"
INCLUDE=TABLE:"IN ('EMP', 'DEPT')"
QUERY

This parameter lets you selectively export table row data with the help of a SQL statement.

QUERY=OE.ORDERS: "WHERE order_id > 100000"

Estimation Parameters

ESTIMATE - The ESTIMATE parameter will tell you how much space your new export job is going to consume.

By default, Oracle will used the blocks method to do its estimation.

Total estimation using BLOCKS method: 654 KB

When you set ESTIMATE=statistics, Oracle will use the statistics of the database objects to calculate its estimation.

Total estimation using STATISTICS method:

65.72 KB

ESTIMATE_ONLY - Use this parameter to estimate the required export file size without starting an actual export job.

 

 

If you like Oracle tuning, see the book "Oracle Tuning: The Definitive Reference", with 950 pages of tuning tips and scripts. 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


Expert Remote DBA

BC is America's oldest and largest Remote DBA Oracle support provider.  Get real Remote DBA experts, call
BC Remote DBA today.

 

 

Remote DBA Service
 

Oracle Tuning Book

Free Oracle dictionary reference poster

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

North Carolina Oracle Users Group

 

 Arabian horse breeder

Seeing eye horses

 

 

Burleson is the American Team

American Flag

 

 

BC Remote Oracle Support
P.O. Box 511 • Kittrell, NC, 27544

Remote DBA

Remote DBA Services

 

Copyright © 1996 -  2011 by Burleson Enterprises. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.



Hit Counter