带数据保护的Oracle 12c,创建PDB失败
有两个数据库orcl1和orcl2带有数据保护,数据库名称为“orcl”,主数据库为orcl1。数据文件路径都是“/oracle/orcl/”。我尝试在orcl1中创建一个新的PDB“pdb1”。像命令一样使用带数据保护的Oracle 12c,创建PDB失败,oracle,oracle12c,Oracle,Oracle12c,有两个数据库orcl1和orcl2带有数据保护,数据库名称为“orcl”,主数据库为orcl1。数据文件路径都是“/oracle/orcl/”。我尝试在orcl1中创建一个新的PDB“pdb1”。像命令一样使用 create pluggable database pdb1 admin user oracle identified by oracle default tablespace pdb1 datafile '/oracle/orcl/pdb1/pdb101.dbf' size 2
create pluggable database pdb1 admin user oracle identified by oracle
default tablespace pdb1 datafile '/oracle/orcl/pdb1/pdb101.dbf' size 20g autoextend on
path_prefix = '/oracle/pdb1/'
file_name_convert =('/oracle/orcl/pdbseed/', '/oracle/orcl/pdb1/');
然后是ora-65005,缺少或无效的文件名模式文件--/oracle/orcl2/pdbseed/temp01.dbf。实际上它应该是“/oracle/orcl/pdbseed/temp01.dbf”。参数db\u file\u name\u convert都为空。如何解决此错误或在这种情况下成功创建PDB?尝试更改命令:
create pluggable database pdb1 admin user oracle identified by oracle
default tablespace pdb1 datafile '/oracle/orcl/pdb1/pdb101.dbf' size 20g autoextend on
path_prefix = '/oracle/pdb1/'
file_name_convert =('/oracle/orcl/pdbseed/', '/oracle/orcl/pdb1/',
'/oracle/orcl2/pdbseed/', '/oracle/orcl/pdb1/'); -- wherever the dg stores its datafiles