Oracle數據庫可以運行在
歸檔模式可以提高Oracle數據庫的可恢復性
本文簡單介紹如何啟用和關閉數據庫的歸檔模式
[oracle@jumper oracle]$ sqlplus
SQL*Plus: Release
Copyright (c)
Connected to:
Oracle
With the Partitioning option
JServer Release
SQL> shutdown immediate;
Database closed
Database dismounted
ORACLE instance shut down
SQL> startup mount;
ORACLE instance started
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
Database mounted
如果要啟用歸檔模式
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
Next log sequence to archive
Current log sequence
如果需要停止歸檔模式
alter database noarchivelog 命令
SQL> shutdown immediate;
Database closed
Database dismounted
ORACLE instance shut down
SQL> startup mount;
ORACLE instance started
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
Database mounted
SQL> alter database noarchivelog;
Database altered
SQL> alter database open;
Database altered
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Enabled
Archive destination /opt/oracle/oradata/conner/archive
Oldest online log sequence
Current log sequence
Oracle
在pfile/spfile中設置如下參數
log_archive_start = true
重啟數據庫此參數生效
也可以在數據庫啟動過程中
archive log start
使數據庫啟用自動歸檔
From:http://tw.wingwit.com/Article/program/Oracle/201311/17704.html