Oracle Data Pump Schema 方式导入导出

Posted dingdingfish

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle Data Pump Schema 方式导入导出相关的知识,希望对你有一定的参考价值。

实验环境准备

利用OCI上的Oracle数据库image建立3套单实例数据库环境,SYS口令为Ora_DB4U,普通用户口令为Welcome1

数据库环境/主机名版本公网IP私网IPDB_NAMECDBPDB
源数据库1/db122-noncdb12.2138.3.221.18810.0.0.15NONCDB12NN/A
源数据库2/db122-cdb12.2158.101.152.6010.0.0.107CDB12YORCLPDB1
目标数据库/db19-cdb19c158.101.67.21210.0.0.203DB19YORCLPDB1

源数据库是指需要迁移的数据库,目标数据库指需要迁往的数据库。

源数据库上均安装了Oracle示例Schema。安装方法请参见如何使用github安装Oracle 数据库12c Sample Schema (示例Schema)

源数据库中对象的情况如下:

system@ORCLPDB1> select owner, count(*) from dba_objects where owner in 
(select username from all_users where ORACLE_MAINTAINED = 'N') group by owner order by owner;
OWNER                  COUNT(*)
-------------------- ----------
BI                            8
HR                           34
IX                           58
OE                          142
PM                           22
SH                          310

6 rows selected.

3个数据库服务器均开放1521端口:

firewall-cmd --add-port=1521/tcp  --permanent
firewall-cmd --reload
# firewall-cmd --list-all
public
  target: default
  icmp-block-inversion: no
  interfaces:
  sources:
  services: dhcpv6-client ssh
  ports: 1521/tcp
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

3个数据库服务器均通过/etc/hosts设置了主机名解析:

10.0.0.15       db122-noncdb
10.0.0.107      db122-cdb
10.0.0.203      db19-cdb

3个数据库服务器均在oracle用户根目录下建立了dumpdir目录:

$ id -un
oracle
$ cd ~
$ mkdir dumpdir

实验1:Data Pump实现Schema迁移

源数据库:db122-cdb上的orclpdb1中的所有用户Schema
目标数据库:db19-cdb上的orclpdb2

源数据库服务器上的操作

准备data pump参数文件export.par:

[oracle@db122-cdb dumpdir]$ cat export.par
DIRECTORY=my_data_pump_dir
DUMPFILE=dumpfile%U.dmp
LOGFILE=logfile.log
SCHEMAS=HR,OE,PM,IX,SH,BI
EXCLUDE=STATISTICS
LOGTIME=ALL
METRICS=YES
FLASHBACK_TIME=SYSTIMESTAMP
PARALLEL=4
FILESIZE=5G

定义目录:

sys@CDB12> alter session set container=orclpdb1;
sys@CDB12> create directory my_data_pump_dir as '/home/oracle/dumpdir';

执行导出:

[oracle@db122-cdb dumpdir]$ expdp \\"sys/Ora_DB4U@orclpdb1 as sysdba\\" parfile=export.par

Export: Release 12.2.0.1.0 - Production on Thu Nov 25 00:38:37 2021

Copyright (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
25-NOV-21 00:38:40.791: Starting "SYS"."SYS_EXPORT_SCHEMA_01":  "sys/********@orclpdb1 AS SYSDBA" parfile=export.par
25-NOV-21 00:38:40.971: W-1 Startup took 2 seconds
25-NOV-21 00:38:42.295: W-4 Startup took 3 seconds
25-NOV-21 00:38:42.454: W-3 Startup took 3 seconds
25-NOV-21 00:38:42.577: W-2 Startup took 3 seconds
25-NOV-21 00:38:47.049: W-3 Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
25-NOV-21 00:38:47.138: W-4 Processing object type SCHEMA_EXPORT/USER
25-NOV-21 00:38:47.241: W-2 Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
25-NOV-21 00:38:47.270: W-3 Processing object type SCHEMA_EXPORT/ROLE_GRANT
25-NOV-21 00:38:47.288: W-4      Completed 6 USER objects in 1 seconds
25-NOV-21 00:38:47.296: W-2      Completed 51 SYSTEM_GRANT objects in 0 seconds
25-NOV-21 00:38:47.359: W-3      Completed 13 ROLE_GRANT objects in 0 seconds
25-NOV-21 00:38:47.423: W-4 Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
25-NOV-21 00:38:47.430: W-4      Completed 6 DEFAULT_ROLE objects in 0 seconds
25-NOV-21 00:38:47.582: W-3 Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
25-NOV-21 00:38:47.589: W-3      Completed 6 TABLESPACE_QUOTA objects in 0 seconds
25-NOV-21 00:38:48.001: W-2 Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
25-NOV-21 00:38:48.002: W-2      Completed 7 PROCACT_SCHEMA objects in 0 seconds
25-NOV-21 00:38:48.484: W-2 Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM
25-NOV-21 00:38:48.504: W-2      Completed 14 SYNONYM objects in 0 seconds
25-NOV-21 00:38:48.935: W-3 Processing object type SCHEMA_EXPORT/TYPE/INC_TYPE
25-NOV-21 00:38:48.954: W-3      Completed 4 INC_TYPE objects in 0 seconds
25-NOV-21 00:38:49.347: W-2 Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
25-NOV-21 00:38:49.419: W-2      Completed 32 TYPE objects in 1 seconds
25-NOV-21 00:38:49.574: W-3 Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
25-NOV-21 00:38:49.593: W-3      Completed 6 SEQUENCE objects in 0 seconds
25-NOV-21 00:38:51.023: W-1 Processing object type SCHEMA_EXPORT/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT
25-NOV-21 00:38:51.053: W-1      Completed 10 OBJECT_GRANT objects in 3 seconds
25-NOV-21 00:38:53.734: W-2 Processing object type SCHEMA_EXPORT/TABLE/COMMENT
25-NOV-21 00:38:53.939: W-2      Completed 166 COMMENT objects in 0 seconds
25-NOV-21 00:38:54.567: W-1 Processing object type SCHEMA_EXPORT/XMLSCHEMA/XMLSCHEMA
25-NOV-21 00:38:54.583: W-1      Completed 1 XMLSCHEMA objects in 3 seconds
25-NOV-21 00:38:55.182: W-3 Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
25-NOV-21 00:38:55.273: W-3      Completed 35 OBJECT_GRANT objects in 2 seconds
25-NOV-21 00:38:55.798: W-3 Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
25-NOV-21 00:38:55.804: W-3      Completed 1 FUNCTION objects in 0 seconds
25-NOV-21 00:38:56.421: W-1 Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
25-NOV-21 00:38:56.432: W-1      Completed 2 PROCEDURE objects in 0 seconds
25-NOV-21 00:38:57.129: W-4 Processing object type SCHEMA_EXPORT/TABLE/TABLE
25-NOV-21 00:38:57.491: W-1 Processing object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION
25-NOV-21 00:38:57.504: W-1      Completed 1 ALTER_FUNCTION objects in 0 seconds
25-NOV-21 00:38:57.831: W-1 Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
25-NOV-21 00:38:57.849: W-1      Completed 2 ALTER_PROCEDURE objects in 0 seconds
25-NOV-21 00:39:00.069: W-3 Processing object type SCHEMA_EXPORT/VIEW/COMMENT
25-NOV-21 00:39:00.088: W-3      Completed 4 COMMENT objects in 1 seconds
25-NOV-21 00:39:01.543: W-1 Processing object type SCHEMA_EXPORT/VIEW/VIEW
25-NOV-21 00:39:01.566: W-1      Completed 21 VIEW objects in 3 seconds
25-NOV-21 00:39:01.831: W-2 Processing object type SCHEMA_EXPORT/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT
25-NOV-21 00:39:01.848: W-2      Completed 5 OBJECT_GRANT objects in 2 seconds
25-NOV-21 00:39:01.855: W-3 Processing object type SCHEMA_EXPORT/TYPE/TYPE_BODY
25-NOV-21 00:39:01.865: W-3      Completed 3 TYPE_BODY objects in 0 seconds
25-NOV-21 00:39:02.114: W-2 Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_INDEX/INDEX
25-NOV-21 00:39:02.133: W-2      Completed 1 INDEX objects in 0 seconds
25-NOV-21 00:39:03.963: W-1 Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
25-NOV-21 00:39:04.334: W-1      Completed 43 INDEX objects in 3 seconds
25-NOV-21 00:39:04.924: W-3 Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
25-NOV-21 00:39:04.925: W-3      Completed 37 CONSTRAINT objects in 2 seconds
25-NOV-21 00:39:06.212: W-3 Processing object type SCHEMA_EXPORT/TABLE/INDEX/BITMAP_INDEX/INDEX
25-NOV-21 00:39:06.535: W-2 Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
25-NOV-21 00:39:06.578: W-2      Completed 30 REF_CONSTRAINT objects in 1 seconds
25-NOV-21 00:39:06.588: W-3      Completed 15 INDEX objects in 0 seconds
25-NOV-21 00:39:06.866: W-2 Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
25-NOV-21 00:39:06.888: W-2      Completed 3 TRIGGER objects in 0 seconds
25-NOV-21 00:39:07.131: W-3 Processing object type SCHEMA_EXPORT/VIEW/TRIGGER
25-NOV-21 00:39:07.160: W-3      Completed 2 TRIGGER objects in 1 seconds
25-NOV-21 00:39:08.333: W-1 Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
25-NOV-21 00:39:08.347: W-1      Completed 1 INDEX objects in 0 seconds
25-NOV-21 00:39:08.587: W-3 Processing object type SCHEMA_EXPORT/MATERIALIZED_VIEW
25-NOV-21 00:39:08.602: W-3      Completed 2 MATERIALIZED_VIEW objects in 0 seconds
25-NOV-21 00:39:09.147: W-3 Processing object type SCHEMA_EXPORT/DIMENSION
25-NOV-21 00:39:09.155: W-3      Completed 5 DIMENSION objects in 0 seconds
25-NOV-21 00:39:11.208: W-2 Processing object type SCHEMA_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
25-NOV-21 00:39:11.222: W-2      Completed 10 PROCDEPOBJ objects in 1 seconds
25-NOV-21 00:39:11.586: W-3 Processing object type SCHEMA_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
25-NOV-21 00:39:11.607: W-3      Completed 15 PROCACT_INSTANCE objects in 1 seconds
25-NOV-21 00:39:11.937: W-2 Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
25-NOV-21 00:39:11.955: W-2      Completed 6 PROCOBJ objects in 0 seconds
25-NOV-21 00:39:12.548: W-3 Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
25-NOV-21 00:39:12.816: W-2 . . exported "SH"."CUSTOMERS"                            10.27 MB   55500 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.024: W-2 . . exported "OE"."PRODUCT_DESCRIPTIONS"                 2.379 MB    8640 rows in 1 seconds using direct_path
25-NOV-21 00:39:13.036: W-3      Completed 1 PROCACT_SCHEMA objects in 1 seconds
25-NOV-21 00:39:13.189: W-2 . . exported "SH"."SALES":"SALES_Q4_2001"                2.257 MB   69749 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.309: W-2 . . exported "SH"."SALES":"SALES_Q3_1999"                2.166 MB   67138 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.369: W-3 . . exported "SH"."SALES":"SALES_Q1_1999"                2.071 MB   64186 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.452: W-2 . . exported "SH"."SALES":"SALES_Q3_2001"                2.130 MB   65769 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.504: W-3 . . exported "SH"."SALES":"SALES_Q1_2001"                1.965 MB   60608 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.594: W-2 . . exported "SH"."SALES":"SALES_Q2_2001"                2.051 MB   63292 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.618: W-3 . . exported "SH"."SALES":"SALES_Q4_1999"                2.014 MB   62388 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.778: W-3 . . exported "SH"."SALES":"SALES_Q1_2000"                2.012 MB   62197 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.816: W-2 . . exported "SH"."SALES":"SALES_Q4_2000"                1.814 MB   55984 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.922: W-3 . . exported "SH"."SALES":"SALES_Q3_2000"                1.910 MB   58950 rows in 0 seconds using direct_path
25-NOV-21 00:39:13.964: W-2 . . exported "SH"."SALES":"SALES_Q2_2000"                1.802 MB   55515 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.114: W-2 . . exported "SH"."SALES":"SALES_Q2_1999"                1.754 MB   54233 rows in 1 seconds using direct_path
25-NOV-21 00:39:14.127: W-3 . . exported "SH"."SUPPLEMENTARY_DEMOGRAPHICS"           697.6 KB    4500 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.184: W-3 . . exported "SH"."TIMES"                                381.7 KB    1826 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.229: W-3 . . exported "SH"."FWEEK_PSCAT_SALES_MV"                 419.9 KB   11266 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.240: W-2 . . exported "SH"."SALES":"SALES_Q3_1998"                1.634 MB   50515 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.279: W-3 . . exported "SH"."COSTS":"COSTS_Q4_2001"                278.5 KB    9011 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.321: W-3 . . exported "SH"."COSTS":"COSTS_Q3_2001"                234.6 KB    7545 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.348: W-2 . . exported "SH"."SALES":"SALES_Q4_1998"                1.581 MB   48874 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.369: W-3 . . exported "SH"."COSTS":"COSTS_Q1_2001"                228.0 KB    7328 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.418: W-3 . . exported "SH"."COSTS":"COSTS_Q2_2001"                184.7 KB    5882 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.456: W-2 . . exported "SH"."SALES":"SALES_Q1_1998"                1.413 MB   43687 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.477: W-3 . . exported "SH"."COSTS":"COSTS_Q1_1999"                183.7 KB    5884 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.525: W-3 . . exported "SH"."COSTS":"COSTS_Q4_2000"                160.4 KB    5088 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.568: W-2 . . exported "SH"."SALES":"SALES_Q2_1998"                1.160 MB   35758 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.595: W-3 . . exported "SH"."COSTS":"COSTS_Q4_1999"                159.2 KB    5060 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.689: W-3 . . exported "SH"."COSTS":"COSTS_Q3_2000"                151.6 KB    4798 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.708: W-3 . . exported "SH"."COSTS":"COSTS_Q4_1998"                144.8 KB    4577 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.759: W-3 . . exported "SH"."COSTS":"COSTS_Q1_1998"                139.6 KB    4411 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.848: W-3 . . exported "SH"."COSTS":"COSTS_Q3_1999"                137.5 KB    4336 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.891: W-3 . . exported "SH"."COSTS":"COSTS_Q2_1999"                132.7 KB    4179 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.943: W-3 . . exported "SH"."COSTS":"COSTS_Q3_1998"                131.3 KB    4129 rows in 0 seconds using direct_path
25-NOV-21 00:39:14.990: W-3 . . exported "SH"."COSTS":"COSTS_Q2_2000"                119.1 KB    3715 rows in 0 seconds using direct_path
25-NOV-21 00:39:15.036: W-3 . . exported "SH"."COSTS":"COSTS_Q1_2000"                120.7 KB    3772 rows in 1 seconds using direct_path
25-NOV-21 00:39:15.265: W-3 . . exported "OE"."PRODUCT_INFORMATION"                  73.05 KB     288 rows in 0 seconds using direct_path
25-NOV-21 00:39:15.424: W-3 . . exported "SH"."COSTS":"COSTS_Q2_1998"                79.68 KB    2397 rows in 0 seconds using direct_path
25-NOV-21 00:39:15.557: W-3 . . exported "OE"."CUSTOMERS"                            81.17 KB     319 rows in 0 seconds using direct_path
25-NOV-21 00:39:15.730: W-3 . . exported "SH"."PROMOTIONS"                           59.17 KB     503 rows in 0 seconds using direct_path
25-NOV-21 00:39:15.789: W-3 . . exported "SH"."PRODUCTS"                             26.71 KB      72 rows in 0 seconds using direct_path
25-NOV-21 00:39:25.746: W-1 . . exported "OE"."ORDER_ITEMS"                          21.01 KB     665 rows in 0 seconds using direct_path
25-NOV-21 00:39:25.781: W-1 . . exported "OE"."INVENTORIES"                          21.76 KB    1112 rows in 0 seconds using direct_path
25-NOV-21 00:39:25.834: W-1 . . exported "HR"."EMPLOYEES"                            17.08 KB     107 rows in 0 seconds using direct_path
25-NOV-21 00:39:25.886: W-1 . . exported "PM"."TEXTDOCS_NESTEDTAB"                   87.85 KB      12 rows in 0 seconds using direct_path
25-NOV-21 00:39:25.928: W-1 . . exported "OE"."PRODUCT_REF_LIST_NESTEDTAB"           12.57 KB     288 rows in 0 seconds using direct_path
25-NOV-21 00:39:25.980: W-1 . . exported "OE"."ORDERS"                               12.59 KB     105 rows in 0 seconds using direct_path
25-NOV-21 00:39:26.024: W-1 . . exported "IX"."AQ$_STREAMS_QUEUE_TABLE_S"            11.57 KB       1 rows in 1 seconds using direct_path
25-NOV-21 00:39:26.074: W-1 . . exported "IX"."AQ$_ORDERS_QUEUETABLE_S"              11.30 KB       4 rows in 0 seconds using direct_path
25-NOV-21 00:39:26.121: W-1 . . exported "SH"."COUNTRIES"                            10.46 KB      23 rows in 0 seconds using direct_path
25-NOV-21 00:39:26.980: W-1 . . exported "IX"."AQ$_ORDERS_QUEUETABLE_H"              9.328 KB       0 rows in 0 seconds using external_table
25-NOV-21 00:39:27.118: W-4      Completed 45 TABLE objects in 36 seconds
25-NOV-21 00:39:27.247: W-4 . . exported "OE"."CATEGORIES_TAB"                       14.43 KB      22 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.322: W-4 . . exported "HR"."LOCATIONS"                            8.437 KB      23 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.372: W-3 . . exported "PM"."PRINT_MEDIA"                          190.6 KB       4 rows in 12 seconds using external_table
25-NOV-21 00:39:27.376: W-4 . . exported "IX"."AQ$_ORDERS_QUEUETABLE_L"              8.039 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.519: W-3 . . exported "SH"."CHANNELS"                             7.414 KB       5 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.571: W-3 . . exported "HR"."JOB_HISTORY"                          7.195 KB      10 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.617: W-3 . . exported "HR"."JOBS"                                 7.109 KB      19 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.670: W-3 . . exported "HR"."DEPARTMENTS"                          7.125 KB      27 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.711: W-1 . . exported "IX"."AQ$_ORDERS_QUEUETABLE_I"              8.890 KB       0 rows in 1 seconds using external_table
25-NOV-21 00:39:27.726: W-3 . . exported "OE"."SUBCATEGORY_REF_LIST_NESTEDTAB"       6.656 KB      21 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.930: W-1 . . exported "SH"."CAL_MONTH_SALES_MV"                   6.382 KB      48 rows in 0 seconds using direct_path
25-NOV-21 00:39:27.943: W-2 . . exported "OE"."PURCHASEORDER"                        247.7 KB     132 rows in 13 seconds using external_table
25-NOV-21 00:39:28.001: W-1 . . exported "HR"."REGIONS"                              5.546 KB       4 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.048: W-1 . . exported "OE"."PROMOTIONS"                           5.570 KB       2 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.164: W-1 . . exported "IX"."AQ$_STREAMS_QUEUE_TABLE_L"            8.039 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.169: W-4 . . exported "OE"."WAREHOUSES"                           12.76 KB       9 rows in 1 seconds using external_table
25-NOV-21 00:39:28.310: W-4 . . exported "SH"."COSTS":"COSTS_1995"                   7.242 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.339: W-4 . . exported "SH"."COSTS":"COSTS_1996"                   7.242 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.387: W-4 . . exported "SH"."COSTS":"COSTS_H1_1997"                7.242 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.433: W-4 . . exported "SH"."COSTS":"COSTS_H2_1997"                7.242 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.476: W-3 . . exported "HR"."COUNTRIES"                            6.367 KB      25 rows in 1 seconds using external_table
25-NOV-21 00:39:28.491: W-4 . . exported "SH"."COSTS":"COSTS_Q1_2002"                7.242 KB       0 rows in 0 seconds using direct_path
25-NOV-21 00:39:28.550: W-4 . . exported "SH".

以上是关于Oracle Data Pump Schema 方式导入导出的主要内容,如果未能解决你的问题,请参考以下文章

Oracle Schema导入导出

『ORACLE』 数据泵Data Pump中expdp导出(11g)

Oracle Database Data Pump(expdp/impdp)

如何将常规文件(例如 cwallet.sso )上传到 oracle db 中的 data_pump_dir?

Oracle Data Pump Full Transportable方式导入导出

Oracle Data Pump Full Transportable方式导入导出