因为原库和目标库版本不一制,出现各种问题,强烈建议保持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. log Configuration

    Log4j – Configuring Log4j 2 - Apache Log4j 2 https://logging.apache.org/log4j/2.x/manual/configurati ...

  2. hihoCoder 1586 Minimum 【线段树】 (ACM-ICPC国际大学生程序设计竞赛北京赛区(2017)网络赛)

    #1586 : Minimum 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 You are given a list of integers a0, a1, …, a2 ...

  3. 获取浏览器屏幕高度(js,jq)

    javascript IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度do ...

  4. Spark基本原理

    仅作<Spark快速大数据分析>学习笔记 定义:Spark是一个用来实现 快速 而 通用 的集群计算平台:(通用的大数据处理引擎:) 改进了原Hadoop MapReduce处理模型,体现 ...

  5. String bulit-in function

    tip: 和tuple一样,字符串也是不可变的类型,字符串的内建函数有非常多,我们一一举例来看看他们的作用 下面是用dir(str) 输出的内容: ['__add__', '__class__', ' ...

  6. 【Codeforces 664A】 Complicated GCD

    [题目链接] 点击打开链接 [算法] gcd(a,a+1) = 1 所以当a = b时,答案为a,否则为1 [代码] #include<bits/stdc++.h> using names ...

  7. 【旧文章搬运】Windows句柄表分配算法分析(三)

    原文发表于百度空间,2009-03-30========================================================================== 三.当需要 ...

  8. pl/sql developer安装使用即时客户端

    pl/sql developer安装使用即时客户端 背景:由于Oracle的安装比较麻烦,大部分人都使用远程Oracle,而Oracle Instantclient Basic package可以解决 ...

  9. B. Arpa’s obvious problem and Mehrdad’s terrible solution

    time limit per test 1 second memory limit per test 256 megabytes input standard input output standar ...

  10. c++中.c_str和.c_data

    1 关于.c_str的用法: const char *c_str(); 这个数组的数据是临时的,当有一个改变这些数据的成员函数被调用后,其中的数据就会失效.因此要么现用先转换,要么把它的数据复制到用户 ...