當前位置:學者齋 >

IT認證 >Oracle認證 >

Oracle歸檔模式的運行模式

Oracle歸檔模式的運行模式

以下的文章主要講述的是正確的`啟動或是關閉Oracle歸檔模式的實際操作步驟,我們大家都知道Oracle數據庫運行於2種模式,主要實施Oracle歸檔模式(archivelog)與非歸檔模式(noarchivelog)。

Oracle歸檔模式的運行模式

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

  down normal或shutdown immediate關閉數據庫

le@jumper oracle]$ sqlplus "/ as sysdba"

*Plus: Release - Production on Sat Oct 15 15:48:36 2005

right (c) 1982, 2002, Oracle Corporation. All rights reserved.

ected to:

le9i Enterprise Edition Release - Production

the Partitioning option

ver Release - Production

> shutdown immediate;

base closed.

base dismounted.

LE instance shut down.

  2.啟動數據庫到mount狀態

> startup mount;

LE instance started.

l System Global Area 101782828 bytes

d Size 451884 bytes

able Size 37748736 bytes

base Buffers 62914560 bytes

Buffers 667648 bytes

base mounted.

  3.啟用或停止歸檔模式

如果要啟用Oracle歸檔模式,此處使用

r database archivelog 命令

> alter database archivelog;

base altered.

> alter database open;

base altered.

> archive log list;

base log mode Archive Mode

matic archival Enabled

ive destination /opt/oracle/oradata/conner/archive

st online log sequence 148

log sequence to archive 151

ent log sequence 151

  • 文章版權屬於文章作者所有,轉載請註明 https://xuezhezhai.com/zh-hk/itrz/oracle/od2rlv.html