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

歡迎訪問 生活随笔!

生活随笔

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

编程问答

Full Transportable Export/Import实验

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

環(huán)境簡述

兩個實例,源庫為non-CDB,目標(biāo)為CDB。版本均為19.3。位于同一臺主機(jī)。
實驗將non-CDB遷移到CDB中的PDB:hr_pdb中

實驗過程

確認(rèn)平臺和字節(jié)序是一樣的:

SELECT d.PLATFORM_NAME, ENDIAN_FORMAT FROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE d WHERE tp.PLATFORM_ID = d.PLATFORM_ID; PLATFORM_NAME ENDIAN_FORMAT -------------------- -------------- Linux x86 64-bit Little

確認(rèn)表空間是自包含的:

ORCLCDB2> EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('users', TRUE);PL/SQL procedure successfully completed.ORCLCDB2> SELECT * FROM TRANSPORT_SET_VIOLATIONS;no rows selected

創(chuàng)建Directory:

ORCLCDB2> CREATE DIRECTORY dp_dir AS '/u01/app/datafiles';Directory created.

將表空間置為只讀狀態(tài):

ORCLCDB2> ALTER TABLESPACE users READ ONLY;Tablespace altered.

啟動full transportable tablespace導(dǎo)出,如果源數(shù)據(jù)庫是11gR2,還需要指定 VERSION=12參數(shù):

expdp system/Welcome1 full=y transportable=always \ directory=dp_dir dumpfile=full_tts.dmp \ metrics=y exclude=statistics \ logfile=full_tts_export.logExport: Release 19.0.0.0.0 - Production on Sat Oct 26 20:39:56 2019 Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Starting "SYSTEM"."SYS_EXPORT_FULL_01": system/******** full=y transportable=always directory=dp_dir dumpfile=full_tts.dmp metrics=y exclude=statistics logfile=full_tts_export.log W-1 Startup took 1 seconds W-1 Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA W-1 Processing object type DATABASE_EXPORT/PLUGTS_FULL/FULL/PLUGTS_TABLESPACE W-1 Completed PLUGTS_TABLESPACE objects in seconds W-1 Processing object type DATABASE_EXPORT/PLUGTS_FULL/PLUGTS_BLK W-1 Completed 1 PLUGTS_BLK objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/END_PLUGTS_BLK W-1 Completed 1 PLUGTS_BLK objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/PRE_SYSTEM_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/PRE_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/TABLESPACE W-1 Completed 2 TABLESPACE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/PROFILE W-1 Completed 1 PROFILE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/USER W-1 Completed 9 USER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/RADM_FPTM W-1 Completed 1 RADM_FPTM objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT W-1 Completed 7 PROC_SYSTEM_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT W-1 Completed 77 SYSTEM_GRANT objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT W-1 Completed 19 ROLE_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE W-1 Completed 13 DEFAULT_ROLE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/ON_USER_GRANT W-1 Completed 10 ON_USER_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA W-1 Completed 8 TABLESPACE_QUOTA objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/RESOURCE_COST W-1 Completed 1 RESOURCE_COST objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK W-1 Completed 1 TRUSTED_DB_LINK objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE W-1 Completed 42 SEQUENCE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY W-1 Completed 10 DIRECTORY objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 38 OBJECT_GRANT objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM W-1 Completed 14 SYNONYM objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/INC_TYPE W-1 Completed 4 INC_TYPE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC W-1 Completed 32 TYPE objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 10 OBJECT_GRANT objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM W-1 Completed 2 PROCACT_SYSTEM objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ W-1 Completed 23 PROCOBJ objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM W-1 Completed 4 PROCACT_SYSTEM objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA W-1 Completed 15 PROCACT_SCHEMA objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE W-1 Completed 1 TABLE objects in 8 seconds W-1 Processing object type DATABASE_EXPORT/EARLY_POST_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/XMLSCHEMA/XMLSCHEMA W-1 Completed 1 XMLSCHEMA objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE W-1 Completed 63 TABLE objects in 53 seconds W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE W-1 Completed 18 TABLE objects in 29 seconds W-1 Processing object type DATABASE_EXPORT/NORMAL_POST_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE W-1 Completed 119 TABLE objects in 44 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 35 OBJECT_GRANT objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT W-1 Completed 1580 COMMENT objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION W-1 Completed 1 FUNCTION objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/PROCEDURE W-1 Completed 3 PROCEDURE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/ALTER_FUNCTION W-1 Completed 1 ALTER_FUNCTION objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/ALTER_PROCEDURE W-1 Completed 3 ALTER_PROCEDURE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/VIEW W-1 Completed 21 VIEW objects in 4 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 5 OBJECT_GRANT objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/COMMENT W-1 Completed 4 COMMENT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_BODY W-1 Completed 3 TYPE_BODY objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX W-1 Completed 64 INDEX objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/FUNCTIONAL_INDEX/INDEX W-1 Completed 1 INDEX objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT W-1 Completed 270 CONSTRAINT objects in 3 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/REF_CONSTRAINT W-1 Completed 30 REF_CONSTRAINT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/BITMAP_INDEX/INDEX W-1 Completed 15 INDEX objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/SECONDARY_TABLE/TABLE W-1 Completed 4 TABLE objects in 39 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/SECONDARY_TABLE/INDEX/INDEX W-1 Completed 1 INDEX objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/SECONDARY_TABLE/CONSTRAINT W-1 Completed 1 CONSTRAINT objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/INDEX W-1 Completed 1 INDEX objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TRIGGER W-1 Completed 3 TRIGGER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/TRIGGER W-1 Completed 2 TRIGGER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/MATERIALIZED_VIEW W-1 Completed 2 MATERIALIZED_VIEW objects in 28 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/DIMENSION W-1 Completed 5 DIMENSION objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/FINAL_POST_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCACT_INSTANCE W-1 Completed 15 PROCACT_INSTANCE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCDEPOBJ W-1 Completed 10 PROCDEPOBJ objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCOBJ W-1 Completed 6 PROCOBJ objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCACT_SCHEMA W-1 Completed 58 PROCACT_SCHEMA objects in 4 seconds W-1 Processing object type DATABASE_EXPORT/AUDIT_UNIFIED/AUDIT_POLICY W-1 Completed 1 AUDIT_POLICY objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/AUDIT_UNIFIED/AUDIT_POLICY_ENABLE W-1 Completed 4 AUDIT_POLICY_ENABLE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/POST_SYSTEM_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 . . exported "SYS"."KU$_USER_MAPPING_VIEW" 6.171 KB 45 rows in 1 seconds using external_table W-1 . . exported "AUDSYS"."AUD$UNIFIED":"SYS_P181" 41.41 MB 14411 rows in 1 seconds using direct_path W-1 . . exported "SYSTEM"."REDO_DB" 25.59 KB 1 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$WORKSPACES_TABLE$" 12.10 KB 1 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$HINT_TABLE$" 9.984 KB 97 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$INSTALLATIONS" 6.960 KB 2 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$WORKSPACE_PRIV_TABLE$" 7.078 KB 11 rows in 0 seconds using direct_path W-1 . . exported "SYS"."DAM_CONFIG_PARAM$" 6.531 KB 14 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_SUBPOL$" 6.328 KB 1 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$NEXTVER_TABLE$" 6.375 KB 1 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$PROPS" 6.234 KB 5 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$ENV_VARS$" 6.015 KB 3 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_PARAMETER$" 5.953 KB 1 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_POLICY$" 5.921 KB 1 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$VERSION_HIERARCHY_TABLE$" 5.984 KB 1 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$EVENTS_INFO$" 5.812 KB 12 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$AUDIT_ACTIONS" 5.757 KB 8 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$DIP_EVENTS" 5.539 KB 2 rows in 0 seconds using direct_path W-1 . . exported "AUDSYS"."AUD$UNIFIED":"AUD_UNIFIED_P0" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$AUDIT" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$COMPARTMENTS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$DIP_DEBUG" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$GROUPS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$LAB" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$LEVELS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$POL" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$POLICY_ADMIN" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$POLS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$POLT" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$PROFILE" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$PROFILES" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$PROG" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$SESSINFO" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$USER" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$USER_COMPARTMENTS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$USER_GROUPS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "LBACSYS"."OLS$USER_LEVELS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."AUD$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."DAM_CLEANUP_EVENTS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."DAM_CLEANUP_JOBS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_ASSOCIATION$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_CONDITION$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_FEATURE_POLICY$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_PROTECTION$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_SENSITIVE_DATA$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_SENSITIVE_TYPE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYS"."TSDP_SOURCE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "SYSTEM"."REDO_LOG" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$BATCH_COMPRESSIBLE_TABLES$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$CONSTRAINTS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$CONS_COLUMNS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$LOCKROWS_INFO$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$MODIFIED_TABLES$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$MP_GRAPH_WORKSPACES_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$MP_PARENT_WORKSPACES_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$NESTED_COLUMNS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$RESOLVE_WORKSPACES_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$RIC_LOCKING_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$RIC_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$RIC_TRIGGERS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$UDTRIG_DISPATCH_PROCS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$UDTRIG_INFO$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$VERSION_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$VT_ERRORS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "WMSYS"."WM$WORKSPACE_SAVEPOINTS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . exported "MDSYS"."RDF_PARAM$" 6.515 KB 3 rows in 0 seconds using external_table W-1 . . exported "SYS"."AUDTAB$TBS$FOR_EXPORT" 5.953 KB 2 rows in 0 seconds using external_table W-1 . . exported "SYS"."DBA_SENSITIVE_DATA" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."DBA_TSDP_POLICY_PROTECTION" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."FGA_LOG$FOR_EXPORT" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."NACL$_ACE_EXP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."NACL$_HOST_EXP" 6.976 KB 2 rows in 0 seconds using external_table W-1 . . exported "SYS"."NACL$_WALLET_EXP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."SQL$TEXT_DATAPUMP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."SQL$_DATAPUMP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."SQLOBJ$AUXDATA_DATAPUMP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."SQLOBJ$DATA_DATAPUMP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."SQLOBJ$PLAN_DATAPUMP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYS"."SQLOBJ$_DATAPUMP" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYSTEM"."SCHEDULER_JOB_ARGS" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "SYSTEM"."SCHEDULER_PROGRAM_ARGS" 0 KB 0 rows in 0 seconds using external_table W-1 . . exported "WMSYS"."WM$EXP_MAP" 7.718 KB 3 rows in 3 seconds using external_table W-1 . . exported "WMSYS"."WM$METADATA_MAP" 0 KB 0 rows in 0 seconds using external_table W-1 Completed 1 DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA objects in 1 seconds W-1 Completed 64 DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA objects in 2 seconds W-1 Completed 18 DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA objects in 9 seconds W-1 Master table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded ****************************************************************************** Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is:/u01/app/datafiles/full_tts.dmp ****************************************************************************** Datafiles required for transportable tablespace USERS:/opt/oracle/oradata/ORCLCDB2/users01.dbf Job "SYSTEM"."SYS_EXPORT_FULL_01" successfully completed at Sat Oct 26 20:46:30 2019 elapsed 0 00:06:32

所謂full transportable 模式是由參數(shù)full=y transportable=always指定的。
將dump文件和表空間對應(yīng)的數(shù)據(jù)文件拷貝到目標(biāo)端:

# 源數(shù)據(jù)庫服務(wù)器 $ ll /opt/oracle/oradata/ORCLCDB2/users01.dbf -rw-r-----. 1 oracle oinstall 372252672 Oct 26 20:34 /opt/oracle/oradata/ORCLCDB2/users01.dbf $ ll /u01/app/datafiles/full_tts.dmp -rw-r-----. 1 oracle oinstall 53841920 Oct 26 20:46 /u01/app/datafiles/full_tts.dmp # 目標(biāo)數(shù)據(jù)庫服務(wù)器 $ mkdir /opt/oracle/oradata/hr_pdb $ cd /opt/oracle/oradata/hr_pdb $ cp <network>/user01.dbf . $ cp <network>/full_tts.dbf .

在目標(biāo)端,創(chuàng)建目標(biāo)數(shù)據(jù)庫PDB - HR_PDB:

ORCLCDB> CREATE PLUGGABLE DATABASE hr_pdb ADMIN USER pdb_adm IDENTIFIED BY Welcome1 CREATE_FILE_DEST='/opt/oracle/oradata';Pluggable database created. ORCLCDB> alter pluggable database hr_pdb open;Pluggable database altered.ORCLCDB> show pdbs;CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ----------2 PDB$SEED READ ONLY NO3 ORCLPDB1 READ WRITE NO4 HR_PDB READ WRITE NO

在目標(biāo)端,創(chuàng)建Directory:

ORCLCDB> alter session set container=hr_pdb;Session altered.hr_pdb> CREATE DIRECTORY dp_dir AS '/opt/oracle/oradata/hr_pdb';Directory created.hr_pdb> GRANT read, write on directory dp_dir to system;Grant succeeded.

導(dǎo)入:

$ impdp system/Welcome1@hr_pdb directory=dp_dir \ > dumpfile=full_tts.dmp logfile=full_tts_imp.log \ > metrics=y \ > transport_datafiles='/opt/oracle/oradata/hr_pdb/users01.dbf'Import: Release 19.0.0.0.0 - Production on Sat Oct 26 21:13:59 2019 Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production W-1 Startup took 1 seconds W-1 Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/********@hr_pdb directory=dp_dir dumpfile=full_tts.dmp logfile=full_tts_imp.log metrics=y transport_datafiles=/opt/oracle/oradata/hr_pdb/users01.dbf W-1 Processing object type DATABASE_EXPORT/PRE_SYSTEM_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/PRE_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/PLUGTS_FULL/PLUGTS_BLK W-1 Completed 1 PLUGTS_BLK objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/TABLESPACE ORA-31684: Object type TABLESPACE:"UNDOTBS1" already existsORA-31684: Object type TABLESPACE:"TEMP" already existsW-1 Completed 2 TABLESPACE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/PROFILE W-1 Completed 1 PROFILE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/USER W-1 Completed 9 USER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/RADM_FPTM W-1 Completed 1 RADM_FPTM objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT W-1 Completed 7 PROC_SYSTEM_GRANT objects in 6 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT W-1 Completed 77 SYSTEM_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT ORA-39083: Object type ROLE_GRANT failed to create with error: ORA-01917: user or role 'GSMROOTUSER' does not existFailing sql is:GRANT "GSMROOTUSER_ROLE" TO "GSMROOTUSER"W-1 Completed 19 ROLE_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE ORA-39083: Object type DEFAULT_ROLE:"GSMROOTUSER" failed to create with error: ORA-01918: user 'GSMROOTUSER' does not existFailing sql is:ALTER USER "GSMROOTUSER" DEFAULT ROLE ALLW-1 Completed 13 DEFAULT_ROLE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/ON_USER_GRANT ORA-39083: Object type ON_USER_GRANT failed to create with error: ORA-31625: Schema GSMROOTUSER is needed to import this object, but is unaccessible ORA-01435: user does not existFailing sql is:GRANT INHERIT PRIVILEGES ON USER "GSMROOTUSER" TO "PUBLIC"W-1 Completed 10 ON_USER_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA W-1 Completed 8 TABLESPACE_QUOTA objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/RESOURCE_COST W-1 Completed 1 RESOURCE_COST objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK W-1 Completed 1 TRUSTED_DB_LINK objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE W-1 Completed 42 SEQUENCE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY ORA-31684: Object type DIRECTORY:"DP_DIR" already existsW-1 Completed 10 DIRECTORY objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 38 OBJECT_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM W-1 Completed 14 SYNONYM objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/INC_TYPE W-1 Completed 4 INC_TYPE objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC W-1 Completed 32 TYPE objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 10 OBJECT_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM W-1 Completed 2 PROCACT_SYSTEM objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ W-1 Completed 23 PROCOBJ objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM W-1 Completed 4 PROCACT_SYSTEM objects in 30 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA ORA-39083: Object type PROCACT_SCHEMA failed to create with error: ORA-31625: Schema GSMROOTUSER is needed to import this object, but is unaccessible ORA-01435: user does not existFailing sql is: BEGIN sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'ORCLCDB2', inst_scn=>'2278259');COMMIT; END;W-1 Completed 15 PROCACT_SCHEMA objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE W-1 Completed 1 TABLE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA W-1 . . imported "SYS"."KU$_EXPORT_USER_MAP" 6.171 KB 45 rows in 2 seconds using direct_path W-1 Processing object type DATABASE_EXPORT/EARLY_POST_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/XMLSCHEMA/XMLSCHEMA W-1 Completed 1 XMLSCHEMA objects in 3 seconds W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE W-1 Completed 52 TABLE objects in 21 seconds W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA W-1 . . imported "SYS"."DP$TSDP_SOURCE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_CONDITION$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$BATCH_COMPRESSIBLE_TABLES$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$CONSTRAINTS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$POLS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYSTEM"."REDO_DB_TMP" 25.59 KB 1 rows in 3 seconds using direct_path W-1 . . imported "WMSYS"."E$ENV_VARS$" 6.015 KB 3 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$RIC_TRIGGERS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$VT_ERRORS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$LEVELS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."AMGT$DP$DAM_CONFIG_PARAM$" 6.531 KB 14 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$UDTRIG_DISPATCH_PROCS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_FEATURE_POLICY$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$HINT_TABLE$" 9.984 KB 97 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$MP_GRAPH_WORKSPACES_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$WORKSPACE_PRIV_TABLE$" 7.078 KB 11 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$AUDIT" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$PROFILE" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$PROG" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$USER" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_SENSITIVE_DATA$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_SENSITIVE_TYPE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."AMGT$DP$DAM_CLEANUP_JOBS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$NESTED_COLUMNS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$RIC_LOCKING_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$UDTRIG_INFO$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$LAB" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$POL" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_SUBPOL$" 6.328 KB 1 rows in 0 seconds using direct_path W-1 . . imported "SYS"."AMGT$DP$AUD$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "AUDSYS"."AMGT$DP$AUD$UNIFIED":"AUD_UNIFIED_P0" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "AUDSYS"."AMGT$DP$AUD$UNIFIED":"SYS_P181" 41.41 MB 14411 rows in 3 seconds using direct_path W-1 . . imported "SYSTEM"."REDO_LOG_TMP" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$VERSION_HIERARCHY_TABLE$" 5.984 KB 1 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$WORKSPACE_SAVEPOINTS_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$COMPARTMENTS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$POLT" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_PROTECTION$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."AMGT$DP$DAM_CLEANUP_EVENTS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$CONS_COLUMNS$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$EVENTS_INFO$" 5.812 KB 12 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$LOCKROWS_INFO$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$MODIFIED_TABLES$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$MP_PARENT_WORKSPACES_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$NEXTVER_TABLE$" 6.375 KB 1 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$RIC_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$VERSION_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "LBACSYS"."OLS_DP$OLS$GROUPS" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_POLICY$" 5.921 KB 1 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_PARAMETER$" 5.953 KB 1 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$TSDP_ASSOCIATION$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$RESOLVE_WORKSPACES_TABLE$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$WORKSPACES_TABLE$" 12.10 KB 1 rows in 0 seconds using direct_path W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE W-1 Completed 18 TABLE objects in 5 seconds W-1 Processing object type DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA W-1 . . imported "SYS"."NACL$_WALLET_IMP" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "MDSYS"."RDF_PARAM$TBL" 6.515 KB 3 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DATAPUMP$SQL$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$DBA_SENSITIVE_DATA" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."AMGT$DP$FGA_LOG$FOR_EXPORT" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."NACL$_HOST_IMP" 6.976 KB 2 rows in 0 seconds using direct_path W-1 . . imported "SYS"."NACL$_ACE_IMP" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DATAPUMP$SQLOBJ$" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DATAPUMP$SQL$TEXT" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DATAPUMP$SQLOBJ$AUXDATA" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DATAPUMP$SQLOBJ$PLAN" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DP$DBA_TSDP_POLICY_PROTECTION" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYSTEM"."SCHEDULER_JOB_ARGS_TMP" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."AMGT$DP$AUDTAB$TBS$FOR_EXPORT" 5.953 KB 2 rows in 0 seconds using direct_path W-1 . . imported "SYSTEM"."SCHEDULER_PROGRAM_ARGS_TMP" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$EXP_MAP" 7.718 KB 3 rows in 0 seconds using direct_path W-1 . . imported "WMSYS"."E$METADATA_MAP" 0 KB 0 rows in 0 seconds using direct_path W-1 . . imported "SYS"."DATAPUMP$SQLOBJ$DATA" 0 KB 0 rows in 0 seconds using direct_path W-1 Processing object type DATABASE_EXPORT/NORMAL_POST_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 4 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE W-1 Completed 119 TABLE objects in 34 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 35 OBJECT_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT W-1 Completed 1580 COMMENT objects in 10 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/FUNCTION W-1 Completed 1 FUNCTION objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/PROCEDURE W-1 Completed 3 PROCEDURE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/FUNCTION/ALTER_FUNCTION W-1 Completed 1 ALTER_FUNCTION objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/PROCEDURE/ALTER_PROCEDURE W-1 Completed 3 ALTER_PROCEDURE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/VIEW W-1 Completed 21 VIEW objects in 3 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT W-1 Completed 5 OBJECT_GRANT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/COMMENT W-1 Completed 4 COMMENT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_BODY W-1 Completed 3 TYPE_BODY objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/INDEX W-1 Completed 64 INDEX objects in 4 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/FUNCTIONAL_INDEX/INDEX W-1 Completed 1 INDEX objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/CONSTRAINT W-1 Completed 270 CONSTRAINT objects in 8 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/CONSTRAINT/REF_CONSTRAINT W-1 Completed 30 REF_CONSTRAINT objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/BITMAP_INDEX/INDEX W-1 Completed 15 INDEX objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/SECONDARY_TABLE/TABLE W-1 Completed 4 TABLE objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/SECONDARY_TABLE/INDEX/INDEX W-1 Completed 1 INDEX objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/SECONDARY_TABLE/CONSTRAINT W-1 Completed 1 CONSTRAINT objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/INDEX/DOMAIN_INDEX/INDEX W-1 Completed 1 INDEX objects in 2 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TRIGGER W-1 Completed 3 TRIGGER objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/VIEW/TRIGGER W-1 Completed 2 TRIGGER objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/MATERIALIZED_VIEW W-1 Completed 2 MATERIALIZED_VIEW objects in 3 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/DIMENSION W-1 Completed 5 DIMENSION objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/END_PLUGTS_BLK W-1 Completed 1 PLUGTS_BLK objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/FINAL_POST_INSTANCE_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 22 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCACT_INSTANCE W-1 Completed 15 PROCACT_INSTANCE objects in 3 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/TABLE/POST_INSTANCE/PROCDEPOBJ W-1 Completed 10 PROCDEPOBJ objects in 1 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCOBJ W-1 Completed 6 PROCOBJ objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/SCHEMA/POST_SCHEMA/PROCACT_SCHEMA W-1 Completed 58 PROCACT_SCHEMA objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/AUDIT_UNIFIED/AUDIT_POLICY W-1 Completed 1 AUDIT_POLICY objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/AUDIT_UNIFIED/AUDIT_POLICY_ENABLE W-1 Completed 4 AUDIT_POLICY_ENABLE objects in 0 seconds W-1 Processing object type DATABASE_EXPORT/POST_SYSTEM_IMPCALLOUT/MARKER W-1 Completed 1 MARKER objects in 8 seconds W-1 Completed 1 DATABASE_EXPORT/EARLY_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA objects in 2 seconds W-1 Completed 64 DATABASE_EXPORT/NORMAL_OPTIONS/TABLE_DATA objects in 1751 seconds W-1 Completed 18 DATABASE_EXPORT/NORMAL_OPTIONS/VIEWS_AS_TABLES/TABLE_DATA objects in 0 seconds Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" completed with 7 error(s) at Sat Oct 26 21:17:45 2019 elapsed 0 00:03:44

將源數(shù)據(jù)庫表空間恢復(fù)為讀寫:

ORCLCDB2> ALTER TABLESPACE users READ WRITE;Tablespace altered.

驗證:

-- 表空間已導(dǎo)入,即最后的user01.dbf hr_pdb> select name from v$datafile;NAME ------------------------------------------------------------------------------------------------------------------------ /u01/app/oracle/oradata/ORCLCDB/95D0BBBB049C5788E0530100007F48C9/datafile/o1_mf_system_gv8jcnj7_.dbf /u01/app/oracle/oradata/ORCLCDB/95D0BBBB049C5788E0530100007F48C9/datafile/o1_mf_sysaux_gv8jcnjj_.dbf /u01/app/oracle/oradata/ORCLCDB/95D0BBBB049C5788E0530100007F48C9/datafile/o1_mf_undotbs1_gv8jcnjl_.dbf /opt/oracle/oradata/hr_pdb/users01.dbf -- 數(shù)據(jù)已導(dǎo)入 hr_pdb> select count(*) from hr.employees;COUNT(*) ----------107

結(jié)論

Full transportable export/import is a new feature in Oracle Database 12c that greatly simplifies the
process of database migration. Combining the ease of use of Oracle Data Pump with the performance of transportable tablespaces, full transportable export/import gives you the ability to upgrade or migrate to Oracle Database 12c in a single operation if your source database is at least Oracle Database 11g Release 2 (11.2.0.3). Full transportable export/import is a valuable tool for migrating to pluggable databases, allowing you to take advantage of the cost savings and economies of scale inherent in moving to a multitenant architecture.

參考

  • Multitenant : Create and Configure a Pluggable Database (PDB) in Oracle Database 12c Release 1 (12.1)
  • An Oracle White Paper: January 2014: Oracle Database 12c: Full Transportable Export/Import
  • 總結(jié)

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

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