由非归档模式改归档模式必须重启动数据库.
oracle9i
准备:
1. 查看是否为归档模式:
archive log list;
2. 如果目前是使用spfile启动:
create pfile=’xxxxx’ from spfile;对初始化文件进行备份
3 规划归档日志存储空间.归档目标
4. 归档日志格式
按以下步骤更改:
1. alter system set log_archive_start = true scope=spfile;
2. alter system set log_archive_dest_1 = 'location=c:\' scope=spfile;
3. alter system set log_archive_format = 'arch%s_%t.arc' scope=spfile;
4. shutdown immediate;
5. startup mount;
6. alter database archivelog;
7. alter database open;
8. archive log list;
9. alter system switch logfile;
查看设定的归档目标有无按归档格式生成归档日志;