阅读文档时,写写笔记而已。一般只写综述的那一章。
Oracle® Database Utilities
10g Release 2 (10.2)
Part Number B14215-01
Oracle Data Pump is made up of three distinct parts:
【Oracle Data Pump由上述三部分组成】
The Data Pump clients, expdp and impdp, invoke the Data Pump Export utility and Data Pump Import utility, respectively. They provide a user interface that closely resembles the original export (exp) and import (imp) utilities.
The expdp and impdp clients use the procedures provided in the DBMS_DATAPUMP PL/SQL package to execute export and import commands, using the parameters entered at the command-line. These parameters enable the exporting and importing of data and metadata for a complete database or subsets of a database.
【实质是调用PL/SQL package,使用命令行里输入的参数】
【可以导入和导出数据和元数据】
Note:
All Data Pump Export and Import processing, including the reading and writing of dump files, is done on the system (server) selected by the specified database connect string.This means that, for nonprivileged users, the database administrator (DBA) must create directory objects for the Data Pump files that are read and written on that server file system.For privileged users, a default directory object is available. See Default Locations for Dump, Log, and SQL Files for more information about directory objects.
When data is moved, Data Pump automatically uses either direct path load (or unload) or the external tables mechanism, or a combination of both. When metadata is moved, Data Pump uses functionality provided by the DBMS_METADATA PL/SQL package. The DBMS_METADATA package provides a centralized facility for the extraction, manipulation, and resubmission of dictionary metadata.
【对于数据,Data Pump 自动选择direct path 、external tables 或混合两种同时使用】
【对于元数据,Data Pump 使用DBMS_METADATA PL/SQL包提供的功能】
The DBMS_DATAPUMP and DBMS_METADATA PL/SQL packages can be used independently of the Data Pump clients.
【两个包可以通过client独立调用】
See Also:
Oracle Database PL/SQL Packages and Types Reference for descriptions of the DBMS_DATAPUMP andDBMS_METADATA packages
The new Data Pump Export and Import utilities (invoked with the expdp and impdp commands, respectively) have a similar look and feel to the original Export (exp) and Import (imp) utilities, but they are completely separate. Dump files generated by the new Data Pump Export utility are not compatible with dump files generated by the original Export utility. Therefore, files generated by the original Export (exp) utility cannot be imported with the Data Pump Import (impdp) utility.
【exp/imp与expdp/impdp不兼容,所以,由原先的exp生成的文件无法使用impdp导入】
Oracle recommends that you use the new Data Pump Export and Import utilities because they support all Oracle Database 10g features, except for XML schemas and XML schema-based tables. Original Export and Import support the full set of Oracle database release 9.2 features. Also, the design of Data Pump Export and Import results in greatly enhanced data movement performance over the original Export and Import utilities.
【Oracle建议使用新的expdp/impdp,除了XML schemas and XML schema-based tables;新的expdp/impdp在性能上有极大地提高】
The following are the major new features that provide this increased performance, as well as enhanced ease of use:
【以下是新特性和优势】
【1、使用PARALLEL参数指定最大的活动线程,以让你能够在资源利用和时间上进行调节,这只在10g企业版中可以使用】
【2、能够重新开始Data Pump任务】
【3、客户端就可以退出或重新连接,而不影响任务任】
【4、支持通过网络对源数据是远端instance的导入导出操作】
【5、在导入时,可以修改数据文件的名字】
【6、在导入时,增强了remap表空间的操作】
【7、导入导出时,支持过滤元数据】
【8、支持对正在进行的任务进行交互式的命令行】
【9、能够不执行导出,而估算出导出所需的空间】
【10、能够在导出时通过指定database版本来选择性导出,为了向低版本的数据库中导入数据】
In import jobs, VERSION applies only to operations over the network. This means that VERSION applies to the version of database objects to be extracted from the source database. See VERSION for more information about using this parameter in import.
For additional information about using different versions, see Moving Data Between Different Database Versions.
【11、大多数 Data Pump 的导入导出任务是在server端进行的,而原先的导入导出主要在客户端进行】
The remainder of this chapter discusses Data Pump technology as it is implemented in the Data Pump Export and Import utilities. To make full use of Data Pump technology, you must be a privileged user. Privileged users have the EXP_FULL_DATABASE and IMP_FULL_DATABASE roles. Nonprivileged users have neither.
【为了更好的使用Data Pump技术,你必须是获得权限的用户,即EXP_FULL_DATABASE和IMP_FULL_DATABASE的角色】
Privileged users can do the following:
【获得权限的用户可以做到:】
【导入导出其它用户的内容】
【导入导出nonschema-based objects:如表空间和schema的定义,系统权限, resource plans 】
【接触、监控、管理其他人建立的Data Pump任务】
【对 datafiles进行remap】
【对其他人的datafiles进行remap】
Data Pump supports two access methods to load and unload table row data: direct path and external tables.Because both methods support the same external data representation, data that is unloaded with one method can be loaded using the other method. Data Pump automatically chooses the fastest method appropriate for each table.
【Data Pump 获得数据两种方式:直接路径和外部表,为每个表自动选择最快的方式】
Note:
Data Pump will not load tables with disabled unique indexes. If the data needs to be loaded into the table, the indexes must be either dropped or reenabled.【Data Pump不会加载有diabled唯一索引的表】
The Oracle database has provided direct path unload capability for export operations since Oracle release 7.3 and a direct path loader API for OCI since Oracle8i. Data Pump technology enhances direct path technology in the following ways:
【Data Pump 在direct path的改进】
【支持direct path, proprietary format unload】
【减少不必要的转换,提高性能】
【支持额外的数据类型和转换】
The default method that Data Pump uses for loading and unloading data is direct path, when the structure of a table allows it. Note that if the table has any columns of datatype LONG, then direct path must be used.
【当表的结构允许时,默认的方式是 direct path;当表有LONG字段时,必须使用direct path】
The following sections describe situations in which direct path cannot be used for loading and unloading.
Situations in Which Direct Path Load Is Not
If any of the following conditions exist for a table, Data Pump uses external tables rather than direct path to load the data for that table:
【Load时,以下情形,Data Pump 使用external tables 而非direct path】
Situations in Which Direct Path Unload Is Not Used
If any of the following conditions exist for a table, Data Pump uses the external table method to unload data, rather than direct path:
【unload时,以下情形,Data Pump 使用external tables 而非direct path】
External TablesThe Oracle database has provided an external tables capability since Oracle9i that allows reading of data sources external to the database. As of Oracle Database 10g, the external tables feature also supports writing database data to destinations external to the database. Data Pump provides an external tables access driver (ORACLE_DATAPUMP) that reads and writes files.The format of the files is the same format used with the direct path method.This allows for high-speed loading and unloading of database tables. Data Pump uses external tables as the data access mechanism in the following situations:
【自9i其支持从外部数据源读数据,到了10g,支持向外部写数据。Data Pump 提供外部表的driver(ORACLE_DATAPUMP)来读和写。以下情形Data Pump 使用外部表作为获取数据的机制:】
Note:
When Data Pump uses external tables as the data access mechanism, it uses the ORACLE_DATAPUMP access driver.However, it is important to understand that the files that Data Pump creates when it uses external tables are not compatible with files created when you manually create an external table using the SQL CREATE TABLE ... ORGANIZATION EXTERNAL statement. One of the reasons for this is that a manually created external table unloads only data (no metadata), whereas Data Pump maintains both data and metadata information for all objects involved.
【Data Pump 使用ORACLE_DATAPUMP access driver来提供外部表机制。】
【Data Pump用外部表创建的文件与你用SQL CREATE TABLE ... ORGANIZATION EXTERNAL手工创建的外部表不兼容。其中的一个原因是,你手工创建的外部表没有元数据,而Data Pump有】
See Also:
Chapter 14, "The ORACLE_DATAPUMP Access Driver"
When you perform. an export over a database link, the data from the source database instance is written to dump files on the connected database instance. In addition, the source database can be a read-only database.
When you perform. an import over a database link, the import source is a database, not a dump file set, and the data is imported to the connected database instance.
Because the link can identify a remotely networked database, the terms database link and network link are used interchangeably.
See Also:
NETWORK_LINK for information about performing exports over a database linkNETWORK_LINK for information about performing imports over a database link
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23650854/viewspace-682833/ ,如需转载,请注明出处,否则将追究法律责任。