如何不備份已備過的Oracle歸檔日誌

來源:互聯網
上載者:User

在OracleDatabase Backup歸檔日誌時,通常會儲存最近幾天的歸檔記錄檔不刪除。

如:

backup archivelog all;

delete noprompt archivelog all completed before 'sysdate -7'; 在本地保留7天的歸檔日誌.

再備份時,如果還這是這樣,則歸檔會再備份一次。

加上一個子句 not backed up 1 times,就可以實現不備份已經歸檔的日誌。

命令如下:

backup archivelog all not backed up 1 times;  不備份上次已經備份的歸檔

更多Oracle相關資訊見Oracle 專題頁面 http://www.bkjia.com/topicnews.aspx?tid=12

相關文章

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.