另類的pdb恢復方式

cdb中有pdb1,pdb2

需求:希望將在線熱備份pdb1的備份集a,恢復成pdb3,使得cdb中有pdb1,2,3

參考到的:RMAN備份恢復典型案例——跨平臺遷移pdb - 墨天輪

ORA-65122: Pluggable Database GUID Conflicts With The GUID Of An Existing Container (Doc ID 2416798.1)

Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

SYMPTOMS

Restored Pluggable database in a different container and unplugged. Dropped existing old?PDB? and trying to plug in new PDB and getting error:
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.


SQL> drop pluggable database PDB1 INCLUDING DATAFILES;

Pluggable database dropped.

SQL> SET SERVEROUTPUT ON
DECLARE
compatible CONSTANT VARCHAR2(3) := CASE DBMS_PDB.CHECK_PLUG_COMPATIBILITY(pdb_descr_file => '/tmp/cdbrf_pdb1.xml')
WHEN TRUE THEN
'YES'
ELSE 'NO'
END;
BEGIN
DBMS_OUTPUT.PUT_LINE(compatible);
END;
/SQL>
YES

PL/SQL procedure successfully completed.

SQL> create pluggable database PDB1
using '/tmp/cdbrf_pdb1.xml'
COPY FILE_NAME_CONVERT = ('+DATA', '+EON_DAT_QA');
; 2 3
create pluggable database pdb1
*
ERROR at line 1:
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.


?

CAUSE

?The same PDB had been plugged previously hence the? GUID already exists

SOLUTION

?This is expected error.

Use? AS CLONE clause.

create pluggable database ....
AS CLONE using '.....xml'
file_name_convert=(...,..);

Or, if you would like to move the XML file, you can use:
create pluggable database ....
AS CLONE using '.....xml'
MOVE
file_name_convert=(...,..);

AS CLONE option is used when target CDB already contains a PDB that was created using the same set of data files. And this is the case here.

Please take a look at:
CREATE PLUGGABLE DATABASE
"
AS CLONE Clause

Specify this clause only if the target CDB already contains a PDB that was created using the same set of data files. The source files remain as an unplugged PDB and can be used again. Specifying AS CLONE also ensures that Oracle Database generates new identifiers, such as DBID and GUID, for the new PDB.

Oracle若只有PDB數據庫文件,如何將PDB插入到其他CDB? - 墨天輪

[BEGIN] 2025/8/15 20:06:15
SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ ll /u01/app/oracle/oradata/ora23aipdb01
total 2783328
-rw-r-----. 1 oracle oinstall   10493952 Aug 15 19:56 jyc01.dbf
-rw-r-----. 1 oracle oinstall 2147491840 Aug 15 19:56 sysaux01.dbf
-rw-r-----. 1 oracle oinstall  367009792 Aug 15 19:56 system01.dbf
-rw-r-----. 1 oracle oinstall   20979712 Jun 26 06:02 temp01.dbf
-rw-r-----. 1 oracle oinstall  319823872 Aug 15 19:56 undotbs01.dbf
[oracle@ora23ai ~]$ pwd
/home/oracle
[oracle@ora23ai ~]$ ll
total 1788600
-rw-r--r--. 1 oracle oinstall       2068 Dec 23  2024 db_install.rsp
drwxr-xr-x  2 oracle oinstall       4096 Aug 15 20:03 pdb1
-rw-r-----  1 oracle oinstall 1831501824 Aug 15 19:57 pdb1_01417281_1_1_1
-rw-r--r--  1 oracle oinstall       9534 Aug 15 20:03 pdb1.xml
-rw-r-----  1 oracle oinstall       3316 May 13 17:16 sqlnet.log
[oracle@ora23ai ~]$ cp pdb1.xml
cp: missing destination file operand after 'pdb1.xml'
Try 'cp --help' for more information.
[oracle@ora23ai ~]$ cp pdb1.xml pdb1.xml.bak
[oracle@ora23ai ~]$ vi pdb1.xml
[oracle@ora23ai ~]$ grep guid pdb1.xml<guid>29ED108305EC7E38E0653CDEB45D3AB5</guid>
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:08:10 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb1.xml'
foreign pluggable database PDB1
format '/home/oracle/pdb1/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb1.xml'
2> foreign pluggable database PDB1
3> format '/home/oracle/pdb1/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=279 device type=DISKchannel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7
channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN Command Id : 2025-08-15T20:08:10
RMAN Command Id : 2025-08-15T20:08:10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:08:55
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> drop pluggable database ora23aipdb01 INCLUDING DATAFILES;
drop pluggable database ora23aipdb01 INCLUDING DATAFILES;
Statement processedRMAN> restore using '/home/oracle/pdb1.xml'
foreign pluggable database PDB1
format '/home/oracle/pdb1/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb1.xml'
2> foreign pluggable database PDB1
3> format '/home/oracle/pdb1/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using channel ORA_DISK_1channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_10417363
channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_91417363
channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_lg417363
channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_g5417363
channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbfPerforming import of metadata...
Finished restore at 15-AUG-25RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ ll /u01/app/oracle/oradata/ora23aipdb01
total 0
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:13:56 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO4 PDB1 			  MOUNTED
SQL> alter pluggable database pdb1 open;Pluggable database altered.SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO4 PDB1 			  READ WRITE NO
SQL> select name from v$datafile;NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORA23AI/system01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/system01.dbf
/u01/app/oracle/oradata/ORA23AI/sysaux01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/sysaux01.dbf
/u01/app/oracle/oradata/ORA23AI/users01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/undotbs01.dbf
/u01/app/oracle/oradata/ORA23AI/undotbs01.dbf
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u711 rows selected.SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ cp pdb1.xml pdb2.xml
[oracle@ora23ai ~]$ vi pdb2.xml
[oracle@ora23ai ~]$ pwd
/home/oracle
[oracle@ora23ai ~]$ mkdir pdb2
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:17:23 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB2
3> format '/home/oracle/pdb2/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=32 device type=DISKchannel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_jr4173es
channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_s44173es
channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_4q4173es
channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_kj4173es
channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN Command Id : 2025-08-15T20:17:23
RMAN Command Id : 2025-08-15T20:17:23
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:17:49
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> RMAN> RMAN> restore AS CLONE using '/home/oracle/pdb2.xml'
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore AS CLONE 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "as": expecting one of: "allforeign, application, archivelog, asdecrypted, asencrypted, backupset, channel, check, controlfile, database, database root, datafile, device, dump, farsync, file_name_convert, file, force, foreign, from, frompreplugin, from service, high, pluggable, preview, primary, section, skip preplugin, skip readonly, spfile, standby, tablespace, to restore point, transport file, transport list, until restore point, until, using, validate, xmlfile, ("
RMAN-01007: at line 1 column 9 file: standard inputRMAN> foreign 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "foreign": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> format 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "format": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> 
from backupset 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ vi pdb2.xml 
RMAN> exit
exit
Recovery Manager complete.
[oracle@ora23ai ~]$ vi pdb2.xml 
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:21:03 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB2
3> format '/home/oracle/pdb2/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=276 device type=DISKchannel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_4d4173m8
channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_1b4173m8
channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_l64173m8
channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_kj4173m8
channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN Command Id : 2025-08-15T20:21:03
RMAN Command Id : 2025-08-15T20:21:03
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:21:44
ORA-65027: XML metadata file error while getting node or value for (GUID - PDB)
Help: https://docs.oracle.com/error-help/db/ora-65027/RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ oerr ora 65027
65027, 00000, "XML metadata file error while getting node or value for (%s - %s)"
// *Cause:  An error occurred while trying to parse the XML metadata file.
// *Action: Check and correct the XML metadata file.
//
[oracle@ora23ai ~]$ rman target /\
> ^C
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:28:27 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml' nonsparse clone
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';
restore using '/home/oracle/pdb2.xml' nonsparse 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "nonsparse": expecting one of: "allforeign, application, archivelog, asdecrypted, asencrypted, backupset, channel, check, controlfile, database, database root, datafile, device, dump, farsync, file_name_convert, file, force, foreign, from, frompreplugin, from service, high, pluggable, preview, primary, section, skip preplugin, skip readonly, spfile, standby, tablespace, to restore point, transport file, transport list, until restore point, until, using, validate, xmlfile, ("
RMAN-01007: at line 1 column 39 file: standard inputRMAN> foreign 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "foreign": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> format 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "format": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> from backupset 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> RMAN> restore using '/home/oracle/pdb2.xml' clone
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml' clone
2> foreign pluggable database PDB2
3> format '/home/oracle/pdb2/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:28:56
RMAN-12010: automatic channel allocation initialization failed
RMAN-06174: not connected to auxiliary databaseRMAN> restore using '/home/oracle/pdb2.xml' as clone
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml' as cloneRMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "as": expecting one of: "allforeign, application, archivelog, asdecrypted, asencrypted, backupset, channel, check, controlfile, database, database root, datafile, device, dump, farsync, file_name_convert, file, force, foreign, from, frompreplugin, from service, high, pluggable, preview, primary, section, skip preplugin, skip readonly, spfile, standby, tablespace, to restore point, transport file, transport list, until restore point, until, using, validate, xmlfile, ("
RMAN-01007: at line 1 column 39 file: standard inputRMAN> foreign 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "foreign": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> format 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "format": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> 
from backupset 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "allocate, alter, analyze, associate statistics, audit, backup, begin, @, call, catalog, change, comment, commit, configure, connect, convert, copy, create, create catalog, create global, create or replace global, create or replace script, create script, crosscheck, declare, delete, delete from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop database, duplicate, exit, explain plan, flashback, flashback table, grant, grant catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit, open, print, purge, quit, recover, register, release, rename"
RMAN-01007: at line 1 column 1 file: standard inputRMAN> RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ vi pdb2.xml 
[oracle@ora23ai ~]$ vi pdb2.xml 
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:30:09 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB2
3> format '/home/oracle/pdb2/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=284 device type=DISKchannel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_s9417474
channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_2n417474
channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_t4417474
channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_li417474
channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN Command Id : 2025-08-15T20:30:09
RMAN Command Id : 2025-08-15T20:30:09
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:30:44
ORA-65027: XML metadata file error while getting node or value for (CDB Database ID - PDB)
Help: https://docs.oracle.com/error-help/db/ora-65027/RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ pwd
/home/oracle
[oracle@ora23ai ~]$ ll *.xml*
-rw-r--r-- 1 oracle oinstall 9534 Aug 15 20:13 pdb1.xml
-rw-r--r-- 1 oracle oinstall 9534 Aug 15 20:07 pdb1.xml.bak
-rw-r--r-- 1 oracle oinstall 9454 Aug 15 20:30 pdb2.xml
[oracle@ora23ai ~]$ cp pdb1.xml pdb2.xml
[oracle@ora23ai ~]$ vi pdb2.xml
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:31:53 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB2
3> format '/home/oracle/pdb2/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=284 device type=DISKchannel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_ko4174ab
channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_644174ab
channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_ls4174ab
channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_gr4174ab
channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:17
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN Command Id : 2025-08-15T20:31:53
RMAN Command Id : 2025-08-15T20:31:53
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:32:28
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ rman target / debug trace=/tmp/rman_debugRecovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:33:13 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.RMAN-06005: connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB2
format '/home/oracle/pdb2/%U'
from backupset '/home/oracle/pdb1_01417281_1_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB2
3> format '/home/oracle/pdb2/%U'
4> 
from backupset '/home/oracle/pdb1_01417281_1_1_1';
RMAN-03090: Starting restore at 15-AUG-25
RMAN-06009: using target database control file instead of recovery catalog
RMAN-08030: allocated channel: ORA_DISK_1
RMAN-08500: channel ORA_DISK_1: SID=279 device type=DISKRMAN-08016: channel ORA_DISK_1: starting datafile backup set restore
RMAN-08089: channel ORA_DISK_1: specifying datafile(s) to restore from backup set
RMAN-08622: channel ORA_DISK_1: restoring all foreign files in backup piece
RMAN-08003: channel ORA_DISK_1: reading from backup piece /home/oracle/pdb1_01417281_1_1_1
RMAN-08626: channel ORA_DISK_1: restoring foreign file 13 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp
RMAN-08626: channel ORA_DISK_1: restoring foreign file 12 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp
RMAN-08626: channel ORA_DISK_1: restoring foreign file 14 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp
RMAN-08626: channel ORA_DISK_1: restoring foreign file 15 to /home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp
RMAN-08627: channel ORA_DISK_1: foreign piece handle=/home/oracle/pdb1_01417281_1_1_1
RMAN-08023: channel ORA_DISK_1: restored backup piece 1
RMAN-08180: channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
RMAN-08430: channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:33:45
RMAN-03009: failure of IRESTORE command on ORA_DISK_1 channel at 08/15/2025 20:33:45
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/
app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/Coracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-242746
5694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf'REATE PLUGGA , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , 
'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY;BLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/
2> app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-242746
3> 5694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , 
4> 
'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY;5> 6> RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01006: error signaled during parse
RMAN-00600: internal error, arguments [2016] [4] [] [] []RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:46:15 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/
app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/  2  oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-242746
5694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf'  3   , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , 
'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY;  4  5  
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> 
SQL> ^CSQL> ^C^CSQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:47:46 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' ,'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'	      SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' ,'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY
*
ERROR at line 1:
ORA-65139: Mismatch between XML metadata file and data file
/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp for
value of guid (39ED108305EC7E38E0653CDEB45D3AB5 in the plug XML file,
29ED108305EC7E38E0653CDEB45D3AB4 in the data file)
Help: https://docs.oracle.com/error-help/db/ora-65139/SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ pwd
/home/oracle
[oracle@ora23ai ~]$ cp pdb1.xml pdb2.xml
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:48:40 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' ,'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'	      SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' ,'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY
*
ERROR at line 1:
ORA-65139: Mismatch between XML metadata file and data file
/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp for
value of guid (29ED108305EC7E38E0653CDEB45D3AB5 in the plug XML file,
29ED108305EC7E38E0653CDEB45D3AB4 in the data file)
Help: https://docs.oracle.com/error-help/db/ora-65139/SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ vi pdb2.xml
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:49:16 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL>     
SQL> 
SQL> 
SQL> CREATE PLUGGABLE DATABASE PDB2 AS CLONE  USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb2/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' ,'/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp' ) NOCOPY;Pluggable database created.SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO4 PDB1 			  READ WRITE NO6 PDB2 			  MOUNTED
SQL> alter pluggable database pdb2 open;Pluggable database altered.SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO4 PDB1 			  READ WRITE NO6 PDB2 			  READ WRITE NO
SQL> select name from v$datafile;NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/ORA23AI/system01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/system01.dbf
/u01/app/oracle/oradata/ORA23AI/sysaux01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/sysaux01.dbf
/u01/app/oracle/oradata/ORA23AI/users01.dbf
/u01/app/oracle/oradata/ORA23AI/pdbseed/undotbs01.dbf
/u01/app/oracle/oradata/ORA23AI/undotbs01.dbf
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7NAME
--------------------------------------------------------------------------------
/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_ek4174cp
/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_144174cp
/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_sg4174cp
/home/oracle/pdb2/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_na4174cp15 rows selected.SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:52:35 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> backup pluggable database pdb1;
backup pluggable database pdb1;
Starting backup at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=279 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00017 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
input datafile file number=00016 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
input datafile file number=00018 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
input datafile file number=00019 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7
channel ORA_DISK_1: starting piece 1 at 15-AUG-25
channel ORA_DISK_1: finished piece 1 at 15-AUG-25
piece handle=/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1 tag=TAG20250815T205249 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 15-AUG-25Starting Control File Autobackup at 15-AUG-25
piece handle=/u01/app/oracle/product/23/db_1/dbs/c-2427465694-20250815-01 comment=NONE
Finished Control File Autobackup at 15-AUG-25RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ pwd
/home/oracle
[oracle@ora23ai ~]$ mkdir pdb3
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:55:28 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB3
format '/home/oracle/pdb3/%U'
from backupset '/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB3
3> format '/home/oracle/pdb3/%U'
4> 
from backupset '/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1';
Starting restore at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=29 device type=DISKchannel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring all foreign files in backup piece
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1
channel ORA_DISK_1: restoring foreign file 17 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_em4175mc
channel ORA_DISK_1: restoring foreign file 16 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_ib4175mc
channel ORA_DISK_1: restoring foreign file 18 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_854175mc
channel ORA_DISK_1: restoring foreign file 19 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_134175mc
channel ORA_DISK_1: foreign piece handle=/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN Command Id : 2025-08-15T20:55:28
RMAN Command Id : 2025-08-15T20:55:28
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:55:56
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ rman target / debug trace=/tmp/rman_debugRecovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:56:07 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.RMAN-06005: connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb2.xml'
foreign pluggable database PDB3
format '/home/oracle/pdb3/%U'
from backupset '/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1';restore using '/home/oracle/pdb2.xml'
2> foreign pluggable database PDB3
3> format '/home/oracle/pdb3/%U'
4> 
from backupset '/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1';
RMAN-03090: Starting restore at 15-AUG-25
RMAN-06009: using target database control file instead of recovery catalog
RMAN-08030: allocated channel: ORA_DISK_1
RMAN-08500: channel ORA_DISK_1: SID=285 device type=DISKRMAN-08016: channel ORA_DISK_1: starting datafile backup set restore
RMAN-08089: channel ORA_DISK_1: specifying datafile(s) to restore from backup set
RMAN-08622: channel ORA_DISK_1: restoring all foreign files in backup piece
RMAN-08003: channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1
RMAN-08626: channel ORA_DISK_1: restoring foreign file 17 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_434175nu
RMAN-08626: channel ORA_DISK_1: restoring foreign file 16 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu
RMAN-08626: channel ORA_DISK_1: restoring foreign file 18 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_4d4175nu
RMAN-08626: channel ORA_DISK_1: restoring foreign file 19 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_7u4175nu
RMAN-08627: channel ORA_DISK_1: foreign piece handle=/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1
RMAN-08023: channel ORA_DISK_1: restored backup piece 1
RMAN-08180: channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
RMAN-08430: channel ORA_DISK_1: plugging file 3 for /u01/app/oracle/oradata/ora23aipdb01/temp01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 20:56:46
RMAN-03009: failure of IRESTORE command on ORA_DISK_1 channel at 08/15/2025 20:56:46
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ vi /tmp/rman_debug 
[oracle@ora23ai ~]$ tail -500 /tmp/rman_debug |more
DBGMISC:              ENTERED krmzgetxttpluginf [20:56:46.892]
DBGMISC:              EXITED krmzgetxttpluginf [20:56:46.892] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [20:56:46.892]
DBGMISC:              EXITED krmzgchid [20:56:46.892] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [20:56:46.892]
RMAN-08430: channel ORA_DISK_1: plugging file 12 for /u01/app/oracle/oradata/ora23aipdb01/system01.dbf
DBGMISC:              EXITED krmzlog [20:56:46.893] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [20:56:46.893]
DBGMISC:              EXITED krmzgetxttpluginf [20:56:46.893] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [20:56:46.893]
DBGMISC:              EXITED krmzgchid [20:56:46.893] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [20:56:46.893]
RMAN-08430: channel ORA_DISK_1: plugging file 13 for /u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf
DBGMISC:              EXITED krmzlog [20:56:46.894] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [20:56:46.894]
DBGMISC:              EXITED krmzgetxttpluginf [20:56:46.894] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [20:56:46.894]
DBGMISC:              EXITED krmzgchid [20:56:46.894] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [20:56:46.894]
RMAN-08430: channel ORA_DISK_1: plugging file 14 for /u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf
DBGMISC:              EXITED krmzlog [20:56:46.895] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [20:56:46.895]
DBGMISC:              EXITED krmzgetxttpluginf [20:56:46.895] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [20:56:46.895]
DBGMISC:              EXITED krmzgchid [20:56:46.895] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [20:56:46.895]
RMAN-08430: channel ORA_DISK_1: plugging file 15 for /u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf
DBGMISC:              EXITED krmzlog [20:56:46.896] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [20:56:46.896]
DBGMISC:              EXITED krmzgetxttpluginf [20:56:46.896] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [20:56:46.896]
DBGMISC:              EXITED krmzgchid [20:56:46.896] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmztrc [20:56:46.896]
DBGPLSQL:              channel ORA_DISK_1: Calling doxttplug [20:56:46.896] (restore)
DBGMISC:              EXITED krmztrc [20:56:46.896] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzxttplug [20:56:46.896]
DBGSQL:                ENTERED krmkosqlerrDBGSQL:                 TARGET> CREATE PLUGGABLE DATABASE PDB3 USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/
app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/system01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/sysaux01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs0
1.dbf' , '/home/oracle/pdb3/undotbs01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/jyc01.dbf' ) NOCOPY
DBGSQL:                    sqlcode = 65122
DBGSQL:                 error: ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container. (krmkosqlerr)
DBGSQL:                 Help: https://docs.oracle.com/error-help/db/ora-65122/ (krmkosqlerr)
DBGSQL:                  (krmkosqlerr)
DBGSQL:                EXITED krmkosqlerr
DBGMISC:               krmkosqlexe called from file krmr.c, line 6837 has produced error 65122 at TARGET upon executing CREATE PLUGGABLE DATABASE PDB3 USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01
/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/system01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.db
f' , '/home/oracle/pdb3/sysaux01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/undotbs01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/jyc01.dbf' ) NOCO
PY [20:56:46.923] (krmkosqlexe_impl)
DBGMISC:               krmksqlerror called from file krmr.c, line 6851, cx: 94214224801192 for TARGET [20:56:46.924]
DBGMISC:               Exception 6003 external exception thrown at krmkseqlerror@krmk3.c#5938 [20:56:46.924]
DBGMISC:               Exception 6003 seen at krmzxttplug@krmz.c#10171 [20:56:46.924]
DBGRPC:                krmxr - xc channel ORA_DISK_1, chx channel ORA_DISK_1, returned from peicnt with peirc 3
DBGMISC:               ENTERED krmstrim [20:56:46.924]
DBGMISC:                Trimming message: ORA-06512: at "KRMICD", line 1497 [20:56:46.925] (krmstrim)
DBGMISC:                ORA-06512: at line 26 (krmstrim)
DBGMISC:                 (56) (krmstrim)
DBGMISC:               EXITED krmstrim with status 56 [20:56:46.925] elapsed time [00:00:00:00.000]
DBGMISC:               Exception 10032 external exception recorded but not thrown at krmxr@krmx.c#2607 [20:56:46.925]
DBGRPC:                krmxr - xc channel ORA_DISK_1, chx channel ORA_DISK_1, got execution errors (step_60)
DBGRPC:                krmxr - exiting with 1
DBGMISC:               krmqexe: unhandled exception on channel ORA_DISK_1 [20:56:46.925]
DBGMISC:              EXITED krmiexe with status 1 [20:56:46.925] elapsed time [00:00:00:16.129]
DBGMISC:              krmice: Command 'IRESTORE' execution has failed on channel ORA_DISK_1: krmice1 return code is 1 [20:56:46.925]
DBGMISC:              Exception 3009 external exception thrown at krmice@krmi.c#4688 [20:56:46.925]
DBGMISC:              Exception 3009 seen at krmice@krmi.c#5141 [20:56:46.925]
DBGMISC:              Exception 3009 seen at krmiep2@krmi.c#1329 [20:56:46.925]
DBGMISC:              Exception 3009 seen at krmice@krmi.c#5141 [20:56:46.925]
DBGMISC:              Exception 3009 seen at krmiep2@krmi.c#1329 [20:56:46.925]
DBGMISC:              Exception 3009 seen at krmicomp@krmi.c#6376 [20:56:46.925]
DBGMISC:              krmicomp: error 3009 signalled during compilation [20:56:46.925]
DBGMISC:              Exception 3002 external exception thrown at krmicomp@krmi.c#6426 [20:56:46.925]
DBGMISC:              Exception 3002 seen at krmice1@krmi.c#7093 [20:56:46.925]
DBGMISC:              Exception 3002 seen at krmice@krmi.c#5141 [20:56:46.925]
DBGMISC:              ENTERED krmkmrsr [20:56:46.926]DBGSQL:                TARGET> select decode(status, 'OPEN', 1, 0), decode(archiver, 'FAILED', 1, 0), decode(database_status, 'SUSPENDED', 1, 0) into :status, :archstuck, :dbsuspended from v$instance
DBGSQL:                   sqlcode = 0
DBGSQL:                    D :status = 1
DBGSQL:                    D :archstuck = 0
DBGSQL:                    D :dbsuspended = 0DBGSQL:                TARGET> select decode(open_mode, 'READ WRITE', 1, 0) into :read_write from v$database
DBGSQL:                   sqlcode = 0
DBGSQL:                    D :read_write = 1DBGSQL:                TARGET> select value into :vcomp_txt from  v$parameter where name = 'compatible'
DBGSQL:                   sqlcode = 0
DBGSQL:                    D :vcomp_txt = 23.6.0DBGSQL:                TARGET> declare dot1st number; dot2nd number; dot3rd number; comptxt varchar2(255) := :vcomp_txt; begin comptxt := comptxt || '.0.0'; dot1st := instr(comptxt, '.', 1, 1); dot2nd := instr(comptxt, '.'
, 1, 2); dot3rd := instr(comptxt, '.', 1, 3); comptxt :=  lpad(substr(comptxt, 1, dot1st - 1), 2, '0') || lpad(substr(comptxt, dot1st + 1, dot2nd - dot1st - 1), 2, '0')  || lpad(substr(comptxt, dot2nd + 1, dot3rd - dot2nd 
- 1), 2, '0');:vcomp_ub4 := to_number(comptxt); end;
DBGSQL:                   sqlcode = 0
DBGSQL:                    B :vcomp_ub4 = 230600
DBGSQL:                    B :vcomp_txt = 23.6.0
DBGMISC:               krmkpdbs(): vcomp_txt:23.6.0 vcomp_ub4:230600 flags:5 [20:56:46.937]
DBGSQL:                ENTERED krmkosqlerrDBGSQL:                 TARGET> select /*+ rule */ round(sum(MBYTES_PROCESSED)), round(sum(INPUT_BYTES)), round(sum(OUTPUT_BYTES)) from V$RMAN_STATUS START WITH RECID = :row_id and STAMP = :row_stamp CONNECT BY PRIOR RECID= parent_recid
DBGSQL:                    sqlcode = 24347
DBGSQL:                     B :row_id = 31
DBGSQL:                     B :row_stamp = 1209243389
DBGSQL:                 success: ORA-24347: Warning of a NULL column in an aggregate function (krmkosqlerr)
DBGSQL:                 Help: https://docs.oracle.com/error-help/db/ora-24347/ (krmkosqlerr)
DBGSQL:                  (krmkosqlerr)
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 20:58:43 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO4 PDB1 			  READ WRITE NO6 PDB2 			  READ WRITE NO
SQL> CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/system01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/sysaux01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/undotbs01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/jyc01.dbf' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb2.xml'	     SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/system01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/sysaux01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/undotbs01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/jyc01.dbf' ) NOCOPY
*
ERROR at line 1:
ORA-19505: failed to identify file "/home/oracle/pdb3/system01.dbf"
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
Help: https://docs.oracle.com/error-help/db/ora-19505/SQL> 
SQL> CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb2.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_434175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_4d4175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_7u4175nu' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb2.xml'	     SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_434175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_4d4175nu'  ,	'/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_7u4175nu' ) NOCOPY
*
ERROR at line 1:
ORA-65139: Mismatch between XML metadata file and data file
/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu for
value of cid (3 in the plug XML file, 4 in the data file)
Help: https://docs.oracle.com/error-help/db/ora-65139/SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ cp pdb1
pdb1/                pdb1_01417281_1_1_1  pdb1.xml             pdb1.xml.bak         
[oracle@ora23ai ~]$ cp pdb1
pdb1/                pdb1_01417281_1_1_1  pdb1.xml             pdb1.xml.bak         
[oracle@ora23ai ~]$ cp pdb1.xml pdb3.xml
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 21:04:07 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb3.xml'        SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_434175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_4d4175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_7u4175nu' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb3.xml'	     SOURCE_FILE_NAME_CONVERT = ( '/u01/app/oracle/oradata/ora23aipdb01/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/u01/app/oracle/oradata/ora23aipdb01/system01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/sysaux01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_434175nu'  ,  '/u01/app/oracle/oradata/ora23aipdb01/undotbs01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_4d4175nu'  ,	'/u01/app/oracle/oradata/ora23aipdb01/jyc01.dbf' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_7u4175nu' ) NOCOPY
*
ERROR at line 1:
ORA-65139: Mismatch between XML metadata file and data file
/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_8f4175nu for
value of cid (3 in the plug XML file, 4 in the data file)
Help: https://docs.oracle.com/error-help/db/ora-65139/SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO4 PDB1 			  READ WRITE NO6 PDB2 			  READ WRITE NO
SQL> backup for transport unplug into '/home/oracle/pdb1.xml' format '/home/oracle/pdb1_%U' pluggable database pdb1;
SP2-0734: unknown command beginning "backup for..." - rest of line ignored.
Help: https://docs.oracle.com/error-help/db/sp2-0734/
SQL> exit
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ rman target /Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 21:07:21 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.connected to target database: ORA23AI (DBID=2427465694)RMAN> backup for transport unplug into '/home/oracle/pdb1.xml' format '/home/oracle/pdb1_%U' pluggable database pdb1;
backup for transport unplug into '/home/oracle/pdb1.xml' format '/home/oracle/pdb1_%U' pluggable database pdb1;
Starting backup at 15-AUG-25
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=156 device type=DISK
running UNPLUG on the specified pluggable database: PDB1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/15/2025 21:07:26
ORA-65025: Pluggable database PDB1 is not closed on all instances.
Help: https://docs.oracle.com/error-help/db/ora-65025/RMAN> alter pluggable database pdb1;
alter pluggable database pdb1;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 08/15/2025 21:07:37
ORA-00922: missing or invalid option
Help: https://docs.oracle.com/error-help/db/ora-00922/RMAN> alter pluggable database pdb1 close immediate;
alter pluggable database pdb1 close immediate;
Statement processedRMAN> backup for transport unplug into '/home/oracle/pdb1.xml' format '/home/oracle/pdb1_%U' pluggable database pdb1;
backup for transport unplug into '/home/oracle/pdb1.xml' format '/home/oracle/pdb1_%U' pluggable database pdb1;
Starting backup at 15-AUG-25
using channel ORA_DISK_1
running UNPLUG on the specified pluggable database: PDB1
UNPLUG file path : /home/oracle/pdb1.xml
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00017 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
input datafile file number=00016 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
input datafile file number=00018 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
input datafile file number=00019 name=/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7
channel ORA_DISK_1: starting piece 1 at 15-AUG-25
channel ORA_DISK_1: finished piece 1 at 15-AUG-25
piece handle=/home/oracle/pdb1_054176dp_5_1_1 tag=TAG20250815T210803 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 15-AUG-25RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ rman target / debug trace=/tmp/rman_debug1Recovery Manager: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 21:08:40 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.RMAN-06005: connected to target database: ORA23AI (DBID=2427465694)RMAN> restore using '/home/oracle/pdb1.xml'
foreign pluggable database PDB3
format '/home/oracle/pdb3/%U'
from backupset '/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1';restore using '/home/oracle/pdb1.xml'
2> foreign pluggable database PDB3
3> format '/home/oracle/pdb3/%U'
4> 
from backupset '/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1';
RMAN-03090: Starting restore at 15-AUG-25
RMAN-06009: using target database control file instead of recovery catalog
RMAN-08030: allocated channel: ORA_DISK_1
RMAN-08500: channel ORA_DISK_1: SID=276 device type=DISKRMAN-08016: channel ORA_DISK_1: starting datafile backup set restore
RMAN-08089: channel ORA_DISK_1: specifying datafile(s) to restore from backup set
RMAN-08622: channel ORA_DISK_1: restoring all foreign files in backup piece
RMAN-08003: channel ORA_DISK_1: reading from backup piece /u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1
RMAN-08626: channel ORA_DISK_1: restoring foreign file 17 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl
RMAN-08626: channel ORA_DISK_1: restoring foreign file 16 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl
RMAN-08626: channel ORA_DISK_1: restoring foreign file 18 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl
RMAN-08626: channel ORA_DISK_1: restoring foreign file 19 to /home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl
RMAN-08627: channel ORA_DISK_1: foreign piece handle=/u01/app/oracle/product/23/db_1/dbs/034175h1_3_1_1
RMAN-08023: channel ORA_DISK_1: restored backup piece 1
RMAN-08180: channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
RMAN-08430: channel ORA_DISK_1: plugging file 4 for /home/oracle/pdb1/temp01.dbf
RMAN-08430: channel ORA_DISK_1: plugging file 16 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
RMAN-08430: channel ORA_DISK_1: plugging file 17 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
RMAN-08430: channel ORA_DISK_1: plugging file 18 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
RMAN-08430: channel ORA_DISK_1: plugging file 19 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/15/2025 21:09:57
RMAN-03009: failure of IRESTORE command on ORA_DISK_1 channel at 08/15/2025 21:09:57
ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container.
Help: https://docs.oracle.com/error-help/db/ora-65122/RMAN> exit
exitRecovery Manager complete.
[oracle@ora23ai ~]$ tail -500 /tmp/rman_debug1|more
DBGMISC:              ENTERED krmzgetxttpluginf [21:09:57.544]
DBGMISC:              EXITED krmzgetxttpluginf [21:09:57.544] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [21:09:57.544]
DBGMISC:              EXITED krmzgchid [21:09:57.544] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [21:09:57.545]
RMAN-08430: channel ORA_DISK_1: plugging file 16 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7
DBGMISC:              EXITED krmzlog [21:09:57.545] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [21:09:57.545]
DBGMISC:              EXITED krmzgetxttpluginf [21:09:57.545] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [21:09:57.545]
DBGMISC:              EXITED krmzgchid [21:09:57.545] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [21:09:57.545]
RMAN-08430: channel ORA_DISK_1: plugging file 17 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7
DBGMISC:              EXITED krmzlog [21:09:57.546] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [21:09:57.546]
DBGMISC:              EXITED krmzgetxttpluginf [21:09:57.546] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [21:09:57.546]
DBGMISC:              EXITED krmzgchid [21:09:57.546] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [21:09:57.546]
RMAN-08430: channel ORA_DISK_1: plugging file 18 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7
DBGMISC:              EXITED krmzlog [21:09:57.547] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [21:09:57.547]
DBGMISC:              EXITED krmzgetxttpluginf [21:09:57.547] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [21:09:57.547]
DBGMISC:              EXITED krmzgchid [21:09:57.547] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzlog [21:09:57.547]
RMAN-08430: channel ORA_DISK_1: plugging file 19 for /home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7
DBGMISC:              EXITED krmzlog [21:09:57.547] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgetxttpluginf [21:09:57.547]
DBGMISC:              EXITED krmzgetxttpluginf [21:09:57.548] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzgchid [21:09:57.548]
DBGMISC:              EXITED krmzgchid [21:09:57.548] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmztrc [21:09:57.548]
DBGPLSQL:              channel ORA_DISK_1: Calling doxttplug [21:09:57.548] (restore)
DBGMISC:              EXITED krmztrc [21:09:57.548] elapsed time [00:00:00:00.000]
DBGMISC:              ENTERED krmzxttplug [21:09:57.548]
DBGSQL:                ENTERED krmkosqlerrDBGSQL:                 TARGET> CREATE PLUGGABLE DATABASE PDB3 USING '/home/oracle/pdb1.xml'        SOURCE_FILE_NAME_CONVERT = ( '/home/oracle/pdb1/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/home/oracle/pdb1/data_D
-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7' , '/home/oracle/pdb
3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl'  ,  '/h
ome/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl' ) NOCOPY
DBGSQL:                    sqlcode = 65122
DBGSQL:                 error: ORA-65122: Pluggable database GUID conflicts with the GUID of an existing container. (krmkosqlerr)
DBGSQL:                 Help: https://docs.oracle.com/error-help/db/ora-65122/ (krmkosqlerr)
DBGSQL:                  (krmkosqlerr)
DBGSQL:                EXITED krmkosqlerr
DBGMISC:               krmkosqlexe called from file krmr.c, line 6837 has produced error 65122 at TARGET upon executing CREATE PLUGGABLE DATABASE PDB3 USING '/home/oracle/pdb1.xml'        SOURCE_FILE_NAME_CONVERT = ( '/hom
e/oracle/pdb1/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl'  ,  '/hom
e/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u
7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4
176gl' ) NOCOPY [21:09:57.588] (krmkosqlexe_impl)
DBGMISC:               krmksqlerror called from file krmr.c, line 6851, cx: 94508159065512 for TARGET [21:09:57.589]
DBGMISC:               Exception 6003 external exception thrown at krmkseqlerror@krmk3.c#5938 [21:09:57.589]
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 21:11:33 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb1.xml'        SOURCE_FILE_NAME_CONVERT = ( '/home/oracle/pdb1/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb1.xml'	     SOURCE_FILE_NAME_CONVERT = ( '/home/oracle/pdb1/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl'  ,	'/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl'  ,	'/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl' ) NOCOPY
*
ERROR at line 1:
ORA-65139: Mismatch between XML metadata file and data file
/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl for
value of fcpsb (108028799 in the plug XML file, 108009543 in the data file)
Help: https://docs.oracle.com/error-help/db/ora-65139/SQL> exit        
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ cp pdb1.xml pdb1-3.xml
[oracle@ora23ai ~]$ vi pdb1.xml
ta_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl' ) NOCOPY;
CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb1.xml'	     SOURCE_FILE_NAME_CONVERT = ( '/home/oracle/pdb1/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl'  ,	'/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl'  ,	'/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl' ) NOCOPY
*
ERROR at line 1:
ORA-65139: Mismatch between XML metadata file and data file
/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl for
value of fcpsb (108028799 in the plug XML file, 108009543 in the data file)
Help: https://docs.oracle.com/error-help/db/ora-65139/
SQL> exit        
Disconnected from Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10
[oracle@ora23ai ~]$ cp pdb1.xml pdb1-3.xml
[oracle@ora23ai ~]$ vi pdb1.xml
[oracle@ora23ai ~]$ sed -i s/108028799/108009543/g pdb1.xml
[oracle@ora23ai ~]$ grep 208009543 pdb1.xml
[oracle@ora23ai ~]$ grep 108009543 pdb1.xml<fcpsb>108009543</fcpsb><fcpsb>108009543</fcpsb><fcpsb>108009543</fcpsb><fcpsb>108009543</fcpsb>
[oracle@ora23ai ~]$ grep 108028799 pdb1.xml
[oracle@ora23ai ~]$ sqlplus / as sysdbaSQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Aug 15 21:16:10 2025
Version 23.6.0.24.10Copyright (c) 1982, 2024, Oracle.  All rights reserved.Connected to:
Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.6.0.24.10SQL> CREATE PLUGGABLE DATABASE PDB3 AS CLONE USING '/home/oracle/pdb1.xml'        SOURCE_FILE_NAME_CONVERT = ( '/home/oracle/pdb1/temp01.dbf' , '/home/oracle/pdb3/temp01.dbf'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-12_bp4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSTEM_FNO-16_gu4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-13_0c4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-SYSAUX_FNO-17_4s4176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-14_2a4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-UNDOTBS1_FNO-18_p14176gl'  ,  '/home/oracle/pdb1/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-15_4l4172u7' , '/home/oracle/pdb3/data_D-ORA23AI_I-2427465694_TS-JYC_FNO-19_ih4176gl' ) NOCOPY;Pluggable database created.SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO3 PDB3 			  MOUNTED4 PDB1 			  MOUNTED6 PDB2 			  READ WRITE NO
SQL> alter database pluggable pdb3 open;
alter database pluggable pdb3 open*
ERROR at line 1:
ORA-02231: missing or invalid option to ALTER DATABASE
Help: https://docs.oracle.com/error-help/db/ora-02231/SQL> alter pluggable database pdb3 open;Pluggable database altered.SQL> show pdbs;CON_ID CON_NAME			  OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------2 PDB$SEED			  READ ONLY  NO3 PDB3 			  READ WRITE NO4 PDB1 			  MOUNTED6 PDB2 			  READ WRITE NO
SQL> [END] 2025/8/15 21:21:24

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/918896.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/918896.shtml
英文地址,請注明出處:http://en.pswp.cn/news/918896.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

HarmonyOS 實戰:用 @Observed + @ObjectLink 玩轉多組件實時數據更新

摘要 在鴻蒙&#xff08;HarmonyOS&#xff09;應用開發中&#xff0c;實時數據更新是一個繞不開的話題&#xff0c;尤其是在你封裝了很多自定義組件、需要多個組件之間共享和同步數據的場景里。過去我們可能會依賴父子組件直接傳參或全局狀態管理&#xff0c;但這樣寫會讓代碼…

云原生俱樂部-雜談2

說實話&#xff0c;雜談系列可能會比較少&#xff0c;因為畢竟大部分時間都是上的線上&#xff0c;迄今為止也是&#xff0c;和雷老師與WH的交流不是很多。這個系列僅僅是我在做其他筆記部分無聊的時候來寫的&#xff0c;內容也沒有規劃過&#xff0c;隨想隨寫。倒不是時間太多…

波浪模型SWAN學習(1)——模型編譯與波浪折射模擬(Test of the refraction formulation)

SWAN模型編譯與波浪折射模擬&#xff08;Test of the refraction formulation&#xff09;編譯過程算例簡介參數文件文件頭&#xff08;HEADING&#xff09;計算區域和網格地形數據邊界條件物理模塊設置輸出設置執行參數模擬結果由于工作原因&#xff0c;最近開始接觸波浪模型&…

更換cmd背景圖片

打開cmd 右擊頂部&#xff0c;選擇設置選擇命令提示符&#xff0c;外觀選擇背景圖像路徑更改成自己的圖片&#xff0c;然后右下角保存 設置成功

基于RobustVideoMatting(RVM)進行視頻人像分割(torch、onnx版本)

發表時間&#xff1a;2021年8月25日 項目地址&#xff1a;https://peterl1n.github.io/RobustVideoMatting/ 論文閱讀&#xff1a;https://hpg123.blog.csdn.net/article/details/134409222 RVM是字節團隊開源的一個實時人像分割模型&#xff0c;基于LSTMConv實現&#xff0c;…

強制從不抱怨環境。

警世俗語&#xff1a;強者逆襲心法&#xff08;句句穿心&#xff09;環境是泥潭&#xff1f;那就讓它開出金蓮&#xff01; —— 抱怨是弱者的裹腳布&#xff0c;行動是強者的登天梯。爛泥里也能種出搖錢樹&#xff0c;關鍵看你敢不敢下手挖&#xff01;老天爺發牌爛&#xff1…

MC0439符號統計

碼蹄集OJ-符號統計 MC0439?符號統計 難度&#xff1a;黃金 時間限制&#xff1a;1 秒 占用內存&#xff1a;256 M 收藏 報錯 在華容道放曹的緊張時刻&#xff0c;小碼哥接到了一個看似微不足道卻至關重要的任務&#xff1a;解讀一條僅由小寫英文字母組成的神秘字符串 s&#…

Android Jetpack 系列(五)Room 本地數據庫實戰詳解

1. 簡介 在需要輕量級本地持久化的場景中&#xff0c;DataStore 是一個理想的選擇&#xff08;詳見《Android Jetpack 系列&#xff08;四&#xff09;DataStore 全面解析與實踐》&#xff09;。但當你面臨如下需求時&#xff0c;本地數據庫便顯得尤為重要&#xff1a; 復雜的…

C語言實現類似C#的格式化輸出

在C#中&#xff0c;格式化輸出可以使用索引占位符以及復合格式的占位符&#xff0c;可以不用關心后面參數是什么類型&#xff0c;使用起來非常方便&#xff0c;如下簡單的示例&#xff1a; Console.WriteLine("{2} {1} {0} {{{2}}}", "Hello, World!", 1,…

一人公司方法論

** 一人公司方法論 ** 那什么是一人公司&#xff1f; 字面的理解就是一個人運營的公司&#xff0c;但實際上它指代的是比較少的人運營的小公司&#xff0c;一般來說 1 ~ 3 個人運營的公司&#xff0c;也可以把它放到一人公司的范圍以內。其他一些形式&#xff0c;比如說一個人再…

Ceph CSI 鏡像刪除流程與 Trash 機制失效問題分析文檔

#作者&#xff1a;閆乾苓 文章目錄一、問題背景二、實際行為三、源碼分析四、分析與推論五、期望行為與建議優化六、結論一、問題背景 在生產環境中&#xff0c;為避免因誤操作導致的永久數據丟失&#xff0c;Ceph RBD 提供了 Trash 功能&#xff0c;允許將鏡像“軟刪除”至回…

.NET Framework 3.5 不原生支持PreApplicationStartMethod特性

.NET Framework 3.5 不原生支持PreApplicationStartMethod特性。這個特性是在 .NET Framework 4.0 中引入的&#xff0c;用于在應用程序啟動早期執行初始化邏輯。 在.NET 3.5 中&#xff0c;如果你需要實現類似的 “應用啟動時自動注冊模塊” 功能&#xff0c;需要通過手動配置…

智能巡檢技術淺析

從機載智能硬件到深度學習算法&#xff0c;從實時邊緣計算到數字孿生平臺&#xff0c;無人機AI智能巡檢通過多模態感知、自主決策和持續進化&#xff0c;實現從"被動檢查"到"主動預防"的跨越式發展。機載智能硬件邊緣計算與機載AI芯片當代先進巡檢無人機已…

【圖像算法 - 11】基于深度學習 YOLO 與 ByteTrack 的目標檢測與多目標跟蹤系統(系統設計 + 算法實現 + 代碼詳解 + 擴展調優)

前言 詳細視頻介紹 【圖像算法 - 11】基于深度學習 YOLO 與 ByteTrack 的目標檢測與多目標跟蹤系統&#xff08;系統設計 算法實現 代碼詳解 擴展調優&#xff09;在計算機視覺應用中&#xff0c;目標檢測與多目標跟蹤的結合是實現智能視頻分析的關鍵。本文基于 YOLO 檢測模…

AI加持下的智能路由監控:Amazon VPC Direct Connect實戰指南

> 一次流量突增引發的生產事故,如何催生出融合流日志、機器學習與自動化告警的智能監控體系 深夜2點,電商平臺運維負責人李明的手機瘋狂報警——北美用戶下單量斷崖式下跌。他緊急登錄系統,發現跨境專線延遲飆升至2000ms。**經過3小時的排查**,罪魁禍首竟是新部署的CDN…

具身智能競速時刻,百度百舸提供全棧加速方案

2025年&#xff0c;全球具身智能賽道迎來快速發展期&#xff0c;技術方向日益清晰。每一家企業都面臨著同樣的核心命題&#xff1a;如何將前沿的模型能力&#xff0c;轉化為在真實世界各類場景中可規模化應用落地的機器人產品&#xff1f;這背后&#xff0c;是研發團隊對模型迭…

JavaScript 壓縮與混淆實戰:Terser 命令行詳解

使用 Terser 壓縮 JavaScript 文件&#xff08;基礎 現代語法問題解決&#xff09; 在前端開發中&#xff0c;隨著業務復雜度增加&#xff0c;JavaScript 文件體積越來越大。 文件大帶來的問題&#xff1a; 加載慢&#xff1a;文件越大&#xff0c;瀏覽器下載和解析時間越長…

【數據結構初階】--排序(三):冒泡排序、快速排序

&#x1f618;個人主頁&#xff1a;Cx330? &#x1f440;個人簡介&#xff1a;一個正在努力奮斗逆天改命的二本覺悟生 &#x1f4d6;個人專欄&#xff1a;《C語言》《LeetCode刷題集》《數據結構-初階》 前言&#xff1a;在上篇博客的學習中&#xff0c;我們掌握了直接選擇排序…

名詞概念:什么是尾部誤差?

“尾部誤差”就是指誤差分布在兩端的那一小撮、但數值特別大的誤差——也就是離中心&#xff08;均值/中位數&#xff09;很遠的“極端樣本”的誤差。對應統計學里的“分布尾部”&#xff08;tails&#xff09;。通俗點&#xff1a;大多數樣本誤差都很小&#xff0c;但總會有少…

記對外國某服務器的內網滲透

本專欄是筆者的網絡安全學習筆記&#xff0c;一面分享&#xff0c;同時作為筆記 文章目錄前文鏈接前言上線CS上線rdp后滲透信息收集SMB Pth攻擊權限維持魔幻上線提權關Windows Defenderend前文鏈接 WAMP/DVWA/sqli-labs 搭建burpsuite工具抓包及Intruder暴力破解的使用目錄掃描…