Warning. Log sequence in archive filename wrapped to fix length as indicated by %S in LOG_ARCHIVE_F,archivefilename

來源:互聯網
上載者:User

Warning. Log sequence in archive filename wrapped to fix length as indicated by %S in LOG_ARCHIVE_F,archivefilename

最近在做資料庫檢查的時候發現有下面警告資訊:

Thu Apr 02 10:34:39 2015  Current log# 1 seq# 235103 mem# 0: D:\ORADATA\ORCL\REDO01.LOGThu Apr 02 10:34:40 2015ARC1: Evaluating archive   log 3 thread 1 sequence 235102Thu Apr 02 10:34:40 2015ARC1: Warning.  Log sequence in archive filename wrappedto fix length as indicated by %S in LOG_ARCHIVE_FORMAT.Old log archive with same name might be overwritten.Committing creation of archivelog 'D:\ARCHIVELOG\ARC35102_0749482202.001'

經查詢,這是oracle的一個bug,資料庫的LOG_ARCHIVE_FORMAT預設值為ARC%S_%R.%T。%S為一個序號,僅支援5位元(即最大值為99999),當超過這個值時,仍然只顯示5位,所以在alert中提示說可能會覆蓋掉同名檔案,
系統當前的log_archive_format 設定:

SQL> show parameter log_archive_formatNAME                                 TYPE        VALUE------------------------------------ ----------- -----------log_archive_format                   string      ARC%S_%R.%T

Oracle提供的解決辦法是:將log_archive_format中的%S改成%s.
這個參數修改需要重啟資料庫。

alter system set LOG_ARCHIVE_FORMAT='ARC%s_%R.%T' scope=spfile;

最後重啟資料庫即可。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.