Oracle 11g Data Guard 增加資料檔案報錯:ORA-01111、ORA-01110、ORA-01157
Oracle 11g Data Guard 增加資料檔案時報錯,在主庫執行的語句如下:
SQL> alter tablespace TS_MIS_DATA add datafile '/oradata1/misdb/TS_MIS_DATA_32.dbf' SIZE 34351349760 AUTOEXTEND OFF;
SQL> show parameter standby
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
standby_archive_dest string ?/dbs/arch
standby_file_management string AUTO
SQL> show parameter convert
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string misdbdg, misdb
log_file_name_convert string /arch/arch1/misdbdg, /arch/arc
h1/misdb
備庫 ALERT 日誌中的報錯如下:
Tue Feb 09 17:52:30 2016
Errors in file /u01/app/oracle/diag/rdbms/misdbdg/misdb/trace/misdb_dbw0_16033.trc:
ORA-01186: file 43 failed verification tests
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
File 43 not verified due to error ORA-01157
MRP0: Background Media Recovery terminated with error 1111
Errors in file /u01/app/oracle/diag/rdbms/misdbdg/misdb/trace/misdb_pr00_26503.trc:
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
Managed Standby Recovery not using Real Time Apply
Slave exiting with ORA-1111 exception
檢查備庫檔案系統的許可權,發現新掛載的盤沒有授權,給指定目錄授權
chown -R oracle.dba oradata1
授權後,在備庫進行日誌應用,但依舊報錯
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
Managed Standby Recovery not using Real Time Apply
Slave exiting with ORA-1111 exception
使用 ALTER DATABASE CREATE DATAFILE 命令將報錯的資料檔案改為正確的資料檔案
在備庫中執行如下命令:
alter database create datafile '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043' as '/oradata1/misdbdg/TS_MIS_DATA_31.dbf';
CREATE DATAFILE 命令的含義是根據控制檔案建立一個新的資料檔案,來代替原來的資料檔案,之後再透過應用日誌來對這個資料檔案進行介質恢復。
--實時日誌應用
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
錯誤被修復,ALERT 日誌中的內容如下:
Media Recovery Log /arch/arch1/misdbdg/1_17845_827421642.dbf
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION
Recovery deleting file #43:'/oradata1/misdbdg/TS_MIS_DATA_31.dbf' from controlfile.
Recovery created file /oradata1/misdbdg/TS_MIS_DATA_31.dbf
Successfully added datafile 43 to media recovery
SQL> alter tablespace TS_MIS_DATA add datafile '/oradata1/misdb/TS_MIS_DATA_32.dbf' SIZE 34351349760 AUTOEXTEND OFF;
SQL> show parameter standby
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
standby_archive_dest string ?/dbs/arch
standby_file_management string AUTO
SQL> show parameter convert
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string misdbdg, misdb
log_file_name_convert string /arch/arch1/misdbdg, /arch/arc
h1/misdb
Tue Feb 09 17:52:30 2016
Errors in file /u01/app/oracle/diag/rdbms/misdbdg/misdb/trace/misdb_dbw0_16033.trc:
ORA-01186: file 43 failed verification tests
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
File 43 not verified due to error ORA-01157
MRP0: Background Media Recovery terminated with error 1111
Errors in file /u01/app/oracle/diag/rdbms/misdbdg/misdb/trace/misdb_pr00_26503.trc:
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
Managed Standby Recovery not using Real Time Apply
Slave exiting with ORA-1111 exception
chown -R oracle.dba oradata1
授權後,在備庫進行日誌應用,但依舊報錯
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01111: name for data file 43 is unknown - rename to correct file
ORA-01110: data file 43: '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043'
Managed Standby Recovery not using Real Time Apply
Slave exiting with ORA-1111 exception
使用 ALTER DATABASE CREATE DATAFILE 命令將報錯的資料檔案改為正確的資料檔案
在備庫中執行如下命令:
alter database create datafile '/u01/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00043' as '/oradata1/misdbdg/TS_MIS_DATA_31.dbf';
CREATE DATAFILE 命令的含義是根據控制檔案建立一個新的資料檔案,來代替原來的資料檔案,之後再透過應用日誌來對這個資料檔案進行介質恢復。
--實時日誌應用
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
錯誤被修復,ALERT 日誌中的內容如下:
Media Recovery Log /arch/arch1/misdbdg/1_17845_827421642.dbf
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION
Recovery deleting file #43:'/oradata1/misdbdg/TS_MIS_DATA_31.dbf' from controlfile.
Recovery created file /oradata1/misdbdg/TS_MIS_DATA_31.dbf
Successfully added datafile 43 to media recovery
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29108064/viewspace-2153754/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DATA GUARD手工管理資料檔案
- Oracle 11g Data GuardOracle
- Oracle 19c standby 建立資料檔案報錯ORA-01111Oracle
- Oracle 11g Data Guard Enabling Active Data GuardOracle
- oracle 11g data guard維護Oracle
- Oracle Data Guard 主庫歸檔檔案刪除策略Oracle
- Oracle Data Guard 主庫 歸檔檔案 刪除策略Oracle
- ORACLE 11G Data Guard 角色轉換Oracle
- 【DataGuard】Oracle 11g物理Data Guard之Snapshot Standby資料庫功能Oracle資料庫
- Oracle Data Guard 主庫 歸檔檔案 刪除策略--續Oracle
- Oracle 11g RAC Data Guard 物理standby 建立Oracle
- 搭建Oracle Data Guard 11g(物理備用)Oracle
- DATA GUARD主庫丟失資料檔案的恢復(2)
- DATA GUARD主庫丟失資料檔案的恢復(3)
- DATA GUARD主庫丟失資料檔案的恢復(1)
- 【轉】【DataGuard】Oracle 11g物理Data Guard之Snapshot Standby資料庫功能Oracle資料庫
- oracle data guard!!Oracle
- 【轉載】Oracle Data Guard 主庫 歸檔檔案 刪除策略Oracle
- Oracle 11g Data Guard 使用duplicate from active databaseOracleDatabase
- Data Guard 主端OFFLINE資料檔案和表空間
- oracle10g data guard(dg)__主庫重新命名資料檔案_在備庫上同步重新命名資料檔案Oracle
- 【轉載】Oracle Data Guard 備庫 歸檔檔案 刪除指令碼Oracle指令碼
- 11g data guard 新特性
- 介紹ORACLE DATA GUARD——DATA GUARD概念和管理Oracle
- Oracle Data Guard配置Oracle
- oracle dg庫資料檔案建立失敗ORA-01111Oracle
- Oracle 11g Data Guard (physical standby - active dataguard) [final]Oracle
- data_guard 雙standby pfile 檔案配置
- startup 資料庫時報出ORA-01157、ORA-01110的錯誤資料庫
- Oracle 11g Data Guard 備庫歸檔日誌清理指令碼(保留一週歸檔)Oracle指令碼
- oracle ORA-01189 ORA-01110(控制檔案建立報錯)Oracle
- Data Guard無法同步報ORA-16047錯
- Data guard 中 alert 日誌報錯 "FAL archive failed"HiveAI
- 物理data guard備standby庫的時候報錯。
- oracle9204(9i)_dg(data guard)_重新命名主庫資料檔案_指南_轉摘官檔Oracle
- 總結11g 物理data guard
- 資料庫報ORA-01110錯誤資料庫
- data guard中增加與刪除主備資料庫中的聯機重做日誌與備重做日誌檔案資料庫