服务器 频道

如何打开ORACLE9iR2 的自动归档模式

  【IT168 服务器学院】自动归档默认是禁用,需要修改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;

  Mengxuan''Blog版权,联系方式(Mail): mengxuan.cn@Gmail.com,转载请注明原作者及地址!

0
相关文章