Plugging an Unplugged Pluggable Database issue 2

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

转载于:https://www.cnblogs.com/feiyun8616/p/6438904.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值