|
上完1Z0-053第19章
传送表空间三个实验(1. win32 AL32UTF8不能自包含出错;2. win32 AL32UTF8自包含;3. win32 ZHS16GBK只能导出表空间,不能传送表空间)
1Z0-052共19章(上完12章),1Z0-053共21章(上完13章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的25章
源头win32:
PL/SQL Developper连接utforcl库:
- select * from dba_data_files;
- create tablespace tbsutforcl1 datafile 'C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\tbsutforcl1.dbf' size 10M ;
- create table hr.tutforcl1( a number ) tablespace tbsutforcl1 ;
- insert into hr.tutforcl1 values ( 12345678) ;
- create table sys.tutforcl3( a number ) tablespace tbsutforcl1 ;
- insert into sys.tutforcl3 values ( 12345678) ;
- select * from dba_segments s where s.tablespace_name='TBSUTFORCL1';
- ----
- begin
- dbms_tts.transport_set_check('TBSUTFORCL1');
- end;
- select * from transport_set_violations;
- alter table tutforcl3 move tablespace system;
- alter tablespace tbsutforcl1 read only;
- select * from v$transportable_platform;
- select * from dba_directories;
- select * from dba_tablespaces;
- alter tablespace tbsutforcl1 read write ;
- ----
- create tablespace tbsutforcl2 datafile 'C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\tbsutforcl2.dbf' size 10M ;
- create table hr.tutforcl2( a number ) tablespace tbsutforcl2 ;
- insert into hr.tutforcl2 values ( 12345678) ;
- select * from dba_segments s where s.tablespace_name='TBSUTFORCL2';
- alter tablespace tbsutforcl2 read only;
- alter tablespace tbsutforcl2 read write ;
复制代码 PL/SQL Developper连接orcl库:
- select * from dba_data_files;
- create tablespace tbsorcl datafile 'C:\APP\ADMINISTRATOR\ORADATA\ORCL\tbsorcl.dbf' size 10M ;
- create table hr.torcl( a number ) tablespace tbsorcl ;
- insert into hr.torcl values ( 12345678) ;
- select * from dba_segments s where s.tablespace_name='TBSORCL';
- alter tablespace tbsorcl read only ;
- select * from dba_directories;
- create directory dir1 as 'c:\data';
复制代码 SQL*Plus:
- ATA_OPTIONS
- 数据层选项标记。
- 有效的关键字值为: XML_CLOBS。
- IRECTORY
- 用于转储文件和日志文件的目录对象。
- UMPFILE
- 指定目标转储文件名的列表 [expdat.dmp]。
- 例如, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp。
- NCRYPTION
- 加密某个转储文件的一部分或全部。
- 有效的关键字值为: ALL, DATA_ONLY, ENCRYPTED_COLUMNS_ONLY, METADATA_ONLY 和 NONE
- 。
- NCRYPTION_ALGORITHM
- 指定加密的方式。
- 有效的关键字值为: [AES128], AES192 和 AES256。
- NCRYPTION_MODE
- 生成加密密钥的方法。
- 有效的关键字值为: DUAL, PASSWORD 和 [TRANSPARENT]。
- NCRYPTION_PASSWORD
- 用于在转储文件中创建加密数据的口令密钥。
- STIMATE
- 计算作业估计值。
- 有效的关键字值为: [BLOCKS] 和 STATISTICS。
- STIMATE_ONLY
- 计算作业估计值而不执行导出。
- XCLUDE
- 排除特定对象类型。
- 例如, EXCLUDE=SCHEMA:"='HR'"。
- ILESIZE
- 以字节为单位指定每个转储文件的大小。
- LASHBACK_SCN
- 用于重置会话快照的 SCN。
- LASHBACK_TIME
- 用于查找最接近的相应 SCN 值的时间。
- ULL
- 导出整个数据库 [N]。
- ELP
- 显示帮助消息 [N]。
- NCLUDE
- 包括特定对象类型。
- 例如, INCLUDE=TABLE_DATA。
- OB_NAME
- 要创建的导出作业的名称。
- OGFILE
- 指定日志文件名 [export.log]。
- ETWORK_LINK
- 源系统的远程数据库链接的名称。
- OLOGFILE
- 不写入日志文件 [N]。
- ARALLEL
- 更改当前作业的活动 worker 的数量。
- ARFILE
- 指定参数文件名。
- UERY
- 用于导出表的子集的谓词子句。
- 例如, QUERY=employees:"WHERE department_id > 10"。
- EMAP_DATA
- 指定数据转换函数。
- 例如, REMAP_DATA=EMP.EMPNO:REMAPPKG.EMPNO。
- EUSE_DUMPFILES
- 覆盖目标转储文件 (如果文件存在) [N]。
- AMPLE
- 要导出的数据的百分比。
- CHEMAS
- 要导出的方案的列表 [登录方案]。
- OURCE_EDITION
- 用于提取元数据的版本。
- TATUS
- 监视作业状态的频率, 其中
- 默认值 [0] 表示只要有新状态可用, 就立即显示新状态。
- ABLES
- 标识要导出的表的列表。
- 例如, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995。
- ABLESPACES
- 标识要导出的表空间的列表。
- RANSPORTABLE
- 指定是否可以使用可传输方法。
- 有效的关键字值为: ALWAYS 和 [NEVER]。
- RANSPORT_FULL_CHECK
- 验证所有表的存储段 [N]。
- RANSPORT_TABLESPACES
- 要从中卸载元数据的表空间的列表。
- ERSION
- 要导出的对象版本。
- 有效的关键字值为: [COMPATIBLE], LATEST 或任何有效的数据库版本。
- -----------------------------------------------------------------------------
- 下列命令在交互模式下有效。
- 注: 允许使用缩写。
- DD_FILE
- 将转储文件添加到转储文件集。
- ONTINUE_CLIENT
- 返回到事件记录模式。如果处于空闲状态, 将重新启动作业。
- XIT_CLIENT
- 退出客户机会话并使作业保持运行状态。
- ILESIZE
- 用于后续 ADD_FILE 命令的默认文件大小 (字节)。
- ELP
- 汇总交互命令。
- ILL_JOB
- 分离并删除作业。
- ARALLEL
- 更改当前作业的活动 worker 的数量。
- EUSE_DUMPFILES
- 覆盖目标转储文件 (如果文件存在) [N]。
- TART_JOB
- 启动或恢复当前作业。
- 有效的关键字值为: SKIP_CURRENT。
- TATUS
- 监视作业状态的频率, 其中
- 默认值 [0] 表示只要有新状态可用, 就立即显示新状态。
- TOP_JOB
- 按顺序关闭作业执行并退出客户机。
- 有效的关键字值为: IMMEDIATE。
- :\Users\Administrator>expdp system/oracle_4U directory=dir1 dumpfile=tbsutfor
- l1.dmp TRANSPORT_TABLESPACES=tbsutforcl1
- xport: Release 11.2.0.1.0 - Production on 星期二 6月 6 21:03:13 2017
- opyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- DE-28002: 操作产生了 ORACLE 错误 28002
- RA-28002: 7 天之后口令将过期
- 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- ith the Partitioning, OLAP, Data Mining and Real Application Testing options
- 启动 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01": system/******** directory=dir1 dum
- file=tbsutforcl1.dmp TRANSPORT_TABLESPACES=tbsutforcl1
- 处理对象类型 TRANSPORTABLE_EXPORT/PLUGTS_BLK
- 处理对象类型 TRANSPORTABLE_EXPORT/TABLE
- 处理对象类型 TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
- 已成功加载/卸载了主表 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01"
- *****************************************************************************
- YSTEM.SYS_EXPORT_TRANSPORTABLE_01 的转储文件集为:
- C:\DATA\TBSUTFORCL1.DMP
- *****************************************************************************
- 可传输表空间 TBSUTFORCL1 所需的数据文件:
- C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\TBSUTFORCL1.DBF
- 作业 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01" 已于 21:03:49 成功完成
- :\Users\Administrator>expdp system/oracle_4U directory=dir1 dumpfile=tbsutfor
- l2.dmp TRANSPORT_TABLESPACES=tbsutforcl2
- xport: Release 11.2.0.1.0 - Production on 星期二 6月 6 21:21:50 2017
- opyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- DE-28002: 操作产生了 ORACLE 错误 28002
- RA-28002: 7 天之后口令将过期
- 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- ith the Partitioning, OLAP, Data Mining and Real Application Testing options
- 启动 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01": system/******** directory=dir1 dum
- file=tbsutforcl2.dmp TRANSPORT_TABLESPACES=tbsutforcl2
- 处理对象类型 TRANSPORTABLE_EXPORT/PLUGTS_BLK
- 处理对象类型 TRANSPORTABLE_EXPORT/TABLE
- 处理对象类型 TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
- 已成功加载/卸载了主表 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01"
- *****************************************************************************
- YSTEM.SYS_EXPORT_TRANSPORTABLE_01 的转储文件集为:
- C:\DATA\TBSUTFORCL2.DMP
- *****************************************************************************
- 可传输表空间 TBSUTFORCL2 所需的数据文件:
- C:\APP\ADMINISTRATOR\ORADATA\UTFORCL\TBSUTFORCL2.DBF
- 作业 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01" 已于 21:22:23 成功完成
- :\Users\Administrator>set ORACLE_SID=orcl
- :\Users\Administrator>rman target /
- 恢复管理器: Release 11.2.0.1.0 - Production on 星期二 6月 6 21:28:23 2017
- opyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- 连接到目标数据库: ORCL (DBID=1347195613)
- MAN> convert tablespace tbsorcl to platform 'Linux IA (64-bit)' format 'c:\data
- %U';
- 启动 conversion at source 于 06-6月 -17
- 使用目标数据库控制文件替代恢复目录
- 分配的通道: ORA_DISK_1
- 通道 ORA_DISK_1: SID=17 设备类型=DISK
- 通道 ORA_DISK_1: 启动数据文件转换
- 输入数据文件: 文件号=00006 名称=C:\APP\ADMINISTRATOR\ORADATA\ORCL\TBSORCL.DBF
- 已转换的数据文件 = C:\DATA\DATA_D-ORCL_I-1347195613_TS-TBSORCL_FNO-6_06S65516
- 通道 ORA_DISK_1: 数据文件转换完毕, 经过时间: 00:00:01
- 完成 conversion at source 于 06-6月 -17
- MAN> exit
- 恢复管理器完成。
- :\Users\Administrator>expdp system/oracle_4U directory=dir1 dumpfile=tbsorcl.
- mp TRANSPORT_TABLESPACES=tbsorcl
- xport: Release 11.2.0.1.0 - Production on 星期二 6月 6 21:30:16 2017
- opyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- DE-28002: 操作产生了 ORACLE 错误 28002
- RA-28002: 7 天之后口令将过期
- 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- ith the Partitioning, OLAP, Data Mining and Real Application Testing options
- 启动 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01": system/******** directory=dir1 dum
- file=tbsorcl.dmp TRANSPORT_TABLESPACES=tbsorcl
- 处理对象类型 TRANSPORTABLE_EXPORT/PLUGTS_BLK
- 处理对象类型 TRANSPORTABLE_EXPORT/TABLE
- 处理对象类型 TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
- 已成功加载/卸载了主表 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01"
- *****************************************************************************
- YSTEM.SYS_EXPORT_TRANSPORTABLE_01 的转储文件集为:
- C:\DATA\TBSORCL.DMP
- *****************************************************************************
- 可传输表空间 TBSORCL 所需的数据文件:
- C:\APP\ADMINISTRATOR\ORADATA\ORCL\TBSORCL.DBF
- 作业 "SYSTEM"."SYS_EXPORT_TRANSPORTABLE_01" 已于 21:30:54 成功完成
- :\Users\Administrator>expdp system/oracle_4U directory=dir1 dumpfile=tbsorcl.
- mp TABLESPACES=tbsorcl
- xport: Release 11.2.0.1.0 - Production on 星期二 6月 6 21:34:11 2017
- opyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- DE-28002: 操作产生了 ORACLE 错误 28002
- RA-28002: 7 天之后口令将过期
- 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- ith the Partitioning, OLAP, Data Mining and Real Application Testing options
- 启动 "SYSTEM"."SYS_EXPORT_TABLESPACE_01": system/******** directory=dir1 dumpfi
- e=tbsorcl.dmp TABLESPACES=tbsorcl
- 正在使用 BLOCKS 方法进行估计...
- 处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
- 使用 BLOCKS 方法的总估计: 64 KB
- 处理对象类型 TABLE_EXPORT/TABLE/TABLE
- . 导出了 "HR"."TORCL" 5.007 KB 1 行
- 已成功加载/卸载了主表 "SYSTEM"."SYS_EXPORT_TABLESPACE_01"
- *****************************************************************************
- YSTEM.SYS_EXPORT_TABLESPACE_01 的转储文件集为:
- C:\DATA\TBSORCL.DMP
- 作业 "SYSTEM"."SYS_EXPORT_TABLESPACE_01" 已于 21:34:17 成功完成
- :\Users\Administrator>
复制代码 目的地linux64:
PL/SQL Developper:
- select * from v$log;
- select * from v$logfile;
- alter database add logfile group 4 ('+data','+fra') size 52428800 blocksize 512;
- select * from dba_directories;
- create directory dir1 as '/home/oracle/dir1';
- select * from dba_tablespaces;
- select * from hr.tutforcl1;
- alter tablespace tbsutforcl1 read write ;
- select * from v$transportable_platform;
- alter tablespace tbsutforcl2 read write ;
- select * from hr.tutforcl2;
- select * from hr.torcl;
- select * from dba_tables t where t.table_name='TORCL' and t.owner='HR';
复制代码 SQL*Plus:
- [root@station90 ~]# su - oracle
- [oracle@station90 ~]$ cd /u01/app/
- [oracle@station90 app]$ ls
- oracle oraInventory
- [oracle@station90 app]$ cd oracle/
- [oracle@station90 oracle]$ ls
- admin cfgtoollogs checkpoints diag flash_recovery_area man_recovery_area man_recovery_area.11g oradata product
- [oracle@station90 oracle]$ cd oradata/
- [oracle@station90 oradata]$ ls
- rcat
- [oracle@station90 oradata]$ mkdir orcl
- [oracle@station90 oradata]$ cd orcl/
- [oracle@station90 orcl]$ ls
- [oracle@station90 orcl]$ pwd
- /u01/app/oracle/oradata/orcl
- [oracle@station90 orcl]$ ls
- DATA_D-UTFORCL_I-454057935_TS-TBSUTFORCL1_FNO-7_01S653C2
- [oracle@station90 orcl]$ mv DATA_D-UTFORCL_I-454057935_TS-TBSUTFORCL1_FNO-7_01S653C2 tbsutforcl1.dbf
- [oracle@station90 orcl]$ ls
- tbsutforcl1.dbf
- [oracle@station90 orcl]$ pwd
- /u01/app/oracle/oradata/orcl
- [oracle@station90 orcl]$ cd
- [oracle@station90 ~]$ ls
- copytape-root.sh mail rac_tns tnsnames.ora update_t04209_uname.sql 视频 下载
- create_t04209_uname.sql oradiag_oracle revertape-root.sh ttio.rcv 公共的 图片 音乐
- dir1 osb.txt select_t04209_uname.sql update2_t04209_uname.sql 模板 文档 桌面
- [oracle@station90 ~]$ exit
- logout
- [root@station90 ~]# chown oracle:oinstall /home/oracle/dir1/TBSUTFORCL1.DMP
- [root@station90 ~]# su - oracle
- [oracle@station90 ~]$ impdp help=y
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:08:28 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- The Data Pump Import utility provides a mechanism for transferring data objects
- between Oracle databases. The utility is invoked with the following command:
- Example: impdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp
- You can control how Import runs by entering the 'impdp' command followed
- by 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.dmp
- USERID must be the first parameter on the command line.
- ------------------------------------------------------------------------------
- The available keywords and their descriptions follow. Default values are listed within square brackets.
- ATTACH
- Attach to an existing job.
- For example, ATTACH=job_name.
- CONTENT
- Specifies data to load.
- Valid keywords are: [ALL], DATA_ONLY and METADATA_ONLY.
- DATA_OPTIONS
- Data layer option flags.
- Valid keywords are: SKIP_CONSTRAINT_ERRORS.
- DIRECTORY
- Directory object to be used for dump, log and sql files.
- DUMPFILE
- List of dumpfiles to import from [expdat.dmp].
- For example, DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.
- ENCRYPTION_PASSWORD
- Password key for accessing encrypted data within a dump file.
- Not valid for network import jobs.
- ESTIMATE
- Calculate job estimates.
- Valid keywords are: [BLOCKS] and STATISTICS.
- EXCLUDE
- Exclude specific object types.
- For example, EXCLUDE=SCHEMA:"='HR'".
- FLASHBACK_SCN
- SCN used to reset session snapshot.
- FLASHBACK_TIME
- Time used to find the closest corresponding SCN value.
- FULL
- Import everything from source [Y].
- HELP
- Display help messages [N].
- INCLUDE
- Include specific object types.
- For example, INCLUDE=TABLE_DATA.
- JOB_NAME
- Name of import job to create.
- LOGFILE
- Log file name [import.log].
- NETWORK_LINK
- Name of remote database link to the source system.
- NOLOGFILE
- Do not write log file [N].
- PARALLEL
- Change the number of active workers for current job.
- PARFILE
- Specify parameter file.
- PARTITION_OPTIONS
- Specify how partitions should be transformed.
- Valid keywords are: DEPARTITION, MERGE and [NONE].
- QUERY
- Predicate clause used to import 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.
- REMAP_DATAFILE
- Redefine datafile references in all DDL statements.
- REMAP_SCHEMA
- Objects from one schema are loaded into another schema.
- REMAP_TABLE
- Table names are remapped to another table.
- For example, REMAP_TABLE=EMP.EMPNO:REMAPPKG.EMPNO.
- REMAP_TABLESPACE
- Tablespace object are remapped to another tablespace.
- REUSE_DATAFILES
- Tablespace will be initialized if it already exists [N].
- SCHEMAS
- List of schemas to import.
- SKIP_UNUSABLE_INDEXES
- Skip indexes that were set to the Index Unusable state.
- SOURCE_EDITION
- Edition to be used for extracting metadata.
- SQLFILE
- Write all the SQL DDL to a specified file.
- STATUS
- Frequency (secs) job status is to be monitored where
- the default [0] will show new status when available.
- STREAMS_CONFIGURATION
- Enable the loading of Streams metadata
- TABLE_EXISTS_ACTION
- Action to take if imported object already exists.
- Valid keywords are: APPEND, REPLACE, [SKIP] and TRUNCATE.
- TABLES
- Identifies a list of tables to import.
- For example, TABLES=HR.EMPLOYEES,SH.SALES:SALES_1995.
- TABLESPACES
- Identifies a list of tablespaces to import.
- TARGET_EDITION
- Edition to be used for loading metadata.
- TRANSFORM
- Metadata transform to apply to applicable objects.
- Valid keywords are: OID, PCTSPACE, SEGMENT_ATTRIBUTES and STORAGE.
- TRANSPORTABLE
- Options for choosing transportable data movement.
- Valid keywords are: ALWAYS and [NEVER].
- Only valid in NETWORK_LINK mode import operations.
- TRANSPORT_DATAFILES
- List of datafiles to be imported by transportable mode.
- TRANSPORT_FULL_CHECK
- Verify storage segments of all tables [N].
- TRANSPORT_TABLESPACES
- List of tablespaces from which metadata will be loaded.
- Only valid in NETWORK_LINK mode import operations.
- VERSION
- Version 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_CLIENT
- Return to logging mode. Job will be restarted if idle.
- EXIT_CLIENT
- Quit client session and leave job running.
- HELP
- Summarize interactive commands.
- KILL_JOB
- Detach and delete job.
- PARALLEL
- Change the number of active workers for current job.
- START_JOB
- Start or resume current job.
- Valid keywords 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 keywords are: IMMEDIATE.
- [oracle@station90 ~]$ impdp system/oracle_4U directory=dir1 dumpfile=TBSUTFORCL1.DMP TRANSPORT_DATAFILES='/u01/app/oracle/oradata/orcl/tbsutforcl1.dbf'
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:09:53 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
- Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** directory=dir1 dumpfile=TBSUTFORCL1.DMP TRANSPORT_DATAFILES=/u01/app/oracle/oradata/orcl/tbsutforcl1.dbf
- Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
- Processing object type TRANSPORTABLE_EXPORT/TABLE
- Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
- Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed at 21:09:58
- [oracle@station90 ~]$ impdp system/oracle_4U directory=dir1 dumpfile=TBSUTFORCL2.DMP TRANSPORT_DATAFILES='/u01/app/oracle/oradata/orcl/tbsutforcl2.dbf'
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:23:25 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
- Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** directory=dir1 dumpfile=TBSUTFORCL2.DMP TRANSPORT_DATAFILES=/u01/app/oracle/oradata/orcl/tbsutforcl2.dbf
- Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
- ORA-39123: Data Pump transportable tablespace job aborted
- ORA-19722: datafile /u01/app/oracle/oradata/orcl/tbsutforcl2.dbf is an incorrect version
- Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" stopped due to fatal error at 21:23:27
- [oracle@station90 ~]$ impdp system/oracle_4U directory=dir1 dumpfile=TBSUTFORCL2.DMP TRANSPORT_DATAFILES='/u01/app/oracle/oradata/orcl/tbsutforcl2.dbf'
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:26:07 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
- Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** directory=dir1 dumpfile=TBSUTFORCL2.DMP TRANSPORT_DATAFILES=/u01/app/oracle/oradata/orcl/tbsutforcl2.dbf
- Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
- Processing object type TRANSPORTABLE_EXPORT/TABLE
- Processing object type TRANSPORTABLE_EXPORT/POST_INSTANCE/PLUGTS_BLK
- Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed at 21:26:08
- [oracle@station90 ~]$ impdp system/oracle_4U directory=dir1 dumpfile=TBSORCL.DMP TRANSPORT_DATAFILES='/u01/app/oracle/oradata/orcl/tbsorcl.dbf'
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:32:59 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- Master table "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" successfully loaded/unloaded
- Starting "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01": system/******** directory=dir1 dumpfile=TBSORCL.DMP TRANSPORT_DATAFILES=/u01/app/oracle/oradata/orcl/tbsorcl.dbf
- Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
- ORA-39123: Data Pump transportable tablespace job aborted
- ORA-29345: cannot plug a tablespace into a database using an incompatible character set
- Job "SYSTEM"."SYS_IMPORT_TRANSPORTABLE_01" stopped due to fatal error at 21:33:00
- [oracle@station90 ~]$ impdp system/oracle_4U directory=dir1 dumpfile=TBSORCL.DMP
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:36:04 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
- Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** directory=dir1 dumpfile=TBSORCL.DMP
- Processing object type TABLE_EXPORT/TABLE/TABLE
- ORA-39083: Object type TABLE:"HR"."TORCL" failed to create with error:
- ORA-00959: tablespace 'TBSORCL' does not exist
- Failing sql is:
- CREATE TABLE "HR"."TORCL" ("A" NUMBER) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "TBSORCL"
-
- Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
- Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 1 error(s) at 21:36:05
- [oracle@station90 ~]$ impdp system/oracle_4U directory=dir1 dumpfile=TBSORCL.DMP remap_tablespace=TBSORCL:users
- Import: Release 11.2.0.1.0 - Production on Tue Jun 6 21:36:57 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
- Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** directory=dir1 dumpfile=TBSORCL.DMP remap_tablespace=TBSORCL:users
- Processing object type TABLE_EXPORT/TABLE/TABLE
- Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
- . . imported "HR"."TORCL" 5.007 KB 1 rows
- Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at 21:36:58
- [oracle@station90 ~]$
复制代码
|
|