首页 > 代码库 > expdp/impdp 参数说明,中英对照
expdp/impdp 参数说明,中英对照
任意可以使用expdp/impdp的环境,都可以通过help=y看到帮助文档。
1.expdp参数说明
[oracle@OEL-ASM ~]$ expdp help=yExport: Release 11.2.0.3.0 - Production on Thu Sep 4 11:43:39 2014Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.The Data Pump export utility provides a mechanism for transferring data objectsbetween Oracle databases. The utility is invoked with the following command: Example: expdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmpYou can control how Export runs by entering the ‘expdp‘ command followedby various parameters. To specify parameters, you use keywords: Format: expdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN) Example: expdp scott/tiger DUMPFILE=scott.dmp DIRECTORY=dmpdir SCHEMAS=scott or TABLES=(T1:P1,T1:P2), if T1 is partitioned tableUSERID must be the first parameter on the command line.------------------------------------------------------------------------------The available keywords and their descriptions follow. Default values are listed within square brackets.ATTACHAttach to an existing job.For example, ATTACH=job_name.CLUSTERUtilize cluster resources and distribute workers across the Oracle RAC.Valid keyword values are: [Y] and N.COMPRESSIONReduce the size of a dump file.Valid keyword values are: ALL, DATA_ONLY, [METADATA_ONLY] and NONE.CONTENTSpecifies data to unload.Valid keyword values are: [ALL], DATA_ONLY and METADATA_ONLY.DATA_OPTIONSData layer option flags.Valid keyword values are: XML_CLOBS.DIRECTORYDirectory object to be used for dump and log files.DUMPFILESpecify list of destination dump file names [expdat.dmp].For example, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.ENCRYPTIONEncrypt part or all of a dump file.Valid keyword values are: ALL, DATA_ONLY, ENCRYPTED_COLUMNS_ONLY, METADATA_ONLY and NONE.ENCRYPTION_ALGORITHMSpecify how encryption should be done.Valid keyword values are: [AES128], AES192 and AES256.ENCRYPTION_MODEMethod of generating encryption key.Valid keyword values are: DUAL, PASSWORD and [TRANSPARENT].ENCRYPTION_PASSWORDPassword key for creating encrypted data within a dump file.ESTIMATECalculate job estimates.Valid keyword values are: [BLOCKS] and STATISTICS.ESTIMATE_ONLYCalculate job estimates without performing the export.EXCLUDEExclude specific object types.For example, EXCLUDE=SCHEMA:"=‘HR‘".FILESIZESpecify the size of each dump file in units of bytes.FLASHBACK_SCNSCN used to reset session snapshot.FLASHBACK_TIMETime used to find the closest corresponding SCN value.FULLExport entire database [N].HELPDisplay Help messages [N].INCLUDEInclude specific object types.For example, INCLUDE=TABLE_DATA.JOB_NAMEName of export job to create.LOGFILESpecify log file name [export.log].NETWORK_LINKName of remote database link to the source system.NOLOGFILEDo not write log file [N].PARALLELChange the number of active workers for current job.PARFILESpecify parameter file name.QUERYPredicate clause used to export a subset of a table.For example, QUERY=employees:"WHERE department_id > 10".REMAP_DATASpecify a data conversion function.For example, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO.REUSE_DUMPFILESOverwrite destination dump file if it exists [N].SAMPLEPercentage of data to be exported. SCHEMASList of schemas to export [login schema].SERVICE_NAMEName of an active Service and associated resource group to constrain Oracle RAC resources.SOURCE_EDITIONEdition to be used for extracting metadata.STATUSFrequency (secs) job status is to be monitored wherethe default [0] will show new status when available.TABLESIdentifies a list of tables to export.For example, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995.TABLESPACESIdentifies a list of tablespaces to export.TRANSPORTABLESpecify whether transportable method can be used.Valid keyword values are: ALWAYS and [NEVER].TRANSPORT_FULL_CHECKVerify storage segments of all tables [N].TRANSPORT_TABLESPACESList of tablespaces from which metadata will be unloaded.VERSIONVersion of objects to export.Valid keyword values are: [COMPATIBLE], LATEST or any valid database version.------------------------------------------------------------------------------The following commands are valid while in interactive mode.Note: abbreviations are allowed.ADD_FILEAdd dumpfile to dumpfile set.CONTINUE_CLIENTReturn to logging mode. Job will be restarted if idle.EXIT_CLIENTQuit client session and leave job running.FILESIZEDefault filesize (bytes) for subsequent ADD_FILE commands.HELPSummarize interactive commands.KILL_JOBDetach and delete job.PARALLELChange the number of active workers for current job.REUSE_DUMPFILESOverwrite destination dump file if it exists [N]. START_JOBStart or resume current job.Valid keyword values are: SKIP_CURRENT.STATUSFrequency (secs) job status is to be monitored wherethe default [0] will show new status when available.STOP_JOBOrderly shutdown of job execution and exits the client.Valid keyword values are: IMMEDIATE.
2.impdp参数说明
[oracle@OEL-ASM ~]$ impdp help=yImport: Release 11.2.0.3.0 - Production on Thu Sep 4 11:44:31 2014Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.The Data Pump Import utility provides a mechanism for transferring data objectsbetween Oracle databases. The utility is invoked with the following command: Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmpYou can control how Import runs by entering the ‘impdp‘ command followedby various parameters. To specify parameters, you use keywords: Format: impdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN) Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmpUSERID must be the first parameter on the command line.------------------------------------------------------------------------------The available keywords and their descriptions follow. Default values are listed within square brackets.ATTACHAttach to an existing job.For example, ATTACH=job_name.CLUSTERUtilize cluster resources and distribute workers across the Oracle RAC.Valid keyword values are: [Y] and N.CONTENTSpecifies data to load.Valid keywords are: [ALL], DATA_ONLY and METADATA_ONLY.DATA_OPTIONSData layer option flags.Valid keywords are: SKIP_CONSTRAINT_ERRORS.DIRECTORYDirectory object to be used for dump, log and SQL files.DUMPFILEList of dump files to import from [expdat.dmp].For example, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.ENCRYPTION_PASSWORDPassword key for accessing encrypted data within a dump file.Not valid for network import jobs.ESTIMATECalculate job estimates.Valid keywords are: [BLOCKS] and STATISTICS.EXCLUDEExclude specific object types.For example, EXCLUDE=SCHEMA:"=‘HR‘".FLASHBACK_SCNSCN used to reset session snapshot.FLASHBACK_TIMETime used to find the closest corresponding SCN value.FULLImport everything from source [Y].HELPDisplay help messages [N].INCLUDEInclude specific object types.For example, INCLUDE=TABLE_DATA.JOB_NAMEName of import job to create.LOGFILELog file name [import.log].NETWORK_LINKName of remote database link to the source system.NOLOGFILEDo not write log file [N].PARALLELChange the number of active workers for current job.PARFILESpecify parameter file.PARTITION_OPTIONSSpecify how partitions should be transformed.Valid keywords are: DEPARTITION, MERGE and [NONE].QUERYPredicate clause used to import a subset of a table.For example, QUERY=employees:"WHERE department_id > 10".REMAP_DATASpecify a data conversion function.For example, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO.REMAP_DATAFILERedefine data file references in all DDL statements.REMAP_SCHEMAObjects from one schema are loaded into another schema.REMAP_TABLETable names are remapped to another table.For example, REMAP_TABLE=HR.EMPLOYEES:EMPS.REMAP_TABLESPACETablespace objects are remapped to another tablespace.REUSE_DATAFILESTablespace will be initialized if it already exists [N].SCHEMASList of schemas to import.SERVICE_NAMEName of an active Service and associated resource group to constrain Oracle RAC resources.SKIP_UNUSABLE_INDEXESSkip indexes that were set to the Index Unusable state.SOURCE_EDITIONEdition to be used for extracting metadata.SQLFILEWrite all the SQL DDL to a specified file.STATUSFrequency (secs) job status is to be monitored wherethe default [0] will show new status when available.STREAMS_CONFIGURATIONEnable the loading of Streams metadataTABLE_EXISTS_ACTIONAction to take if imported object already exists.Valid keywords are: APPEND, REPLACE, [SKIP] and TRUNCATE.TABLESIdentifies a list of tables to import.For example, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995.TABLESPACESIdentifies a list of tablespaces to import.TARGET_EDITIONEdition to be used for loading metadata.TRANSFORMMetadata transform to apply to applicable objects.Valid keywords are: OID, PCTSPACE, SEGMENT_ATTRIBUTES and STORAGE.TRANSPORTABLEOptions for choosing transportable data movement.Valid keywords are: ALWAYS and [NEVER].Only valid in NETWORK_LINK mode import operations.TRANSPORT_DATAFILESList of data files to be imported by transportable mode.TRANSPORT_FULL_CHECKVerify storage segments of all tables [N].TRANSPORT_TABLESPACESList of tablespaces from which metadata will be loaded.Only valid in NETWORK_LINK mode import operations.VERSIONVersion of objects to import.Valid keywords are: [COMPATIBLE], LATEST or any valid database version.Only valid for NETWORK_LINK and SQLFILE.------------------------------------------------------------------------------The following commands are valid while in interactive mode.Note: abbreviations are allowed.CONTINUE_CLIENTReturn to logging mode. Job will be restarted if idle.EXIT_CLIENTQuit client session and leave job running.HELPSummarize interactive commands.KILL_JOBDetach and delete job.PARALLELChange the number of active workers for current job.START_JOBStart or resume current job.Valid keywords are: SKIP_CURRENT.STATUSFrequency (secs) job status is to be monitored wherethe default [0] will show new status when available.STOP_JOBOrderly shutdown of job execution and exits the client.Valid keywords are: IMMEDIATE.
3.expdp参数说明(中文)
C:\Users\Alfred>expdp help=yExport: Release 11.2.0.1.0 - Production on 星期五 10月 10 12:25:21 2014Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.数据泵导出实用程序提供了一种用于在 Oracle 数据库之间传输数据对象的机制。该实用程序可以使用以下命令进行调用: 示例: expdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp您可以控制导出的运行方式。具体方法是: 在 ‘expdp‘ 命令后输入各种参数。要指定各参数, 请使用关键字: 格式: expdp KEYWORD=value 或 KEYWORD=(value1,value2,...,valueN) 示例: expdp scott/tiger DUMPFILE=scott.dmp DIRECTORY=dmpdir SCHEMAS=scott 或 TABLES=(T1:P1,T1:P2), 如果 T1 是分区表USERID 必须是命令行中的第一个参数。------------------------------------------------------------------------------以下是可用关键字和它们的说明。方括号中列出的是默认值。ATTACH连接到现有作业。例如, ATTACH=job_name。COMPRESSION减少转储文件大小。有效的关键字值为: ALL, DATA_ONLY, [METADATA_ONLY] 和 NONE。CONTENT指定要卸载的数据。有效的关键字值为: [ALL], DATA_ONLY 和 METADATA_ONLY。DATA_OPTIONS数据层选项标记。有效的关键字值为: XML_CLOBS。DIRECTORY用于转储文件和日志文件的目录对象。DUMPFILE指定目标转储文件名的列表 [expdat.dmp]。例如, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp。ENCRYPTION加密某个转储文件的一部分或全部。有效的关键字值为: ALL, DATA_ONLY, ENCRYPTED_COLUMNS_ONLY, METADATA_ONLY 和 NONE。ENCRYPTION_ALGORITHM指定加密的方式。有效的关键字值为: [AES128], AES192 和 AES256。ENCRYPTION_MODE生成加密密钥的方法。有效的关键字值为: DUAL, PASSWORD 和 [TRANSPARENT]。ENCRYPTION_PASSWORD用于在转储文件中创建加密数据的口令密钥。ESTIMATE计算作业估计值。有效的关键字值为: [BLOCKS] 和 STATISTICS。ESTIMATE_ONLY计算作业估计值而不执行导出。EXCLUDE排除特定对象类型。例如, EXCLUDE=SCHEMA:"=‘HR‘"。FILESIZE以字节为单位指定每个转储文件的大小。FLASHBACK_SCN用于重置会话快照的 SCN。FLASHBACK_TIME用于查找最接近的相应 SCN 值的时间。FULL导出整个数据库 [N]。HELP显示帮助消息 [N]。INCLUDE包括特定对象类型。例如, INCLUDE=TABLE_DATA。JOB_NAME要创建的导出作业的名称。LOGFILE指定日志文件名 [export.log]。NETWORK_LINK源系统的远程数据库链接的名称。NOLOGFILE不写入日志文件 [N]。PARALLEL更改当前作业的活动 worker 的数量。PARFILE指定参数文件名。QUERY用于导出表的子集的谓词子句。例如, QUERY=employees:"WHERE department_id > 10"。REMAP_DATA指定数据转换函数。例如, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO。REUSE_DUMPFILES覆盖目标转储文件 (如果文件存在) [N]。SAMPLE要导出的数据的百分比。SCHEMAS要导出的方案的列表 [登录方案]。SOURCE_EDITION用于提取元数据的版本。STATUS监视作业状态的频率, 其中默认值 [0] 表示只要有新状态可用, 就立即显示新状态。TABLES标识要导出的表的列表。例如, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995。TABLESPACES标识要导出的表空间的列表。TRANSPORTABLE指定是否可以使用可传输方法。有效的关键字值为: ALWAYS 和 [NEVER]。TRANSPORT_FULL_CHECK验证所有表的存储段 [N]。TRANSPORT_TABLESPACES要从中卸载元数据的表空间的列表。VERSION要导出的对象版本。有效的关键字值为: [COMPATIBLE], LATEST 或任何有效的数据库版本。------------------------------------------------------------------------------下列命令在交互模式下有效。注: 允许使用缩写。ADD_FILE将转储文件添加到转储文件集。CONTINUE_CLIENT返回到事件记录模式。如果处于空闲状态, 将重新启动作业。EXIT_CLIENT退出客户机会话并使作业保持运行状态。FILESIZE用于后续 ADD_FILE 命令的默认文件大小 (字节)。HELP汇总交互命令。KILL_JOB分离并删除作业。PARALLEL更改当前作业的活动 worker 的数量。REUSE_DUMPFILES覆盖目标转储文件 (如果文件存在) [N]。START_JOB启动或恢复当前作业。有效的关键字值为: SKIP_CURRENT。STATUS监视作业状态的频率, 其中默认值 [0] 表示只要有新状态可用, 就立即显示新状态。STOP_JOB按顺序关闭作业执行并退出客户机。有效的关键字值为: IMMEDIATE。
4.impdp参数说明(中文)
C:\Users\Alfred>impdp help=yImport: Release 11.2.0.1.0 - Production on 星期五 10月 10 23:44:16 2014Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.数据泵导入实用程序提供了一种用于在 Oracle 数据库之间传输数据对象的机制。该实用程序可以使用以下命令进行调用: 示例: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp您可以控制导入的运行方式。具体方法是: 在 ‘impdp‘ 命令后输入各种参数。要指定各参数, 请使用关键字: 格式: impdp KEYWORD=value 或 KEYWORD=(value1,value2,...,valueN) 示例: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmpUSERID 必须是命令行中的第一个参数。------------------------------------------------------------------------------以下是可用关键字和它们的说明。方括号中列出的是默认值。ATTACH连接到现有作业。例如, ATTACH=job_name。CONTENT指定要加载的数据。有效的关键字为: [ALL], DATA_ONLY 和 METADATA_ONLY。DATA_OPTIONS数据层选项标记。有效的关键字为: SKIP_CONSTRAINT_ERRORS。DIRECTORY用于转储文件, 日志文件和 SQL 文件的目录对象。DUMPFILE要从中导入的转储文件的列表 [expdat.dmp]。例如, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp。ENCRYPTION_PASSWORD用于访问转储文件中的加密数据的口令密钥。对于网络导入作业无效。ESTIMATE计算作业估计值。有效的关键字为: [BLOCKS] 和 STATISTICS。EXCLUDE排除特定对象类型。例如, EXCLUDE=SCHEMA:"=‘HR‘"。FLASHBACK_SCN用于重置会话快照的 SCN。FLASHBACK_TIME用于查找最接近的相应 SCN 值的时间。FULL导入源中的所有对象 [Y]。HELP显示帮助消息 [N]。INCLUDE包括特定对象类型。例如, INCLUDE=TABLE_DATA。JOB_NAME要创建的导入作业的名称。LOGFILE日志文件名 [import.log]。NETWORK_LINK源系统的远程数据库链接的名称。NOLOGFILE不写入日志文件 [N]。PARALLEL更改当前作业的活动 worker 的数量。PARFILE指定参数文件。PARTITION_OPTIONS指定应如何转换分区。有效的关键字为: DEPARTITION, MERGE 和 [NONE]。QUERY用于导入表的子集的谓词子句。例如, QUERY=employees:"WHERE department_id > 10"。REMAP_DATA指定数据转换函数。例如, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO。REMAP_DATAFILE在所有 DDL 语句中重新定义数据文件引用。REMAP_SCHEMA将一个方案中的对象加载到另一个方案。REMAP_TABLE将表名重新映射到另一个表。例如, REMAP_TABLE=EMP.EMPNO:REMAPPKG.EMPNO。REMAP_TABLESPACE将表空间对象重新映射到另一个表空间。REUSE_DATAFILES如果表空间已存在, 则将其初始化 [N]。SCHEMAS要导入的方案的列表。SKIP_UNUSABLE_INDEXES跳过设置为“索引不可用”状态的索引。SOURCE_EDITION用于提取元数据的版本。SQLFILE将所有的 SQL DDL 写入指定的文件。STATUS监视作业状态的频率, 其中默认值 [0] 表示只要有新状态可用, 就立即显示新状态。STREAMS_CONFIGURATION启用流元数据的加载TABLE_EXISTS_ACTION导入对象已存在时执行的操作。有效的关键字为: APPEND, REPLACE, [SKIP] 和 TRUNCATE。TABLES标识要导入的表的列表。例如, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995。TABLESPACES标识要导入的表空间的列表。TARGET_EDITION用于加载元数据的版本。TRANSFORM要应用于适用对象的元数据转换。有效的关键字为: OID, PCTSPACE, SEGMENT_ATTRIBUTES 和 STORAGE。TRANSPORTABLE用于选择可传输数据移动的选项。有效的关键字为: ALWAYS 和 [NEVER]。仅在 NETWORK_LINK 模式导入操作中有效。TRANSPORT_DATAFILES按可传输模式导入的数据文件的列表。TRANSPORT_FULL_CHECK验证所有表的存储段 [N]。TRANSPORT_TABLESPACES要从中加载元数据的表空间的列表。仅在 NETWORK_LINK 模式导入操作中有效。VERSION要导入的对象的版本。有效的关键字为: [COMPATIBLE], LATEST 或任何有效的数据库版本。仅对 NETWORK_LINK 和 SQLFILE 有效。------------------------------------------------------------------------------下列命令在交互模式下有效。注: 允许使用缩写。CONTINUE_CLIENT返回到事件记录模式。如果处于空闲状态, 将重新启动作业。EXIT_CLIENT退出客户机会话并使作业保持运行状态。HELP汇总交互命令。KILL_JOB分离并删除作业。PARALLEL更改当前作业的活动 worker 的数量。START_JOB启动或恢复当前作业。有效的关键字为: SKIP_CURRENT。STATUS监视作业状态的频率, 其中默认值 [0] 表示只要有新状态可用, 就立即显示新状态。STOP_JOB按顺序关闭作业执行并退出客户机。有效的关键字为: IMMEDIATE。
expdp/impdp 参数说明,中英对照
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。