Issue: Facing below service conflict error while creating new PDB (Pluggable database)
Error:
ORA-65149: PDB name conflicts with existing service name in the CDB or the PDB
SYMPTOMS:
Error ORA-65149 occurred when creating a pdb:
SQL> CREATE PLUGGABLE DATABASE ABC AS CLONE USING '/u01/app/oracle/ABC.xml';
CREATE PLUGGABLE DATABASE ABC AS CLONE USING '/u01/app/oracle/ABC.xml'
*
ERROR at line 1:
ORA-65149: PDB name conflicts with existing service name in the CDB or the PDB
Fix:
Verify existing services on CDB
SQL>set lines 300
set pages 200
col name for a30;
col PDB for a30;
select SERVICE_ID,NAME,PDB from cdb_SERVICES;
SERVICE_ID NAME PDB
---------- -------------------- ---------
1 SYS$BACKGROUND CDB$ROOT
2 SYS$USERS CDB$ROOT
5 NEWCDBXDB CDB$ROOT
6 NEWCDB CDB$ROOT
3 ORADBXDB PDB1
4 ORADB PDB1
5 DB1DB1XDB PDB1
6 DB1DB1 PDB1
7 DB1DMOXDB PDB1
8 DB1DMO PDB1
9 DB1 PDB1
11 PDB1XDB PDB1
1 PDB1 PDB1
3 ORADBXDB PDB2
4 ORADB PDB2
5 DB1DB1XDB PDB2
6 DB1DB1 PDB2
7 DB1DMOXDB PDB2
8 DB1DMO PDB2
9 DB1 PDB2
1 PDB2 PDB2
3 ORADBXDB PDB3
4 ORADB PDB3
5 DB1DB1XDB PDB3
6 DB1DB1 PDB3
7 DB1DMOXDB PDB3
8 DB1DMO PDB3
9 DB1 PDB3
11 ABC PDB3
12 PDB3XDB PDB3
1 PDB3 PDB3
As per above output ABC service already exists under PDB3 database.
To fix service conflict issue,Connect to PDB3 database and delete ABC service.
SQL> alter session set container=PDB3;
Session altered.
SQL> exec dbms_service.delete_service('ABC');
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
Now verify services and create PDB
SQL>set lines 300
set pages 200
col name for a30;
col PDB for a30;
select SERVICE_ID,NAME,PDB from cdb_SERVICES;
SERVICE_ID NAME PDB
---------- -------------------- ---------
1 SYS$BACKGROUND CDB$ROOT
2 SYS$USERS CDB$ROOT
5 NEWCDBXDB CDB$ROOT
6 NEWCDB CDB$ROOT
3 ORADBXDB PDB1
4 ORADB PDB1
5 DB1DB1XDB PDB1
6 DB1DB1 PDB1
7 DB1DMOXDB PDB1
8 DB1DMO PDB1
9 DB1 PDB1
11 PDB1XDB PDB1
1 PDB1 PDB1
3 ORADBXDB PDB2
4 ORADB PDB2
5 DB1DB1XDB PDB2
6 DB1DB1 PDB2
7 DB1DMOXDB PDB2
8 DB1DMO PDB2
9 DB1 PDB2
1 PDB2 PDB2
3 ORADBXDB PDB3
4 ORADB PDB3
5 DB1DB1XDB PDB3
6 DB1DB1 PDB3
7 DB1DMOXDB PDB3
8 DB1DMO PDB3
9 DB1 PDB3
12 PDB3XDB PDB3
1 PDB3 PDB3
SQL> CREATE PLUGGABLE DATABASE ABC AS CLONE USING '/u01/app/oracle/ABC.xml';
Pluggable database created.
Oracle Support Doc for reference:
ORA-65149: PDB Name Conflicts With Existing Service Name (Doc ID 2459056.1)
Error:
ORA-65149: PDB name conflicts with existing service name in the CDB or the PDB
SYMPTOMS:
Error ORA-65149 occurred when creating a pdb:
SQL> CREATE PLUGGABLE DATABASE ABC AS CLONE USING '/u01/app/oracle/ABC.xml';
CREATE PLUGGABLE DATABASE ABC AS CLONE USING '/u01/app/oracle/ABC.xml'
*
ERROR at line 1:
ORA-65149: PDB name conflicts with existing service name in the CDB or the PDB
Fix:
Verify existing services on CDB
SQL>set lines 300
set pages 200
col name for a30;
col PDB for a30;
select SERVICE_ID,NAME,PDB from cdb_SERVICES;
SERVICE_ID NAME PDB
---------- -------------------- ---------
1 SYS$BACKGROUND CDB$ROOT
2 SYS$USERS CDB$ROOT
5 NEWCDBXDB CDB$ROOT
6 NEWCDB CDB$ROOT
3 ORADBXDB PDB1
4 ORADB PDB1
5 DB1DB1XDB PDB1
6 DB1DB1 PDB1
7 DB1DMOXDB PDB1
8 DB1DMO PDB1
9 DB1 PDB1
11 PDB1XDB PDB1
1 PDB1 PDB1
3 ORADBXDB PDB2
4 ORADB PDB2
5 DB1DB1XDB PDB2
6 DB1DB1 PDB2
7 DB1DMOXDB PDB2
8 DB1DMO PDB2
9 DB1 PDB2
1 PDB2 PDB2
3 ORADBXDB PDB3
4 ORADB PDB3
5 DB1DB1XDB PDB3
6 DB1DB1 PDB3
7 DB1DMOXDB PDB3
8 DB1DMO PDB3
9 DB1 PDB3
11 ABC PDB3
12 PDB3XDB PDB3
1 PDB3 PDB3
As per above output ABC service already exists under PDB3 database.
To fix service conflict issue,Connect to PDB3 database and delete ABC service.
SQL> alter session set container=PDB3;
Session altered.
SQL> exec dbms_service.delete_service('ABC');
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
Now verify services and create PDB
SQL>set lines 300
set pages 200
col name for a30;
col PDB for a30;
select SERVICE_ID,NAME,PDB from cdb_SERVICES;
SERVICE_ID NAME PDB
---------- -------------------- ---------
1 SYS$BACKGROUND CDB$ROOT
2 SYS$USERS CDB$ROOT
5 NEWCDBXDB CDB$ROOT
6 NEWCDB CDB$ROOT
3 ORADBXDB PDB1
4 ORADB PDB1
5 DB1DB1XDB PDB1
6 DB1DB1 PDB1
7 DB1DMOXDB PDB1
8 DB1DMO PDB1
9 DB1 PDB1
11 PDB1XDB PDB1
1 PDB1 PDB1
3 ORADBXDB PDB2
4 ORADB PDB2
5 DB1DB1XDB PDB2
6 DB1DB1 PDB2
7 DB1DMOXDB PDB2
8 DB1DMO PDB2
9 DB1 PDB2
1 PDB2 PDB2
3 ORADBXDB PDB3
4 ORADB PDB3
5 DB1DB1XDB PDB3
6 DB1DB1 PDB3
7 DB1DMOXDB PDB3
8 DB1DMO PDB3
9 DB1 PDB3
12 PDB3XDB PDB3
1 PDB3 PDB3
SQL> CREATE PLUGGABLE DATABASE ABC AS CLONE USING '/u01/app/oracle/ABC.xml';
Pluggable database created.
Oracle Support Doc for reference:
ORA-65149: PDB Name Conflicts With Existing Service Name (Doc ID 2459056.1)
No comments:
Post a Comment