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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 19c standby 建立資料檔案報錯ORA-01111Oracle
- oracle 11g data guard維護Oracle
- oracle ORA-01189 ORA-01110(控制檔案建立報錯)Oracle
- oracle dg庫資料檔案建立失敗ORA-01111Oracle
- Oracle Data Pump 11G 資料泵元件Oracle元件
- DATA GUARD主庫丟失資料檔案的恢復(3)
- DATA GUARD主庫丟失資料檔案的恢復(1)
- DATA GUARD主庫丟失資料檔案的恢復(2)
- Oracle Data Guard Broker元件Oracle元件
- Oracle Data Guard簡介Oracle
- 1 關於 Oracle Data GuardOracle
- 2 Oracle Data Guard 安裝Oracle
- 1 Oracle Data Guard Broker 概念Oracle
- Oracle Data Guard和Broker概述Oracle
- 4.1.6 Oracle Restart 與 Oracle Data Guard 整合OracleREST
- oracle ORA-01157: cannot identify/lock data file 64OracleIDE
- 8 Oracle Data Guard Broker 屬性Oracle
- 9 Oracle Data Guard 故障診斷Oracle
- 【ASK_ORACLE】Oracle Data Guard(一)DG架構Oracle架構
- 【問題處理】ORA-01157 ORA-01110
- ORACLE RAC ASM資料檔案遷移OMF檔案報錯ORA-01276解決OracleASM
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- 2 開始實用 Oracle Data GuardOracle
- 19 Oracle Data Guard 相關檢視Oracle
- 【Oracle】表空間誤刪除導致startup啟動時提示ORA-01110和ORA-01157錯誤Oracle
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- 6 Oracle Data Guard Protection Modes 保護模式Oracle模式
- 15 Oracle Data Guard Scenarios 保護場景OracleiOS
- A Oracle Data Guard Broker 升級和降級Oracle
- Oracle 表空間增加檔案Oracle
- Oracle 11g 重新建立控制檔案Oracle
- Oracle 12.2 How to Generate AWRs in Active Data Guard Standby DatabasesOracleDatabase
- Oracle Data Guard Feature 12cR2系列(二)Oracle
- Oracle Data Guard Feature 12cR2系列(一)Oracle
- Oracle 資料檔案回收Oracle
- 【資料庫資料恢復】Oracle資料庫檔案出現壞塊報錯的資料恢復案例資料庫資料恢復Oracle
- ORACLE for windows 審計檔案xml檔案過多導致資料庫啟動報錯ORA-09925OracleWindowsXML資料庫
- 18 與Oracle Data Guard 相關的SQL語句OracleSQL