2019独角兽企业重金招聘Python工程师标准>>>
查看trace 文件:
MRP0: Background Managed Standby Recovery process started (amls)
started logmerger process
Sun Jan 20 07:55:53 2019
Managed Standby Recovery starting Real Time Apply
MRP0: Background Media Recovery terminated with error 1111
Errors in file /crbank/amls/app/product/database/diag/rdbms/lamls/amls/trace/amls_pr00_9055.trc:
ORA-01111: 数据文件 48 名称未知 - 请重命名以更正文件
ORA-01110: 数据文件 48: '/crbank/amls/app/product/database/11g/dbs/UNNAMED00048'
ORA-01157: 无法标识/锁定数据文件 48 - 请参阅 DBWR 跟踪文件
ORA-01111: 数据文件 48 名称未知 - 请重命名以更正文件
ORA-01110: 数据文件 48: '/crbank/amls/app/product/database/11g/dbs/UNNAMED00048'
Managed Standby Recovery not using Real Time Apply
Slave exiting with ORA-1111 exception
Errors in file /crbank/amls/app/product/database/diag/rdbms/lamls/amls/trace/amls_pr00_9055.trc:
ORA-01111: 数据文件 48 名称未知 - 请重命名以更正文件
ORA-01110: 数据文件 48: '/crbank/amls/app/product/database/11g/dbs/UNNAMED00048'
ORA-01157: 无法标识/锁定数据文件 48 - 请参阅 DBWR 跟踪文件
ORA-01111: 数据文件 48 名称未知 - 请重命名以更正文件
ORA-01110: 数据文件 48: '/crbank/amls/app/product/database/11g/dbs/UNNAMED00048'
Recovery Slave PR00 previously exited with exception 1111
MRP0: Background Media Recovery process shutdown (amls)
可以很清楚看到数据库无法获取48#文件信息,OS查看确实没有此文件,由于是备库,备库创建文件路径由convert参数指定,查看备库 确实没有设置convert参数导致,主库新增文件 备库无法自动创建导致出错。
解决方法:
alter system set standby_file_management=manual;
alter database create datafile '/crbank/amls/app/product/database/11g/dbs/UNNAMED00048' as '/crbank/amls/oradata/amls/aml_data04_07.dbf';
alter system set standby_file_management=auto;
alter system set db_file_name_convert='/crbank/amls/data/amls/','/crbank/amls/oradata/amls/' scope=spfile;
alter system set log_file_name_convert='/crbank/amls/data/amls/','/crbank/amls/oradata/amls/' scope=spfile;
最后重启库生效!