查看trace 文件:數據庫
MRP0: Background Managed Standby Recovery process started (amls)app
started logmerger processit
Sun Jan 20 07:55:53 2019io
Managed Standby Recovery starting Real Time Applyfile
MRP0: Background Media Recovery terminated with error 1111exception
Errors in file /crbank/amls/app/product/database/diag/rdbms/lamls/amls/trace/amls_pr00_9055.trc:方法
ORA-01111: 數據文件 48 名稱未知 - 請重命名以更正文件im
ORA-01110: 數據文件 48: '/crbank/amls/app/product/database/11g/dbs/UNNAMED00048'error
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;
最後重啓庫生效!