Oracle 12c 与 Data-guard,创建 PDB 失败

标签 oracle oracle12c

有两个带有 data-guard 的数据库 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

关于Oracle 12c 与 Data-guard,创建 PDB 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42588455/

相关文章:

java - ClassNotFoundException : oracle. jdbc.OracleDriver

oracle - 从选择查询中删除重复的 ID

Oracle:合并行

oracle - PL SQL 变量的值需要清除或重置为默认值

c# - 引用 NHibernate 时出错(从 'IdentitySelectString' 上的 'NHibernate.Dialect.Oracle10gDialect' 获取值时出错。)

java - Oracle AQ java实现入队/出队

linux - 无法使用 sqlplus : ORA-12154: TNS:could not resolve the connect identifier specified 连接到数据库

oracle - 插入带有标识列的 Oracle 表时如何使用 %ROWTYPE?

Oracle - 如何使用动态绑定(bind)参数定义动态 SQL?

database - 审计 dml 语句的 oracle 模式