如何打開ORACLE9I的自動歸檔模式

如何打開ORACLE9i 的自動歸檔模式
自動歸檔默認是禁用,需要修改parameter log_archive_start=TRUE才能啓用自動歸檔。
  SQL> show parameter log_archive_start
  NAME                                 TYPE        VALUE
  ------------------------------------ ----------- ------------------------------
  log_archive_start                     boolean    FALSE
  SQL> archive log list
  數據庫日誌模式            存檔模式
  自動存檔                      禁用
  存檔終點                      /oracle/oracle9i/u01/product/9201/dbs/arch
  最早的概要日誌序列     18
  下一個存檔日誌序列     19
  當前日誌序列               20
  SQL> alter system set log_archive_start=TRUE scope=spfile;
  系統已更改。
  SQL> startup force
  ORACLE 例程已經啓動。
  Total System Global Area  320308312 bytes
  Fixed Size                730200 bytes
  Variable Size            285212672 bytes
  Database Buffers      33554432 bytes
  Redo Buffers            811008 bytes
  數據庫裝載完畢。
  數據庫已經打開。
  SQL> archive log list
  數據庫日誌模式                     存檔模式
  自動存檔                              啓用
  存檔終點                         /oracle/oracle9i/u01/product/9201/dbs/arch
  最早的概要日誌序列             19
  下一個存檔日誌序列          21
  當前日誌序列                       21
  SQL> show parameter log_archive_start
  NAME                        TYPE     VALUE
  ------------------------------------ ----------- ------------------------------
  log_archive_start            boolean   TRUE
  SQL>
  自動歸檔模式下強制歸檔
  SQL> alter system switch logfile;
  SQL> select * from v$log;
 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章