有两个数据库orcl1& orcl2有数据保护,db_name是' orcl',主数据库是orcl1。数据文件路径都是' / oracle / orcl /'。我尝试创建一个新的PDB' pdb1'在orcl1。使用
之类的命令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_file_name_convert都是空的。如何解决此错误或在这种情况下成功创建PDB?
答案 0 :(得分:0)
尝试更改命令:
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