一.设置为归档模式的步骤
1.正常关闭数据库
2.把数据库置于 mount状态
3.把数据库修改为archivelog模式
4.打开数据库
5.正常关闭数据库,做一次全备份
sQL> conn / as sysdba
Connected to an idle instance.
SQL> startup mount
ORACLE instance started.
Total System Global Area 146472960 bytes
Fixed Size 1335080 bytes
Variable Size 92274904 bytes
Database Buffers 50331648 bytes
Redo Buffers 2531328 bytes
Database mounted.
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 /u01/admin/wilson/test
Oldest online log sequence 114
Next log sequence to archive 116
Current log sequence 116
接下来,干净的关掉数据库,做个全备份。
二.在10g中,当数据库处于归档模式下时,还要设置两参数:log_archive_star和log_archive_max_processes。
1.归档模式下,把online redo log复制到指定的位置有两种方式,手动和自动。选择哪种方式和参数log_archive_start有关,它为ture,则为自动;它为false,则为手动。推荐使用自动方式。
2.在自动归档模式中,有多少个ARC进程来参与,由参数log_archive_max_processes来确定。