How to Move a PDB Back to a Non-CDB Using TRANSPORTABLE=ALWAYS (Doc ID 2027352.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

GOAL

You want to move a PDB back to a non-CDB.  Probably the easiest way is to use the FULLY TRANSPORTABLE feature of expdp to accomplish this (FULL=Y TRANSPORTABLE=ALWAYS).
您想将PDB移回non-CDB。可能最简单的方法是使用expdp的 FULLY TRANSPORTABLE 功能来完成此操作 (FULL=Y TRANSPORTABLE=ALWAYS)。

SOLUTION

The requirements/limitations are the same when you use TRANSPORTABLE=ALWAYS to move back to a non-CDB from a PDB, as they are when moving between non-CDBs, such as same characterset, same RDBMS version and patches, etc.   (See note "Transportable Tablespace (TTS) Restrictions and Limitations: Details, Reference, and Version Where Applicable (Doc ID 1454872.1).")

当您使用 TRANSPORTABLE = ALWAYS 从PDB移回到non-CDB时,要求/限制是相同的,就像在non-CDB之间移动时(例如相同的字符集,相同的RDBMS版本和补丁程序等)一样。(See note "Transportable Tablespace (TTS) Restrictions and Limitations: Details, Reference, and Version Where Applicable (Doc ID 1454872.1).")

The overall steps are basically the same as exporting from a non-CDB, but need some modifications, per steps 2,3,4, 10.

总体步骤与从non-CDB导出的步骤基本相同,但是每个步骤2、3、4、10都需要进行一些修改。

1. Target - Create a new, empty, non-CDB database, using the same 12c binaries (same RDBMS version and patches). 使用相同的12c二进制文件(相同的RDBMS版本和补丁程序)创建一个新的空non-CDB数据库。

2. Source - Put the PDB's user-defined tablespace(s) in read-only mode. 将PDB的用户定义表空间置于只读模式

3. Source - From the PDB, create a directory for where the metadata dumpfile will be created (named TC_DIR in the example; note: you cannot modify DATA_PUMP_DIR for use in a PDB.)  在PDB中,创建用于创建元数据转储文件的目录(在示例中名为TC_DIR;注意:您不能修改DATA_PUMP_DIR以便在PDB中使用。)

4. Source - Run the export from the CDB.  Example:  从CDB运行导出

host expdp system/<password>@<pdbname> directory=TC_DIR dumpfile=fullexp.dmp logfile=fullexp.log full=y transportable=always;

5. Copy the fullexp.dmp file from the target directory to the source directory.  将 fullexp.dmp 文件从目标目录复制到源目录

6. The export log will list the datafiles that need to be copied to the target.  Example: export log将列出需要复制到目标的数据文件

******************************************************************************
Datafiles required for transportable tablespace USERS:
<DIRECTORY>/pdb1/users01.dbf <-------
Job "SYSTEM"."SYS_EXPORT_FULL_01" successfully completed at Mon Jun 29 18:38:28 2015 elapsed 0 00:04:52

7.  Copy (and endian convert, if necessary) the datafiles to the desired location on the target. 将数据文件复制(并在需要时进行字节序转换)到目标上的所需位置。

8.  Target - Create the directory pointing to the location of the metadata dumpfile (named TC_DIR in the example).  创建指向元数据转储文件位置的目录(在示例中名为TC_DIR)

9.  Target - Import as normal for a regular TTS import, but add the full=y parameter.  Example: TTS导入添加full = y参数

host impdp system/<password> directory=TC_DIR dumpfile=fullexp.dmp logfile=fullimp.log full=y transport_datafiles='<new_path_on_target>/users01.dbf'

10. Source - If you want to keep the PDB, you are done.  If you do not want the PDB, unplug it and then drop it (you will have to manually drop the datafiles if you do not unplug the PDB first).  Example:

如果您要保留PDB,请完成。 如果您不希望使用PDB,请先将其拔出再删除(如果您不首先拔出PDB,则必须手动删除数据文件)

ALTER PLUGGABLE DATABASE <pdb_name> UNPLUG INTO '<path_name>/<pdb_name>.xml';
DROP PLUGGABLE DATABASE <pdb_name> INCLUDING DATAFILES;
To move from 12c PDB to 11g NON-CDB:  要将12c PDB移至11g NON-CDB,请执行以下操作:

1,It is required to first move from 12c PDB to 12c Non-CDB  必须先从12c PDB移至12c Non-CDB
2,Then move the 12c Non-CDB to 11g  然后将12 Non-CDB移到11g
Check:
Transportable Tablespace (TTS) Restrictions and Limitations: Details, Reference, and Version Where Applicable (Doc ID 1454872.1)

REFERENCES

NOTE:1166564.1 - Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues

如何使用 TRANSPORTABLE = ALWAYS 将PDB移回Non-CDB (Doc ID 2027352.1)的更多相关文章

  1. V4 Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2471245.1)

    V4 Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2471245. ...

  2. Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues (Doc ID 1166564.1)

    APPLIES TO: Oracle Database Cloud Exadata Service - Version N/A and laterOracle Database Cloud Servi ...

  3. How to Create Transportable Tablespaces Where the Source and Destination are ASM-Based (Doc ID 394798.1)

    How to Create Transportable Tablespaces Where the Source and Destination are ASM-Based (Doc ID 39479 ...

  4. 10g+: Transportable Tablespaces Across Different Platforms (Doc ID 243304.1)

    10g+: Transportable Tablespaces Across Different Platforms (Doc ID 243304.1) APPLIES TO: Oracle Data ...

  5. Transportable tablespace on standby (Doc ID 788176.1)

    APPLIES TO: Oracle Database - Enterprise Edition - Version 10.2.0.1 to 10.2.0.4 [Release 10.2]Oracle ...

  6. struts2移除标签button的id传统的价值观念问题

    <!--显示数据列表--> <tbody id="TableData" class="dataContainer" datakey=" ...

  7. 给定了经纬度的一张my_latlng表,和一个my_grid表,怎么实现my_latlng表回mygrid中的id?

    场景: 假设我们拥有一个拥有了一系列经纬度的表my_latlng(lat string,lng string)表,还有一张给定的栅格表my_grid(gridid bigint,centerlng d ...

  8. 转 Oracle Transportable TableSpace(TTS) 传输表空间 说明

    ############1   迁移数据库的集中方法 三.相关技术 迁移方式 优势 不足1 Export and import • 对数据库版本,以及系统平台没有要求 • 不支持并发,速度慢• 停机时 ...

  9. 11G-使用跨平台增量备份减少可移动表空间的停机时间 XTTS (Doc ID 1389592.1)

    11G - Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 13895 ...

随机推荐

  1. 是时候扔掉 Postman 了,试试 IntelliJ IDEA 自带的高能神器!

    前言 接口调试是每个软件开发从业者必不可少的一项技能,一个项目的的完成,可能接口测试调试的时间比真正开发写代码的时间还要多,几乎是每个开发的日常工作项.所谓工欲善其事必先利其器,在没有尝到 IDEA ...

  2. 操作MyBatis引发Error setting null for parameter #X with JdbcType OTHER .无效的列类型

    再用MyBatis操作Oracle的时候,传入null值而引发的错误 异常信息: org.springframework.jdbc.UncategorizedSQLException: Error s ...

  3. js 淡入淡出的tab选项卡

    代码如下 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF- ...

  4. Java学习 1.1——(JVM介绍)Java为什么能够跨平台?

    首先介绍一下Java的各个层级,先放一张图: 硬件,操作系统和操作系统接口:这三级不说大家都知道,操作系统有很多种,比如Windows,Linux.Windows又分为win7,win10,win x ...

  5. Android 8.1 SystemUI虚拟导航键加载流程解析

    需求 基于MTK 8.1平台定制导航栏部分,在左边增加音量减,右边增加音量加 思路 需求开始做之前,一定要研读SystemUI Navigation模块的代码流程!!!不要直接去网上copy别人改的需 ...

  6. flash的几种模式Normal Mode、DUAL Mode、Quad Mode的概念和区别

    概念 1. 标准SPI 标准SPI通常就称SPI,它是一种串行外设接口规范,有4根引脚信号:clk , cs, mosi, miso 2. Dual SPI 它只是针对SPI Flash而言,不是针对 ...

  7. MIT / BSD / Apache / LGPL / Mozilla / GPL 区别

    自由度:MIT > BSD > Apache > LGPL > Mozilla > GPL

  8. 利用Python进行数据分析-Pandas(第三部分)

    访问数据是使用本书所介绍的这些工具的第一步.这里会着重介绍pandas的数据输入与输出,虽然别的库中也有不少以此为目的的工具. 输入输出通常可以划分为几个大类:读取文本文件和其他更高效的磁盘存储格式, ...

  9. 前端深入之js篇丨Array数组操作从入门到成神Up Up Up,持续更新中

    写在前面 随着前端深入的不断学习,发现数组这个数据结构在前端中有着相当大的存在感,由于我初学前端的时候并没有系统性的学习数组,所以我将通过这篇文章同你一起学习数组,希望我们能一起进步,学会熟练操作数组 ...

  10. InfluxDB从原理到实战 - 一篇文章搞懂InfluxDB时区

    0x00 简介    InfluxDB默认以UTC时间存储并返回时间戳,当接收到一个时序数据记录时,InfluxDB将时间戳从本地时区时间转换为UTC时间并存储,查询时,InfluxDB返回的时间戳对 ...