Chapter08-Configuring the Database Archiving Mode

NOARCHIVELOG Mode

Implications of NOARCHIVELOG Mode

  • If a tablespace becomes unavaliable because of a failure,you cannot continue to operate the database until the tablespace has been dropped or the entire database has been restored from backups.

Auto and Manual Archiving

oracle server有归档模式与非归档模式之分,如果是归档模式,又分自动归档模式和手动归档模式;

archive log的启动与关闭

  • 查看archive 状态信息命令
    • archive log list
  • 启动archive log
    • alter system archive log start to '/u01/admin/denver/archdest';
  • 停止archive log
    • alter system archive log stop;
  • 手动归档
    • alter system archive log current;
  • 异常排查
SQL> alter system set log_archive_start=true scope=both; 
alter system set log_archive_start=true scope=both
                 *
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

ALTER SYSTEM ARCHIVE LOG

OptionDescription
THREADSpecifies thread containing the redo log file group to be achived (for Oracle Parallel Server)
SEQUENCEArchives the online redo log file group identified by the log sequence number
CHANGEArchives based upon the SCN
GROUPArchives the online redo log file group
CURRENTArchives the current redo log file group of the specified thread
LOGFILEArchives the redo log file group with members identied by filename
NEXTArchives the oldest online redo log file group that has not been archived
ALLArchives all online redo log file groups from the specified thread that are full but have not been archived.
STARTEnables automatic archiving of redo log file groups
TOSpecifies the location to which the redo log file group is archived
STOPDisables automatic archiving of redo log file groups

 

 

 

 

 

 

 

 

问题跟踪:执行了alter system archive log stop;命令之后,Automatic archival 还是Enabled,这是为什么?

SQL> alter system archive log stop;

System altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     10
Next log sequence to archive   12
Current log sequence           12

 

转载于:https://www.cnblogs.com/arcer/archive/2013/03/18/2966297.html

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值