12c-Say goodbye to your backup when dropping your PDB

删除pdb:
SQL> drop PLUGGABLE database ZSKMSDB;

Pluggable database dropped.
SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         4 OSSPORTALDB                    MOUNTED
SQL>
只能全容器库恢复了:-----想当然的看问题了!!!

反复尝试恢复失败,最终发现一旦pdb drop后没法恢复的,天呢!!!
后来vpn**谷歌,发现有个老外有写到:

RMAN 12c : Say goodbye to your backup when dropping your PDB:
I was working on my presentations for IOUG Collaborate, and I came upon this strange behaviour in RMAN 12c (12.1.0.1.0) which to me, shouldn’t happen. Seems that when you do a DROP PLUGGABLE DATABASE , it is the equivalent of DROP DATABASE INCLUDING BACKUPS. This means that if you need to restore your PDB later on, you won’t have this registered – just be careful when dropping them-----------


http://www.pythian.com/blog/rman-12c-say-goodbye-to-your-backup-when-dropping-your-pdb/


他测试和我测试差不多,结论也一样:一旦pdb drop后,拿备份根本恢复不了:DROP PLUGGABLE DATABASE =DROP DATABASE INCLUDING BACKUPS.



***********************************************************

If you have a valid RMAN backups then do the following and it will work:
 1) Create a new Auxiliary instance, and do a RMAN restore for the following PDBS only : ROOT, PDB$SEED and the Dropped PDB that needs to be restored.

2) Open this newly created Auxiliary instance.

3) You should be able to see all the 3 PDB (root, pdb$seed and dropped PDB) with all the datafiles.

4) Follow the process of unplugging and then plugging in this dropped PDB from the restored auxiliary instance into the original source CDB and you should be all set.

5) Drop the Auxiliary instance now.

***********************************************************************************

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13750068/viewspace-1177355/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13750068/viewspace-1177355/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值