Oracle資料庫的歸檔模式(archivelog mode)

來源:互聯網
上載者:User

標籤:val   4.0   nic   use   備份   startup   div   oracle   cti   

Oracle資料庫可以運行在2種模式下:

  1. 歸檔模式(archivelog)

歸檔模式可以提高Oracle資料庫的可恢複性,生產資料庫都應該運行在此模式下,歸檔模式應該和相應的備份策略相結合,只有歸檔模式沒有相應的備份策略只會帶來麻煩。

  1. 非歸檔模式(noarchivelog)

 

如何啟用和關閉資料庫的歸檔模式。

1.shutdown normal或shutdown immediate關閉資料庫

2.startup mount啟動資料庫到mount狀態

3.啟用或停止歸檔模式

啟用歸檔模式:alter database archivelog

停用歸檔模式:alter database noarchivelog

4.查看歸檔模式:archive log list

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount;

ORACLE instance started.

 

Total System Global Area 1653518336 bytes

Fixed Size                  2253784 bytes

Variable Size            1207962664 bytes

Database Buffers          436207616 bytes

Redo Buffers                7094272 bytes

Database mounted.

SQL> alter database archivelog;

 

Database altered.

 

SQL> archive log list;

Database log mode              Archive Mode

Automatic archival             Enabled

Archive destination            USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     18

Next log sequence to archive   20

Current log sequence           20

Oracle資料庫的歸檔模式(archivelog mode)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.