標籤:val 4.0 nic use 備份 startup div oracle cti
Oracle資料庫可以運行在2種模式下:
- 歸檔模式(archivelog)
歸檔模式可以提高Oracle資料庫的可恢複性,生產資料庫都應該運行在此模式下,歸檔模式應該和相應的備份策略相結合,只有歸檔模式沒有相應的備份策略只會帶來麻煩。
- 非歸檔模式(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)