日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Oracle Datapump实验

發(fā)布時間:2023/12/14 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Oracle Datapump实验 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

初始化工作

首先建立目錄:

$ sudo mkdir /u01/dumpdir $ sudo chown oracle:oinstall /u01/dumpdir

PDB數(shù)據(jù)庫中創(chuàng)建directory:

SQL> alter session set container=orclpdb1;Session altered.SQL> create directory dp_dir as '/u01/dumpdir';Directory created.SQL> set pagesize 0 SQL> select owner, directory_name, directory_path from dba_directories; SYS DP_DIR /u01/dumpdir SYS XMLDIR /u01/oracle/product/12.2.0.1/dbhome_1/rdbms/xml SYS XSDDIR /u01/oracle/product/12.2.0.1/dbhome_1/rdbms/xml/schema SYS ORA_DBMS_FCP_LOGDIR /u01/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs SYS ORA_DBMS_FCP_ADMINDIR /u01/oracle/product/12.2.0.1/dbhome_1/rdbms/admin SYS OPATCH_INST_DIR /u01/oracle/product/12.2.0.1/dbhome_1/OPatch SYS ORACLE_OCM_CONFIG_DIR /u01/oracle/product/12.2.0.1/dbhome_1/ccr/state SYS DATA_PUMP_DIR /u01/oracle/admin/ORCLCDB/dpdump/878E05CEE9E952CAE0530100007F118F SYS ORACLE_OCM_CONFIG_DIR2 /u01/oracle/product/12.2.0.1/dbhome_1/ccr/state SYS OPATCH_SCRIPT_DIR /u01/oracle/product/12.2.0.1/dbhome_1/QOpatch SYS OPATCH_LOG_DIR /u01/oracle/product/12.2.0.1/dbhome_1/rdbms/log SYS ORACLE_BASE /u01/oracle SYS ORACLE_HOME /u01/oracle/product/12.2.0.1/dbhome_113 rows selected.

創(chuàng)建用戶dpuser,并賦予權(quán)限:

SQL> show con_name; ORCLPDB1 SQL> create user dpuser identified by "foo";User created.SQL> grant create session, create table to dpuser;Grant succeeded.SQL> grant read, write on directory dp_dir to dpuser;Grant succeeded. SQL> alter user dpuser quota 100m on users;User altered.

使用dpuser創(chuàng)建一些表:

$ sqlplus dpuser/foo@orclpdb1SQL*Plus: Release 12.2.0.1.0 Production on Sun Apr 28 16:35:32 2019Copyright (c) 1982, 2016, Oracle. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> create table foo(a int);Table created. SQL> insert into foo values(1);1 row created.

導(dǎo)出測試:

$ expdp dpuser/foo@orclpdb1 directory=dp_dir tables=foo dumpfile=exp.dmp logfile=exp.logExport: Release 12.2.0.1.0 - Production on Sun Apr 28 16:40:19 2019Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production Starting "DPUSER"."SYS_EXPORT_TABLE_01": dpuser/********@orclpdb1 directory=dp_dir tables=foo dumpfile=exp.dmp logfile=exp.log Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER Processing object type TABLE_EXPORT/TABLE/TABLE . . exported "DPUSER"."FOO" 5.062 KB 1 rows Master table "DPUSER"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded ****************************************************************************** Dump file set for DPUSER.SYS_EXPORT_TABLE_01 is:/u01/dumpdir/exp.dmp Job "DPUSER"."SYS_EXPORT_TABLE_01" successfully completed at Sun Apr 28 16:40:58 2019 elapsed 0 00:00:33

查看:

$ cd /u01/dumpdir/ $ ll total 188 -rw-r-----. 1 oracle oinstall 188416 Apr 28 16:40 exp.dmp -rw-r--r--. 1 oracle oinstall 1016 Apr 28 16:40 exp.log

導(dǎo)入測試:

先刪除表:

[oracle@oracle-12201-vagrant-dev ~]$ rlwrap sqlplus dpuser/foo@orclpdb1SQL*Plus: Release 12.2.0.1.0 Production on Sat May 4 18:23:40 2019Copyright (c) 1982, 2016, Oracle. All rights reserved.Last Successful login time: Sun Apr 28 2019 16:40:19 +08:00Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> select * from foo;A ----------1SQL> drop table foo purge;Table dropped.SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

導(dǎo)入并驗(yàn)證:

[oracle@oracle-12201-vagrant-dev ~]$ impdp dpuser/foo@orclpdb1 directory=dp_dir dumpfile=exp.dmp logfile=imp.logImport: Release 12.2.0.1.0 - Production on Sat May 4 18:26:14 2019Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production Master table "DPUSER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "DPUSER"."SYS_IMPORT_FULL_01": dpuser/********@orclpdb1 directory=dp_dir dumpfile=exp.dmp logfile=imp.log Processing object type TABLE_EXPORT/TABLE/TABLE Processing object type TABLE_EXPORT/TABLE/TABLE_DATA . . imported "DPUSER"."FOO" 5.062 KB 1 rows Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER Job "DPUSER"."SYS_IMPORT_FULL_01" successfully completed at Sat May 4 18:26:52 2019 elapsed 0 00:00:33[oracle@oracle-12201-vagrant-dev ~]$ rlwrap sqlplus dpuser/foo@orclpdb1SQL*Plus: Release 12.2.0.1.0 Production on Sat May 4 18:30:13 2019Copyright (c) 1982, 2016, Oracle. All rights reserved.Last Successful login time: Sat May 04 2019 18:26:15 +08:00Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> select * from foo;A ----------1SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

使用參數(shù)文件

注意用戶名userid的寫法:

[oracle@oracle-12201-vagrant-dev ~]$ cat exp.par userid=dpuser/foo@orclpdb1 directory=dp_dir dumpfile=exp.dmp logfile=exp.log tables=foo reuse_dumpfiles=y [oracle@oracle-12201-vagrant-dev ~]$ expdp parfile=exp.parExport: Release 12.2.0.1.0 - Production on Sat May 4 18:47:39 2019Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production Starting "DPUSER"."SYS_EXPORT_TABLE_01": dpuser/********@orclpdb1 parfile=exp.par Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER Processing object type TABLE_EXPORT/TABLE/TABLE . . exported "DPUSER"."FOO" 5.062 KB 1 rows Master table "DPUSER"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded ****************************************************************************** Dump file set for DPUSER.SYS_EXPORT_TABLE_01 is:/u01/dumpdir/exp.dmp Job "DPUSER"."SYS_EXPORT_TABLE_01" successfully completed at Sat May 4 18:48:03 2019 elapsed 0 00:00:22

更重要的一點(diǎn)是,即使執(zhí)行多次,結(jié)果都是一樣的,并非追加數(shù)據(jù)。

[oracle@oracle-12201-vagrant-dev ~]$ rlwrap sqlplus dpuser/foo@orclpdb1SQL*Plus: Release 12.2.0.1.0 Production on Sat May 4 18:49:03 2019Copyright (c) 1982, 2016, Oracle. All rights reserved.Last Successful login time: Sat May 04 2019 18:47:39 +08:00Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> select * from foo;A ----------1

使用參數(shù)文件的一個好處是轉(zhuǎn)義會簡單些,例如使用SYS用戶的命令行為:

$ impdp 'sys/Abcdef_123456 as sysdba'

而使用參數(shù)文件則寫為:

$ cat expsys.par userid="sys/Abcdef_123456 as sysdba"

整庫導(dǎo)出

參數(shù)文件為:

[oracle@oracle-12201-vagrant-dev ~]$ cat exp.par userid="sys/Abcdef_123456 as sysdba" directory=dp_dir dumpfile=exp.dmp logfile=exp.log reuse_dumpfiles=y full=y

導(dǎo)出,第一次失敗是由于沒有為SYS用戶創(chuàng)建dump目錄。

[oracle@oracle-12201-vagrant-dev ~]$ expdp parfile=exp.parExport: Release 12.2.0.1.0 - Production on Sat May 4 19:30:49 2019Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production ORA-39002: invalid operation ORA-39070: Unable to open the log file. ORA-39087: directory name DP_DIR is invalid[oracle@oracle-12201-vagrant-dev ~]$ sqlplus / as sysdbaSQL*Plus: Release 12.2.0.1.0 Production on Sat May 4 19:31:08 2019Copyright (c) 1982, 2016, Oracle. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> create directory dp_dir as '/u01/dumpdir';Directory created.SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production [oracle@oracle-12201-vagrant-dev ~]$ ls -l /u01/dumpdir/ total 192 -rw-r-----. 1 oracle oinstall 188416 May 4 18:49 exp.dmp -rw-r--r--. 1 oracle oinstall 1348 May 4 18:49 exp.log -rw-r--r--. 1 oracle oinstall 849 May 4 18:26 imp.log [oracle@oracle-12201-vagrant-dev ~]$ rm /u01/dumpdir/ rm: cannot remove ‘/u01/dumpdir/’: Is a directory [oracle@oracle-12201-vagrant-dev ~]$ rm /u01/dumpdir/* [oracle@oracle-12201-vagrant-dev ~]$ expdp parfile=exp.parExport: Release 12.2.0.1.0 - Production on Sat May 4 19:32:07 2019Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionWarning: Oracle Data Pump operations are not typically needed when connected to the root or seed of a container database.Starting "SYS"."SYS_EXPORT_FULL_01": sys/******** AS SYSDBA parfile=exp.par Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA Processing object type DATABASE_EXPORT/PRE_SYSTEM_IMPCALLOUT/MARKER Processing object type DATABASE_EXPORT/PRE_INSTANCE_IMPCALLOUT/MARKER Processing object type DATABASE_EXPORT/TABLESPACE Processing object type DATABASE_EXPORT/PROFILE Processing object type DATABASE_EXPORT/SYS_USER/USER Processing object type DATABASE_EXPORT/RADM_FPTM Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE Processing object type DATABASE_EXPORT/RESOURCE_COST Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE Processing object type DATABASE_EXPORT/EARLY_POST_INSTANCE_IMPCALLOUT/MARKER Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE Processing object type DATABASE_EXPORT/NORMAL_POST_INSTANCE_IMPCALLOUT/MARKER Processing object type DATABASE_EXPORT/FINAL_POST_INSTANCE_IMPCALLOUT/MARKER Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCACT_SCHEMA Processing object type DATABASE_EXPORT/AUDIT_UNIFIED/AUDIT_POLICY_ENABLE Processing object type DATABASE_EXPORT/POST_SYSTEM_IMPCALLOUT/MARKER . . exported "SYS"."KU$_USER_MAPPING_VIEW" 6.070 KB 36 rows . . exported "SYSTEM"."REDO_DB" 25.59 KB 1 rows . . exported "ORDDATA"."ORDDCM_DOCS" 252.9 KB 9 rows . . exported "WMSYS"."WM$WORKSPACES_TABLE$" 12.10 KB 1 rows . . exported "WMSYS"."WM$HINT_TABLE$" 9.984 KB 97 rows . . exported "LBACSYS"."OLS$INSTALLATIONS" 6.960 KB 2 rows . . exported "WMSYS"."WM$WORKSPACE_PRIV_TABLE$" 7.078 KB 11 rows . . exported "SYS"."DAM_CONFIG_PARAM$" 6.531 KB 14 rows . . exported "SYS"."TSDP_SUBPOL$" 6.328 KB 1 rows . . exported "WMSYS"."WM$NEXTVER_TABLE$" 6.375 KB 1 rows . . exported "LBACSYS"."OLS$PROPS" 6.234 KB 5 rows . . exported "WMSYS"."WM$ENV_VARS$" 6.015 KB 3 rows . . exported "SYS"."TSDP_PARAMETER$" 5.953 KB 1 rows . . exported "SYS"."TSDP_POLICY$" 5.921 KB 1 rows . . exported "WMSYS"."WM$VERSION_HIERARCHY_TABLE$" 5.984 KB 1 rows . . exported "WMSYS"."WM$EVENTS_INFO$" 5.812 KB 12 rows . . exported "LBACSYS"."OLS$AUDIT_ACTIONS" 5.757 KB 8 rows . . exported "LBACSYS"."OLS$DIP_EVENTS" 5.539 KB 2 rows . . exported "LBACSYS"."OLS$AUDIT" 0 KB 0 rows . . exported "LBACSYS"."OLS$COMPARTMENTS" 0 KB 0 rows . . exported "LBACSYS"."OLS$DIP_DEBUG" 0 KB 0 rows . . exported "LBACSYS"."OLS$GROUPS" 0 KB 0 rows . . exported "LBACSYS"."OLS$LAB" 0 KB 0 rows . . exported "LBACSYS"."OLS$LEVELS" 0 KB 0 rows . . exported "LBACSYS"."OLS$POL" 0 KB 0 rows . . exported "LBACSYS"."OLS$POLICY_ADMIN" 0 KB 0 rows . . exported "LBACSYS"."OLS$POLS" 0 KB 0 rows . . exported "LBACSYS"."OLS$POLT" 0 KB 0 rows . . exported "LBACSYS"."OLS$PROFILE" 0 KB 0 rows . . exported "LBACSYS"."OLS$PROFILES" 0 KB 0 rows . . exported "LBACSYS"."OLS$PROG" 0 KB 0 rows . . exported "LBACSYS"."OLS$SESSINFO" 0 KB 0 rows . . exported "LBACSYS"."OLS$USER" 0 KB 0 rows . . exported "LBACSYS"."OLS$USER_COMPARTMENTS" 0 KB 0 rows . . exported "LBACSYS"."OLS$USER_GROUPS" 0 KB 0 rows . . exported "LBACSYS"."OLS$USER_LEVELS" 0 KB 0 rows . . exported "SYS"."AUD$" 0 KB 0 rows . . exported "SYS"."DAM_CLEANUP_EVENTS$" 0 KB 0 rows . . exported "SYS"."DAM_CLEANUP_JOBS$" 0 KB 0 rows . . exported "SYS"."TSDP_ASSOCIATION$" 0 KB 0 rows . . exported "SYS"."TSDP_CONDITION$" 0 KB 0 rows . . exported "SYS"."TSDP_FEATURE_POLICY$" 0 KB 0 rows . . exported "SYS"."TSDP_PROTECTION$" 0 KB 0 rows . . exported "SYS"."TSDP_SENSITIVE_DATA$" 0 KB 0 rows . . exported "SYS"."TSDP_SENSITIVE_TYPE$" 0 KB 0 rows . . exported "SYS"."TSDP_SOURCE$" 0 KB 0 rows . . exported "SYSTEM"."REDO_LOG" 0 KB 0 rows . . exported "WMSYS"."WM$BATCH_COMPRESSIBLE_TABLES$" 0 KB 0 rows . . exported "WMSYS"."WM$CONSTRAINTS_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$CONS_COLUMNS$" 0 KB 0 rows . . exported "WMSYS"."WM$LOCKROWS_INFO$" 0 KB 0 rows . . exported "WMSYS"."WM$MODIFIED_TABLES$" 0 KB 0 rows . . exported "WMSYS"."WM$MP_GRAPH_WORKSPACES_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$MP_PARENT_WORKSPACES_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$NESTED_COLUMNS_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$RESOLVE_WORKSPACES_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$RIC_LOCKING_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$RIC_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$RIC_TRIGGERS_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$UDTRIG_DISPATCH_PROCS$" 0 KB 0 rows . . exported "WMSYS"."WM$UDTRIG_INFO$" 0 KB 0 rows . . exported "WMSYS"."WM$VERSION_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$VT_ERRORS_TABLE$" 0 KB 0 rows . . exported "WMSYS"."WM$WORKSPACE_SAVEPOINTS_TABLE$" 0 KB 0 rows . . exported "MDSYS"."RDF_PARAM$" 6.515 KB 3 rows . . exported "SYS"."AUDTAB$TBS$FOR_EXPORT" 5.953 KB 2 rows . . exported "SYS"."DBA_SENSITIVE_DATA" 0 KB 0 rows . . exported "SYS"."DBA_TSDP_POLICY_PROTECTION" 0 KB 0 rows . . exported "SYS"."FGA_LOG$FOR_EXPORT" 0 KB 0 rows . . exported "SYS"."NACL$_ACE_EXP" 0 KB 0 rows . . exported "SYS"."NACL$_HOST_EXP" 6.976 KB 2 rows . . exported "SYS"."NACL$_WALLET_EXP" 0 KB 0 rows . . exported "SYS"."SQL$TEXT_DATAPUMP" 0 KB 0 rows . . exported "SYS"."SQL$_DATAPUMP" 0 KB 0 rows . . exported "SYS"."SQLOBJ$AUXDATA_DATAPUMP" 0 KB 0 rows . . exported "SYS"."SQLOBJ$DATA_DATAPUMP" 0 KB 0 rows . . exported "SYS"."SQLOBJ$PLAN_DATAPUMP" 0 KB 0 rows . . exported "SYS"."SQLOBJ$_DATAPUMP" 0 KB 0 rows . . exported "SYSTEM"."SCHEDULER_JOB_ARGS" 8.671 KB 4 rows . . exported "SYSTEM"."SCHEDULER_PROGRAM_ARGS" 10.29 KB 23 rows . . exported "WMSYS"."WM$EXP_MAP" 7.718 KB 3 rows . . exported "WMSYS"."WM$METADATA_MAP" 0 KB 0 rows Master table "SYS"."SYS_EXPORT_FULL_01" successfully loaded/unloaded ****************************************************************************** Dump file set for SYS.SYS_EXPORT_FULL_01 is:/u01/dumpdir/exp.dmp Job "SYS"."SYS_EXPORT_FULL_01" successfully completed at Sat May 4 19:42:30 2019 elapsed 0 00:10:22

獲取幫助:

$ expdp help=yExport: Release 12.2.0.1.0 - Production on Sat May 4 19:14:35 2019Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.The Data Pump export utility provides a mechanism for transferring data objects between 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 followed by 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=scottor 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.ABORT_STEP Stop the job after it is initialized or at the indicated object. Valid values are -1 or N where N is zero or greater. N corresponds to the object's process order number in the master table.ACCESS_METHOD Instructs Export to use a particular method to unload data. Valid keyword values are: [AUTOMATIC], DIRECT_PATH and EXTERNAL_TABLE.ATTACH Attach to an existing job. For example, ATTACH=job_name.CLUSTER Utilize cluster resources and distribute workers across the Oracle RAC [YES].COMPRESSION Reduce the size of a dump file. Valid keyword values are: ALL, DATA_ONLY, [METADATA_ONLY] and NONE.COMPRESSION_ALGORITHM Specify the compression algorithm that should be used. Valid keyword values are: [BASIC], LOW, MEDIUM and HIGH.CONTENT Specifies data to unload. Valid keyword values are: [ALL], DATA_ONLY and METADATA_ONLY.DATA_OPTIONS Data layer option flags. Valid keyword values are: XML_CLOBS.DIRECTORY Directory object to be used for dump and log files.DUMPFILE Specify list of destination dump file names [expdat.dmp]. For example, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.ENCRYPTION Encrypt part or all of a dump file. Valid keyword values are: ALL, DATA_ONLY, ENCRYPTED_COLUMNS_ONLY, METADATA_ONLY and NONE.ENCRYPTION_ALGORITHM Specify how encryption should be done. Valid keyword values are: [AES128], AES192 and AES256.ENCRYPTION_MODE Method of generating encryption key. Valid keyword values are: DUAL, PASSWORD and [TRANSPARENT].ENCRYPTION_PASSWORD Password key for creating encrypted data within a dump file.ENCRYPTION_PWD_PROMPT Specifies whether to prompt for the encryption password [NO]. Terminal echo will be suppressed while standard input is read.ESTIMATE Calculate job estimates. Valid keyword values are: [BLOCKS] and STATISTICS.ESTIMATE_ONLY Calculate job estimates without performing the export [NO].EXCLUDE Exclude specific object types. For example, EXCLUDE=SCHEMA:"='HR'".FILESIZE Specify the size of each dump file in units of bytes.FLASHBACK_SCN SCN used to reset session snapshot.FLASHBACK_TIME Time used to find the closest corresponding SCN value.FULL Export entire database [NO].HELP Display Help messages [NO].INCLUDE Include specific object types. For example, INCLUDE=TABLE_DATA.JOB_NAME Name of export job to create.KEEP_MASTER Retain the master table after an export job that completes successfully [NO].LOGFILE Specify log file name [export.log].LOGTIME Specifies that messages displayed during export operations be timestamped. Valid keyword values are: ALL, [NONE], LOGFILE and STATUS.METRICS Report additional job information to the export log file [NO].NETWORK_LINK Name of remote database link to the source system.NOLOGFILE Do not write log file [NO].PARALLEL Change the number of active workers for current job.PARFILE Specify parameter file name.QUERY Predicate clause used to export a subset of a table. For example, QUERY=employees:"WHERE department_id > 10".REMAP_DATA Specify a data conversion function. For example, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO.REUSE_DUMPFILES Overwrite destination dump file if it exists [NO].SAMPLE Percentage of data to be exported.SCHEMAS List of schemas to export [login schema].SERVICE_NAME Name of an active Service and associated resource group to constrain Oracle RAC resources.SOURCE_EDITION Edition to be used for extracting metadata.STATUS Frequency (secs) job status is to be monitored where the default [0] will show new status when available.TABLES Identifies a list of tables to export. For example, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995.TABLESPACES Identifies a list of tablespaces to export.TRANSPORTABLE Specify whether transportable method can be used. Valid keyword values are: ALWAYS and [NEVER].TRANSPORT_FULL_CHECK Verify storage segments of all tables [NO].TRANSPORT_TABLESPACES List of tablespaces from which metadata will be unloaded.VERSION Version of objects to export. Valid keyword values are: [COMPATIBLE], LATEST or any valid database version.VIEWS_AS_TABLES Identifies one or more views to be exported as tables. For example, VIEWS_AS_TABLES=HR.EMP_DETAILS_VIEW.------------------------------------------------------------------------------The following commands are valid while in interactive mode. Note: abbreviations are allowed.ADD_FILE Add dumpfile to dumpfile set.CONTINUE_CLIENT Return to logging mode. Job will be restarted if idle.EXIT_CLIENT Quit client session and leave job running.FILESIZE Default filesize (bytes) for subsequent ADD_FILE commands.HELP Summarize interactive commands.KILL_JOB Detach and delete job.PARALLEL Change the number of active workers for current job.REUSE_DUMPFILES Overwrite destination dump file if it exists [NO].START_JOB Start or resume current job. Valid keyword values are: SKIP_CURRENT.STATUS Frequency (secs) job status is to be monitored where the default [0] will show new status when available.STOP_JOB Orderly shutdown of job execution and exits the client. Valid keyword values are: IMMEDIATE.STOP_WORKER Stops a hung or stuck worker.TRACE Set trace/debug flags for the current job.

總結(jié)

以上是生活随笔為你收集整理的Oracle Datapump实验的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。