一次问题:Oracle 12C DB因为主备库server数据文件所在路径不一致,在主库新增datafile后报错: Thu Mar 22 10:36:06 2019 Errors in file /u01/app/oracle/diag/rdbms/mesdbs/MESDB/trace/MESDB_ora_93029.trc: ORA-10879: error signaled in parallel recovery slave ORA-00283: recovery session canceled due to errors ORA-01111: name for data file 87 is unknown - rename to correct file ORA-01110: data file 87: '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00087' ORA-01157: cannot identify/lock data file 87 - see DBWR trace file ORA-01111: name for data file 87 is unknown - rename to correct file ORA-01110: data file 87: '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00087' 通常这类Case(Oracle11G及之前版本),直接在standby中执行以下步骤即可: SQL> alter system set standby_file_management='MANUAL'; SQL> alter database create datafile '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00087' as '/data/MES DB /qmsdb/qms_data06.dbf;
SQL> alter system set standby_file_management='AUTO'; SQL> alter database recover managed standby database using current logfile disconnect; 但在12C中执行却报错了: ORA-01516 : nonexistent log file, datafile, or tempfile "/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00087" 注: 这里 dbs 目录中 其实 是不存在文件,但并不影响 , alter database create datafile XXX as XXX 这个执行仅仅只是修改数据字典( control file) 这是为什么呢? 在文档中看到While adding datafiles in Standby CDB ORA-01516 (文档 ID 2215333.1)
另外12C中move,online等操作类似 在另一篇官方文档中有看到类似datafile的online操作,也 需要根据v$datafile.CON_ID 结合V$pdbs.CON_ID查出对应的PDB容器数据,再登录PDB执行操作
Although the recovery from the CDB recognizes the datafile (in example, datafile #10), when bringing the datafile online, the CDB does not recognize it.
As per the architecture of 12c CDB database, online and offline commands must be execute from the same container in which datafile resides as v$datafile and dba_data_files only have the entries of the datafiles belonging to that container.
In this case, the datafile belongs to a PDB and thus the datafile must be onlined after connecting to the PDB.
编辑推荐:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- 关于多租户架构
关于多租户架构
26-03-03 - oracle数据库备份之exp增量备份
oracle数据库备份之exp增量备份
26-03-03 - 在Oracle DG Standby库上启用flashback database功能
- Oracle切换undo表空间操作步骤
Oracle切换undo表空间操作步骤
26-03-03 - Oracle EBS 企业税改方案(一)-业务需求整理及基础设置篇
Oracle EBS 企业税改方案(一)-业务需求整理及基础设置篇
26-03-03 - Oracle EBS 企业税改方案(二)-未结销售订单
Oracle EBS 企业税改方案(二)-未结销售订单
26-03-03 - Oracle EBS 企业税改方案(三)-未结采购单据及部分AP Invoices税率调整
- 《三国杀》开发商游卡新作《元夜十二谈》公布,号称“新志怪民俗策略 RPG”
- 6-oracle_表关联
6-oracle_表关联
26-03-03 - 微星 RTX 5070《魔兽世界:至暗之夜》虚空限定版 OC 显卡上市,5999 元
