27.04.2013 Views

SAP Basis

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADM100 Lesson: Performing Data Archiving<br />

The Archiving Run<br />

The actual archiving run is scheduled and processed as a background job.<br />

It selects the data objects from the database. When doing this, the integrity<br />

conditions that characterize a data object are taken into account. The<br />

system then checks whether each data object can be archived. If it can be<br />

archived, the data object is written to the archive file. If the Customizing<br />

settings specify that the delete program is to run automatically, the<br />

associated deletion run is automatically started, when a file is closed.<br />

Hint: If the delete program is scheduled in parallel to the write<br />

program, there should be at least two background work processes<br />

configured on the <strong>SAP</strong> system.<br />

The delete run must be separately scheduled, if the delete program is<br />

not automatically run by the settings in the archiving object-specific<br />

Customizing. When doing this, you must also select the archive files, from<br />

which the data objects are to be read in the current delete run, and then<br />

deleted from the database.<br />

An archiving run is scheduled using transaction SARA by choosing the<br />

Write button. It is divided into four steps:<br />

• Creating an archiving variant<br />

• Specifying the execution user<br />

• Specifying the start time<br />

• Defining the spool parameters<br />

The data that is to be archived for the selected archiving object is specified<br />

in archiving variants. In principle, archiving variants can only be reused<br />

if the associated jobs are deleted. The definition of the variant must also<br />

specify whether it is a test run or a production run.<br />

The user under which the archiving program is started requires at least<br />

an appropriate authorization for the authorization object S_ARCHIVE.<br />

S_ARCHIVE is the main authorization object used for data archiving. By<br />

selecting the corresponding field entries for this authorization object, you<br />

can restrict the archiving objects to be used. The user also requires the<br />

relevant authorizations for the application transaction for which data is<br />

to be archived. As data archiving runs in the background, the user also<br />

requires authorizations for background processing (authorization object<br />

S_BTCH_JOB).<br />

The start times to be specified for archiving jobs are the same as those<br />

for standard job scheduling.<br />

2003/Q3 © 2003 <strong>SAP</strong> AG. All rights reserved. 189

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!