十年網(wǎng)站開發(fā)經(jīng)驗(yàn) + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊(duì)
量身定制 + 運(yùn)營(yíng)維護(hù)+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
我們大家都知道Oracle數(shù)據(jù)庫可以在2種模式下運(yùn)行,即,歸檔模式(archivelog)與非歸檔模式(noarchivelog),歸檔模式的主要作用是提高數(shù)據(jù)庫的可恢復(fù)性,其實(shí)際生產(chǎn)的數(shù)據(jù)庫都應(yīng)該運(yùn)行在此模式下,

歸檔模式應(yīng)該和相應(yīng)的備份策略相結(jié)合,只有歸檔模式?jīng)]有相應(yīng)的備份策略只會(huì)帶來麻煩。
1.shutdown normal或shutdown immediate關(guān)閉數(shù)據(jù)庫
- [oracle@jumper oracle]$ sqlplus "/ as sysdba"
- SQL*Plus: Release 9.2.0.4.0 - Production on Sat Oct 15 15:48:36 2005
- Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
- Connected to:
- Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
- With the Partitioning option
- JServer Release 9.2.0.4.0 - Production
- SQL> shutdown immediate;
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
2.啟動(dòng)Oracle數(shù)據(jù)庫到mount狀態(tài)
- SQL> startup mount;
- ORACLE instance started.
- Total System Global Area 101782828 bytes
- Fixed Size 451884 bytes
- Variable Size 37748736 bytes
- Database Buffers 62914560 bytes
- Redo Buffers 667648 bytes
- Database mounted.
3.啟用或停止歸檔模式
如果要啟用歸檔模式,此處使用
- alter database archivelog 命令。
- SQL> alter database archivelog;
- Database altered.
- SQL> alter database open;
- Database altered.
- SQL> archive log list;
- Database log mode Archive Mode
- Automatic archival Enabled
- Archive destination /opt/oracle/oradata/conner/archive
- Oldest online log sequence 148
- Next log sequence to archive 151
- Current log sequence 151
上述的相關(guān)內(nèi)容就是對(duì)如何啟動(dòng)或關(guān)閉Oracle數(shù)據(jù)庫的歸檔模式的描述,希望會(huì)給你帶來一些幫助在此方面。