因为原库和目标库版本不一制,出现各种问题,强烈建议保持2个版本一致

http://www.cndba.cn/dave/article/220

Log 提示查看PDB_PLUG_IN_VIOLATIONS。

col action for a70
select status,action from PDB_PLUG_IN_VIOLATIONS;
RESOLVED
Please check the parameter in the current CDB
PENDING
Call datapatch to install in the PDB or the CDB
PENDING
Call datapatch to install in the PDB or the CDB
PENDING
Call datapatch to install in the PDB or the CDB
已选择 8 行。

select message from PDB_PLUG_IN_VIOLATIONS;
SU bundle patch 4 (Database Patch Set Update : 12.1.0.2.4 (20831110)): Installed in the CDB but not in the PDB.

shutdown immediate
startup upgrade
alter pluggable database PIVRSDEV close immediate;
alter pluggable database PIVRSDEV open upgrade;

cd C:\app\oracle\product\12.1.0\dbhome_1\OPatch
##datapatch.bat -verbose -pdbs PIVRSDEV
datapatch.bat -verbose

##因为需要回退补丁,所以需要将source 下的$ORACLE_HOME\sqlpatch 下的两个文件夹 才copy 到target 机器$ORACLE_HOME\sqlpatch
##(atapatch fails with "The Database Must Be In Upgrade Mode" error (文档 ID 2006198.1)) .\datapatch.bat -verbose
##因为之前已经打过patch,所以这里直接执行脚本即可:
(DB_NAME IS UPPER,AND GIVE ADMINISTRATOR OSDBA GROUP )

AND THEN  RESTART WHOLE DB

alter pluggable database PIVRSDEV close immediate;
alter pluggable database PIVRSDEV open read write;
alter pluggable database all save state;
shutdown immediate;
startup

--结论:
###bug     After running datapatch, PDB plugin or cloned db returns violations shown in PDB_PLUG_IN_VIOLATION (文档 ID 1635482.1)

内容如下:

alter pluggable database PIVRSDEV open read write;

PDB_PLUG_IN_VIOLATIONS 就会有pending;

alter pluggable database PIVRSDEV open upgrade:

PDB_PLUG_IN_VIOLATIONS 就会有 resolved.

workaroud.

·##只能保持2个版本一致。

Plugging an Unplugged Pluggable Database issue 2的更多相关文章

  1. Plugging an Unplugged Pluggable Database issue 3

    Multitenant Unplug/Plug Best Practices (文档 ID 1935365.1) 1.source 从0419 升级到1019 ,但是datapatch 没有回退041 ...

  2. Plugging an Unplugged Pluggable Database

    1.unplug To unplug a PDB, you first close it and then generate an XML manifest file. The XML file co ...

  3. ORA-65179: cannot keep datafiles for a pluggable database that is not unplugged

    SQL> drop pluggable database pdb2; drop pluggable database pdb2 * ERROR at line : ORA-: cannot ke ...

  4. oracle12c新特点之可插拔数据库(Pluggable Database,PDB)

    1.    12c PDB新特点的优势 1)    可以把多个PDB集成进一个平台. 2)    可以快速提供一个新的PDB或一个已有PDB的克隆. 3)    通过拔插技术,可以快速把存在的数据库重 ...

  5. Oracle Database 12c 新特性 - Pluggable Database

    在Oracle Database 12c中,可组装式数据库 - Pluggable Database为云计算而生.在12c以前,Oracle数据库是通过Schema来进行用户模式隔离的,现在,可组装式 ...

  6. Oracle 12c: RMAN restore/recover pluggable database

    查看数据库状态 运行在归档模式,可拔插数据库name=pdborcl SQL> archive log list; Database log mode Archive Mode Automati ...

  7. Oracle 12C pluggable database自启动

    实验环境创建了两个PDB,本实验实现在开启数据库时,实现pluggable database PDB2自启动: 原始环境: SQL> shu immediateDatabase closed.D ...

  8. Clone a Pluggable Database – 12c Edition

    1. 1.Tnsnames when connecting to either Container or Pluggable instance The tnsnames.ora should be c ...

  9. Multitenant best Practice clone pdb seed and Clone a Pluggable Database – 12c Edition

    1. 1.Tnsnames when connecting to either Container or Pluggable instance The tnsnames.ora should be c ...

随机推荐

  1. Java程序员从笨鸟到菜鸟之(十五)Html基础积累总结(下)

     本文来自:曹胜欢博客专栏.转载请注明出处:http://blog.csdn.net/csh624366188 一:表格 1.表格的基本语法 <table>...</table> ...

  2. IDEA中Git的应用场景

    工作中多人使用版本控制软件协作开发,常见的应用场景归纳如下: 假设小组中有两个人,组长小张,组员小袁 场景一:小张创建项目并提交到远程Git仓库 场景二:小袁从远程git仓库上获取项目源码 场景三:小 ...

  3. Linux epoll 源码注释

    https://www.cnblogs.com/stonehat/p/8613505.html 这篇文章值得好好读,先留个记录,回头看. IO多路复用之epoll总结 - Anker's Blog - ...

  4. Ubuntu 配置 nfsserver

    https://help.ubuntu.com/lts/serverguide/network-file-system.html#nfs-installation 网络文件系统 (NFS) NFS 允 ...

  5. Quartz -第一篇-入门

    学习地址:https://www.imooc.com/learn/846 官网:www.quartz-scheduler.org 特点:分布式+集群 设计模式: 工厂模式 builder模式 组件模式 ...

  6. (linux)MMC 卡驱动分析

    最近花时间研究了一下 MMC 卡驱动程序,开始在网上找了很多关于 MMC 卡驱动的分析文章,但大都是在描述各个层,这对于初学者来讲帮助并不大,所以我就打算把自己的理解写下来,希望对大家有用.个人觉得理 ...

  7. ReactNative Android 研究

    先从ReactRootView入手吧,它是一个FrameLayout mReactRootView.startReactApplication 这的start其实是会等到inital onMeasur ...

  8. HDU3652 B-number —— 数位DP

    题目链接:https://vjudge.net/problem/HDU-3652 B-number Time Limit: 2000/1000 MS (Java/Others)    Memory L ...

  9. 书写优雅的shell脚本(一)- if语句

    使用unix/linux的程序人员几乎都写过shell脚本,但这其中很多人都是为了完成功能而在网上找代码段,这样写出来的shell脚本在功能方面当然是没有什么问题,但是这样的方式不能写出优雅的shel ...

  10. LA-4356&&hdu-2469 (极角排序+扫描线)

    题目链接: Fire-Control System Time Limit: 12000/5000 MS (Java/Others)     Memory Limit: 32768/32768 K (J ...