ITPub博客

首页 > Linux操作系统 > Linux操作系统 > LOG_ARCHIVE_FORMAT

LOG_ARCHIVE_FORMAT

原创 Linux操作系统 作者:杨奇龙 时间:2010-08-06 23:11:10 0 删除 编辑


LOG_ARCHIVE_FORMAT is applicable only if you are using the redo log in ARCHIVELOG mode.
Use a text string and variables to specify the default filename format when archiving redo log files. The string generated from this format is appended to the string specified in the LOG_ARCHIVE_DEST parameter.
The following variables can be used in the format:
%s log sequence number
%S log sequence number, zero filled
%t thread number
%T thread number, zero filled
%a activation ID
%d database ID
%r resetlogs ID that ensures unique names are constructed for the archived log files across multiple incarnations of the database
Using uppercase letters for the variables (for example, %S) causes the value to be fixed length and padded to the left with zeros. An example of specifying the archive redo log filename format follows:

LOG_ARCHIVE_FORMAT = 'log%t_%s_%r.arc'

Neither LOG_ARCHIVE_DEST nor LOG_ARCHIVE_FORMAT have to be complete file or directory specifiers themselves;
they only need to form. a valid file path after the variables are substituted into LOG_ARCHIVE_FORMAT and the two parameters are concatenated together.

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

上一篇: 计划
下一篇: RMAN备份文件格式
请登录后发表评论 登录
全部评论
MySQL DBA NoSQL DEVOPS

注册时间:2009-10-07

  • 博文量
    1026
  • 访问量
    8206234