Oracle數(shù)據(jù)庫的啟用與關(guān)閉的歸檔模式
我們大家都知道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ì)給你帶來一些幫助在此方面。
【編輯推薦】
- Oracle數(shù)據(jù)庫的性能完全保護(hù)的4個(gè)項(xiàng)目
- 提高Oracle SQL的執(zhí)行效率的3個(gè)方案
- Oracle存儲(chǔ)過程定時(shí)執(zhí)行2種方法
- 實(shí)現(xiàn)Oracle傳輸表空間的實(shí)際功能解析
- Oracle數(shù)據(jù)庫中兩個(gè)易被忽視的進(jìn)程