簡體   English   中英

帶有Data-guard的Oracle 12c,創建PDB失敗

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

有兩個數據庫orcl1和orcl2,數據保護,db_name是'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 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?

嘗試更改命令:

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