Oracle 8.x archivelog 存档模式修改

1. 修改oracle 配置文件

 

# Uncommenting the line below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest_1 = "location=E:\oracle\oradata\orcl\archive"
# log_archive_format = %%ORACLE_SID%%T%TS%S.ARC

 

 

改为

# Uncommenting the line below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
log_archive_start = true
log_archive_dest_1 = "location=E:\oracle\oradata\orcl\archive"
log_archive_format = %%ORACLE_SID%%T%TS%S.ARC

 

这样在重新启动是会自动启动:自动存档

这里与9i后版本不一样

之后版本只要是存档模式就会自动存档,只有在8.x 版本要手动指定对应的模式

 

2. 修改数据库存档模式

step1:

    使用sqlplus 或sql/Pl等(使用Command SQL)

    sqlplus system/manager@orcl as sysdba

 

step2:

   使用命令

    shutdown immediate

    关闭数据库

    制裁数据库

    关闭数据库实例

 

step3:

   进入数据库装载模式

   startup mount

   这样就可以修改了

step4

  alter database archivelog;

 修改模式为存档模式

 alter database archivelog;

 

alter database open;

 

OK

 

 

 

 

 

 

  

 

 

 

 

你可能感兴趣的:(oracle)