Checking for Oracle archive log corruption [ID 1268590.1]
日誌挖掘可以驗證歸檔日誌是否損壞。
Goal
EXTRACT is hung reading an archive log. OGG trace and o/s truss outputs show EXTRACT repeatedly accessing the next archive log but not progressing or generating an error. How can I verify that the log is not corrupted?Solution
Try processing that archive log using logminer and see if logminer can access the file header info:SQL> exec
dbms_logmnr.add_logfile('
SQL> exec dbms_logmnr.start_logmnr;
SQL> select count(1) from v$logmnr_contents;
When the archive file is good, you will be able to execute logmnr and select from the view:
os> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Dec 7 09:51:58 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exec dbms_logmnr.add_logfile('/rdbms/oracle/ora1022i/64/admin/ora1022a/arch/1_mf_1_879_56dggmtf_.arc');
PL/SQL procedure successfully completed.
SQL> exec dbms_logmnr.start_logmnr;
PL/SQL procedure successfully completed.
SQL> select count(1) from v$logmnr_contents;
COUNT(1)
----------
18466
If the archive is bad, logmnr will not be able to access it:
SQL> exec dbms_logmnr.add_logfile('/rdbms/oracle/ora1022i/64/admin/ora1022a/arch/
wqbsqa01_652800616_1_4265.arc');
BEGIN dbms_logmnr.add_logfile('/rdbms/oracle/ora1022i/64/admin/ora1022a/arch/wqbsqa01_652800616_1_4265.arc'); END;
*
ERROR at line 1:
ORA-01284: file
/rdbms/oracle/ora1022i/64/admin/ora1022a/arch/wqbsqa01_652800616_1_4265.arc cannot be opened
ORA-00308: cannot open archived log
'/rdbms/oracle/ora1022i/64/admin/ora1022a/arch/wqbsqa01_652800616_1_4265.arc'
ORA-27047: unable to read the header block of file
OSD-04001: invalid logical block size (OS 3899694081)
ORA-06512: at "SYS.DBMS_LOGMNR", line 68
ORA-06512: at line 1[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1057161/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 隱含引數 : _allow_resetlogs_corruptionOracle
- oracle archive log 歸檔日誌OracleHive
- 使用LOGMNR工具分析Oracle Redo Log和Archive Log教程Oracle RedoHive
- Enabling Archive Log mode in OracleHiveOracle
- Oracle archive log 歸檔日誌管理OracleHive
- oracle 引數LOG_ARCHIVE_FORMAT 的格式OracleHiveORM
- 5 forms of Oracle CorruptionORMOracle
- Oracle OCP 1Z0 053 Q178(Redo Log Corruption)Oracle
- log_archive_dest與log_archive_dest_n區別Hive
- Oracle 10G的log_archive_format引數Oracle 10gHiveORM
- 【轉】詳解log_archive_dest與log_archive_dest_n區別Hive
- 關於 log_archive_dest與log_archive_dest_n a的區別Hive
- Oracle8.1.7.0 LOG_ARCHIVE_MIN_SUCCEED_DEST 不起作用 ?OracleHive
- [oracle]log_archive_dest_n與DB_RECOVERY_FILE_DESTOracleHive
- Oracle OCP 1Z0 053 Q64(RESETLOGS&LOG_ARCHIVE_FORMAT)OracleHiveORM
- Windows 下備份 archive logWindowsHive
- archive log 歸檔日誌Hive
- alter system archive log current noswitch!!Hive
- alter system archive log current / all / switch logfileHive
- Archive Log模式下Redo Log、Check Point和Switch LogHive模式
- logminer工具對redo log或archive log的挖掘Hive
- [翻譯]-Detect And Repair Corruption in an Oracle DatabaseAIOracleDatabase
- ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DESTHive
- standby_archive_dest和log_archive_dest_n區別Hive
- Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION`Database
- oracle dataguard standby log_archive_dest_state_n 中defer 含義OracleHive
- Managing multiple archive log destinations with RMAN (Doc ID 443814.1)Hive
- LOG_ARCHIVE_DEST_n詳解Hive
- Oracle Flashback Data ArchiveOracleHive
- oracle 817 archive err,oracle hangOracleHive
- Archive Log Files Created With Permission Bit 440 Instead Of 640 [ID 458901.1]Hive
- Archive log mining steps(logminer to html)HiveHTML
- alter system archive log current和alter system switch logfileHive
- Oracle Data Guard LOG_ARCHIVE_DEST_n引數的可選屬性OracleHive
- 缺少歸檔日誌,ORACLE資料庫恢復使用_allow_resetlogs_corruption引數Oracle資料庫
- db_writer_processes-log_archive_max_processesHive
- restore archive logs toalternative location they already reside on disk_399894.1RESTHiveIDE
- LOG_ARCHIVE_DEST_n 中的各屬性 (包括valid_for等)Hive