Oracle standby庫的ORA-01274問題

在standby數據庫中,初始化參數STANDBY_FILE_MANAGEMENT設置爲MANUAL環境中,當主庫新建一個數據文件時,它MRP進程中止,後臺介質恢復工作失敗。這是因爲standby數據庫不能自動創建新文件,參數配置決定了。

在alert.log中,日誌信息如下:

Thu Apr 11 16:44:37 2013
Primary database is in MAXIMUM PERFORMANCE mode
RFS[4]: Successfully opened standby log 51: '+VG1/lbesup/standby_redo51.log'
Thu Apr 11 16:44:40 2013
Media Recovery Log +VG1/lbesupg/archivelog/2013_04_11/thread_1_seq_16122.1412.812479477
File #12 added to control file as 'UNNAMED00012' because
the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL
The file should be manually created to continue.
Errors with log +VG1/lbesupg/archivelog/2013_04_11/thread_1_seq_16122.1412.812479477
MRP0: Background Media Recovery terminated with error 1274
Thu Apr 11 16:44:41 2013
Errors in file /u01/app/oracle/admin/lbesup/bdump/lbesup_mrp0_10220.trc:
ORA-01274: cannot add datafile '+VG1/lbesup/lb_7881_data01.dbf' - file could not be created
Some recovered datafiles maybe left media fuzzy
Media recovery may continue but open resetlogs may fail
Thu Apr 11 16:44:43 2013
Errors in file /u01/app/oracle/admin/lbesup/bdump/lbesup_mrp0_10220.trc:
ORA-01274: cannot add datafile '+VG1/lbesup/lb_7881_data01.dbf' - file could not be created
Thu Apr 11 16:44:43 2013
MRP0: Background Media Recovery process shutdown (lbesup)

解決方法很簡單,很簡單。

SQL> alter database create datafile '/u01/app/oracle/product/10.2.0/db/dbs/UNNAMED00012' as '+VG1/lbesup/lb_7881_data01.dbf';

Database altered.

然後啓用恢復進程,問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章