18 Copyright © Oracle Corporation, 2001. All rights reserved. Transporting Data Between Databases.

Slides:



Advertisements
Similar presentations
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Advertisements

13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
CHAPTER 13 Data Pump. Tool that replaces legacy exp/imp utilities Data Pump is a scalable, feature-rich utility that allows you to extract objects and.
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
17 Copyright © 2005, Oracle. All rights reserved. Performing Flashback.
9 Copyright © 2004, Oracle. All rights reserved. Managing Data.
18 Copyright © 2005, Oracle. All rights reserved. Moving Data.
System Administration Accounts privileges, users and roles
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
10 Copyright © 2009, Oracle. All rights reserved. Managing Undo Data.
Copyright  Oracle Corporation, All rights reserved. 4 Creating Functions.
Configuring Recovery Manager
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
16 Copyright © 2007, Oracle. All rights reserved. Performing Database Recovery.
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
9 Copyright © 2004, Oracle. All rights reserved. Flashback Database.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
16 Copyright © Oracle Corporation, All rights reserved. Managing Privileges.
1 Copyright © 2006, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
17 Copyright © Oracle Corporation, All rights reserved. Recovery Catalog Creation and Maintenance.
6 Copyright © 2006, Oracle. All rights reserved. Flashback.
3 Copyright © 2009, Oracle. All rights reserved. Creating an Oracle Database Using DBCA.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
2 Using Administration Tools Objectives Using the Server Manager Line Mode Identifying administration applications supplied with the Oracle Enterprise.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
Controlling User Access Fresher Learning Program January, 2012.
14 Copyright © Oracle Corporation, All rights reserved. SQL Workshop.
IT Database Administration Section 09. Backup and Recovery Backup: The available options Full Consistent (cold) Backup Database shutdown, all files.
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
12 Copyright © 2009, Oracle. All rights reserved. Managing Backups, Development Changes, and Security.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
1 Copyright © Oracle Corporation, All rights reserved. Writing Basic SQL SELECT Statements.
12 Copyright © Oracle Corporation, All rights reserved. User-Managed Complete Recovery.
13 Copyright © Oracle Corporation, All rights reserved. Controlling User Access.
6 Copyright © 2007, Oracle. All rights reserved. Performing User-Managed Backup and Recovery.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
16 Copyright © 2005, Oracle. All rights reserved. Performing Database Recovery.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
5 Copyright © 2008, Oracle. All rights reserved. Testing and Validating a Repository.
C Copyright © 2007, Oracle. All rights reserved. Security New Features.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
6 Copyright © Oracle Corporation, All rights reserved. Backup and Recovery Overview.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
11 Copyright © 2004, Oracle. All rights reserved. Performing a Migration Using Oracle Migration Workbench (Part II)
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
15 Copyright © Oracle Corporation, All rights reserved. Managing Users.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Controlling User Access
Controlling User Access
Backup and Recovery.
Export and Import Utilities
Using SQL*Plus.
Presentation transcript:

18 Copyright © Oracle Corporation, All rights reserved. Transporting Data Between Databases

Copyright © Oracle Corporation, All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe the uses of the Export and Import utilities Describe Export and Import concepts and structures Perform simple Export and Import operations List guidelines for using Export and Import

Copyright © Oracle Corporation, All rights reserved. Oracle Export and Import Utilities Oracle database Export Import

Copyright © Oracle Corporation, All rights reserved. Oracle Export and Import Utility Overview 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

Copyright © Oracle Corporation, All rights reserved.

Methods of Invoking the Export and Import Utilities Command-line interface An interactive dialog Parameter files Oracle Enterprise Manager

Copyright © Oracle Corporation, All rights reserved. Full Database Mode Tables definitions Tables data Grants Indexes Tables constraints Export Modes Table Mode Table definitions Table data (all or selected rows) Owner’s table grants Owner’s table indexes Table constraints User Mode Tables definitions Tables data Owner’s grants Owner’s indexes Tables constraints Tablespace Mode Table definitions Grants Indexes Table constraints Triggers

Copyright © Oracle Corporation, All rights reserved.

Invoking Export Syntax: Examples: exp hr/hr TABLES=employees,departments rows=y file=exp1.dmp exp keyword = value, value2, …,valuen 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

Copyright © Oracle Corporation, All rights reserved.

Using the Export Wizard

Copyright © Oracle Corporation, All rights reserved. Direct-Path Export Concepts Buffer cache Generate SQL commands Write blocks Direct Path Dump file Export Oracle Server Read blocks Evaluating buffer TTC buffer Buffer cache manager SQL command processing Two-Task common (TTC) Direct Path Conventional Path

Copyright © Oracle Corporation, All rights reserved. Direct-Path Export Features The type of Export is indicated on the screen output, export dump file, and the log file. Data is already in the format that Export expects, avoiding unnecessary data conversion. Uses an optimized SQL SELECT statement.

Copyright © Oracle Corporation, All rights reserved. Direct-Path Export Restrictions 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.

Copyright © Oracle Corporation, All rights reserved. Specifying Direct-Path Export As command line argument to the Export command: As a keyword in a parameter file: exp parfile= exp userid=hr/hr full=y direct=y Parameter file ….. (Other Parameters) DIRECT = Y …... (Other Parameters)

Copyright © Oracle Corporation, All rights reserved. Uses of the Import Utility for Recovery Create table definitions Extract data from a valid Export file Import from a complete or cumulative Export file Recover from user-error failures

Copyright © Oracle Corporation, All rights reserved. Import Modes Mode Description Table Import specified tables into a schema. User Import all objects that belong to a schema Tablespace Import all definitions of the objects contained in the tablespace Full Database Import all objects from the export file

Copyright © Oracle Corporation, All rights reserved. Invoking Import Syntax: Examples: imp hr/hr TABLES=employees,departments rows=y file=exp1.dmp imp keyword = value or keyword = value, value2, … value n imp system/manager FROMUSER=hr file=exp2.dmp imp \'username/password AS SYSDBA\' TRANSPORT_TABLESPACE=y TABLESPACES=ts_employees

Copyright © Oracle Corporation, All rights reserved.

Using the Import Wizard

Copyright © Oracle Corporation, All rights reserved. Invoking Import as SYSDBA You need to invoke Import as SYSDBA under the following conditions: –At the request of Oracle technical support –When importing a transportable tablespace set To invoke Import as SYSDBA : imp \'username/password AS SYSDBA\'

Copyright © Oracle Corporation, All rights reserved. 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 the new tables 6. Any bitmap, functional, and/or domain indexes are built

Copyright © Oracle Corporation, All rights reserved. Globalization Support Considerations 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.

Copyright © Oracle Corporation, All rights reserved. Summary In this lesson, you should have learned how to: Describe the uses of Export and Import Describe Export and Import concepts and structures Perform simple Export and Import operations List guidelines for using Export and Import

Copyright © Oracle Corporation, All rights reserved. Practice 18 Overview This practice covers the following topics: Using the Export utility Using the Import utility

Copyright © Oracle Corporation, All rights reserved.