如何啓用和關閉數據庫的Oracle歸檔模式

  本文簡單介紹如何啓用和關閉數據庫的Oracle歸檔模式。 git

  1、shutdown normal或shutdown immediate關閉數據庫 oracle培訓 sql

  1 .oracle@jumper oracle]$ sqlplus "/ as sysdba" 數據庫

  2.SQL*Plus: Release 9.2.0.4.0 - Production on Sat Oct 15 15:48:36 2005 oracle

  3.Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. spa

  4.Connected to: .net

  5.Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production orm

  6.With the Partitioning option get

  7.JServer Release 9.2.0.4.0 - Production it

  8.SQL> shutdown immediate; io

  9.Database closed.

  10.Database dismounted.

  11.ORACLE instance shut down.

  2、啓動數據庫到mount狀態

  1.SQL> startup mount;

  2.ORACLE instance started.

  3.Total System Global Area 101782828 bytes

  4.Fixed Size 451884 bytes

  5.Variable Size 37748736 bytes

  6.Database Buffers 62914560 bytes

  7.Redo Buffers 667648 bytes

  8.Database mounted.

  3、啓用或中止歸檔模式

  若是要啓用Oracle歸檔模式,此處使用

  1.alter database archivelog 命令。

  2.SQL> alter database archivelog;

  3.Database altered.

  4.SQL> alter database open;

  5.Database altered.

  6.SQL> archive log list;

  7.Database log mode Archive Mode

  8.Automatic archival Enabled

  9.Archive destination /opt/oracle/oradata/conner/archive

  10.Oldest online log sequence 148

  11.Next log sequence to archive 151

  12.Current log sequence 151

相關文章
相關標籤/搜索