Archive Data

来源:互联网 发布:数控冲床编程教程 编辑:程序博客网 时间:2024/05/22 15:27

正好最近做了几个关于 archive 的问题,那么就来简单总结一下关于 archive 的知识吧!

先贴上几个比较有用的 Links
DATA ARCHIVING PROCESS IN SAP BW 这是一个带图表的例子,说了 archive 的步骤
BW Archiving 这是SAP 关于 BW archive 的 Wiki
Archiving Request Administration Data 这个是 Online documention
BW Request Archiving - Troubleshooting

Archive 主要分为两种

  • 数据 data 的 archive
  • request 的 archive Archiving Request Information in BW

Request Archive

为什么要进行 request 的 archive

对 request administration data 进行 archive,实际上就是将关于 requests 的 administration 和 log information 存储在一个 archive file 中。这样可以在执行与 requests 相关的操作的时候提升系统性能

Administration tables and log tables 里面的数据不能删除,因为在系统中做操作的时候会用到,删除这些数据会导致不可预知的后果(例如影响 InfoProvider display data 等等)。但是,每当有新的 request 产生的时候,都会往这些 tables 里面写数据,这样数据越来越多,会影响 performance.

这个时候 archive 就会是一个很好的选择。

The archives belonging to BWREQARCH must be kept and the corresponding archive files should NEVER be deleted. Certain processes (delta load, initialization, etc) which results the change of the status of an archived requests will automatically reload the requests from the archive.

相关知识

T-Code:SARA

相关的 Tables:

  • RSREQARCH
  • RSREQARCHCTRL
  • RSREQARCHDATA
  • RSREQARCHDEL
  • RSREQARCHMON
  • RSREQARCHREORG

Note that the administration data (ADK archive runs) for the archiving object BWREQARCH cannot be archived or deleted with the archiving object BC_ARCHIVE.
注意针对 archive 执行的这些 data 不能被 archive~ 哈哈~

Note
为了避免 reload 回来,我们推荐的 archive 是三个月前的数据。

Note
The header table of the requests, table RSREQDONE, is not archived. It contains one record for each request. This record contains information about the status of the archiving.


对于 request 的 archive,如果我们刚开始做 archive 的话,可能就会有几万甚至几十万上百万的 request 信息需要被 archive。
这个时候会发现,job log 里面只显示了 archive 1万左右(虽然符合我们条件的 request 有更多)
这个是有一个 Note 在说明这个现象

  • 950612 - P9; request archiving: Archiving multiple requests as initial

Preferably, you can use transaction SARA to periodically schedule the report RSREQARCH_WRITE daily.
The first 10,000 requests will then be archived on the first day. On the second day the next 10,000 requests will be archived, and so on.

After the next few days/weeks, the write reports archived all the old requests and only creates a new archive when at least “Min. Number Requests” is met. Therefore, it is now sufficient to periodically schedule the write-delete action once (daily) in transaction SARA. The program then processes the requests automatically.

0 0
原创粉丝点击