新聞中心
以下的文章主要講述的是正確的啟動(dòng)或是關(guān)閉Oracle歸檔模式的實(shí)際操作步驟,我們大家都知道Oracle數(shù)據(jù)庫運(yùn)行于2種模式,主要實(shí)施Oracle歸檔模式(archivelog)與非歸檔模式(noarchivelog)。

專業(yè)成都網(wǎng)站建設(shè)公司,做排名好的好網(wǎng)站,排在同行前面,為您帶來客戶和效益!成都創(chuàng)新互聯(lián)公司為您提供成都網(wǎng)站建設(shè),五站合一網(wǎng)站設(shè)計(jì)制作,服務(wù)好的網(wǎng)站設(shè)計(jì)公司,做網(wǎng)站、成都做網(wǎng)站負(fù)責(zé)任的成都網(wǎng)站制作公司!
Oracle歸檔模式可以提高Oracle數(shù)據(jù)庫的可恢復(fù)性,生產(chǎn)數(shù)據(jù)庫都應(yīng)該運(yùn)行在此模式下,歸檔模式應(yīng)該和相應(yīng)的備份策略相結(jié)合,只有歸檔模式?jīng)]有相應(yīng)的備份策略只會(huì)帶來麻煩。
本文簡單介紹如何啟用和關(guān)閉數(shù)據(jù)庫的Oracle歸檔模式。
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)數(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.啟用或停止歸檔模式
如果要啟用Oracle歸檔模式,此處使用
- 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歸檔模式的介紹,望你能有所收獲。
【編輯推薦】
- Oracle隨機(jī)函數(shù)的正確取法的描述
- Oracle Datafiles管理需要哪些項(xiàng)目?
- Oracle Nvl函數(shù)的實(shí)際應(yīng)用有哪些?
- Oracle實(shí)現(xiàn)SELECT TOP N的步驟有哪些?
- Oracle數(shù)據(jù)復(fù)制如何正確操作?
網(wǎng)頁標(biāo)題:Oracle歸檔模式的運(yùn)行模式的兩大類
分享網(wǎng)址:http://www.dlmjj.cn/article/djopgoj.html


咨詢
建站咨詢
