简体   繁体   English

带有Data-guard的Oracle 12c,创建PDB失败

[英]Oracle 12c with Data-guard, create PDB failed

There are two databases orcl1&orcl2 with data-guard, db_name is 'orcl', primary db is orcl1. 有两个数据库orcl1和orcl2,数据保护,db_name是'orcl',主数据库是orcl1。 The datafiles path both are '/oracle/orcl/'. 数据文件路径都是'/ oracle / orcl /'。 I try to create a new PDB 'pdb1' in orcl1. 我尝试在orcl1中创建一个新的PDB'pdb1'。 Use command like 使用命令如

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/');

And then ora-65005, missing or invalid file name pattern file ----/oracle/orcl2/pdbseed/temp01.dbf. 然后是ora-65005,缺少或无效的文件名模式文件---- / oracle / orcl2 / pdbseed / temp01.dbf。 Actually it should be '/oracle/orcl/pdbseed/temp01.dbf'. 实际上它应该是'/oracle/orcl/pdbseed/temp01.dbf'。 Parameter db_file_name_convert both are empty.How to solve this error or create PDB successfully in this situation? 参数db_file_name_convert都是空的。如何解决此错误或在这种情况下成功创建PDB?

Try changing the command: 尝试更改命令:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM