log_archive_format

每天的定时JOB今天执行的很慢,查了下日志,发现了问题。
Thu Jan 09 09:13:23 2014
ARC0: Warning.  Log sequence in archive filename wrapped
to fix length as indicated by %S in LOG_ARCHIVE_FORMAT.
Old log archive with same name might be overwritten.
Thu Jan 09 09:13:43 2014
Thread 1 advanced to log sequence 315239
  Current log# 1 seq# 315239 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\AGENCY\REDO01.LOG


查了下,需要修改LOG_ARCHIVE_FORMAT参数。


C:\Documents and Settings\dba>sqlplus sys/ as sysdba


SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 10 06:29:30 2014


Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Enter password:


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options


SQL> show parameter log_archive_format


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_format                   string      ARC%S_%R.%T
SQL> alter system set log_archive_format='ARC%s_%R.%T' scope=spfile;


System altered.


SQL> show parameter log_archive_format


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_format                   string      ARC%S_%R.%T
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.


Total System Global Area 1.7180E+10 bytes
Fixed Size                  2034464 bytes
Variable Size             486540512 bytes
Database Buffers         1.6677E+10 bytes
Redo Buffers               14741504 bytes
Database mounted.
Database opened.
SQL> show parameter log_archive_format


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
log_archive_format                   string      ARC%s_%R.%T

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26084062/viewspace-1069091/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26084062/viewspace-1069091/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值