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

 

 

 

 

 

 

  

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值