重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 62|回复: 0
打印 上一主题 下一主题

[Oracle] PDB Creation From non-CDB Using an XML file Fails with ORA-60522 Errors When ...

[复制链接]
跳转到指定楼层
楼主
发表于 2026-7-12 18:00:14 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
现象:
A new PDB creation from non-CDB Database using an XML file fails with an ORA-60522 error code. The "create pluggable database" statement is making use of the FILE_NAME_CONVERT clause and Oracle Managed Files are being used. Both non-CDB and CDB Databases are running on the same host.


The failing statement is something like:

CREATE PLUGGABLE DATABASE newPDB USING 'originalDB.xml' COPY FILE_NAME_CONVERT =('+DATA/originalDB/','+DATA/targetCDB/newPDB/');


解决方案:
Remove the FILE_NAME_CONVERT clause from the "create pluggable database" statement and re-try the PDB creation.

When there is a combination of OMF and ASM then a command like the one below should by default copy the new PDB datafiles to the path: +<ASM_DISKGROUP>/<CDB_DATABASE_UNIQUE_NAME>/<PDB_GUID>/DATAFILE

CREATE PLUGGABLE DATABASE "<PDB_NAME>" USING '<desc_file>.xml' COPY;

The diskgroup to use would be determined by the db_create_file_dest parameter in the destination CDB.



原因:
A non-CDB Database is being plugged in as a new PDB is being created in an existing CDB within the same host.

A similar issue was reported in unpublished Bug 31853129 - ORA-65180: DUPLICATE FILE NAME ENCOUNTERED WHEN ATTEMPTING TO PLUG IN A NON-CDB INTO A CDB.

The Development team confirmed that the FILE_NAME_CONVERT clause is not required when Oracle Managed Files are being used and datafiles are on ASM.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2026-7-24 01:04 , Processed in 0.236454 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表