Initializing Replay Data

After the workload capture is preprocessed and the test system is properly prepared, the replay data can be initialized. Initializing replay data loads the necessary metadata into tables required by workload replay. For example, captured connection strings are loaded into a table where they can be remapped for replay.

To initialize replay data:

  • Use the INITIALIZE_REPLAY procedure:

    BEGIN
      DBMS_WORKLOAD_REPLAY.INITIALIZE_REPLAY (replay_name => 'dec06_102',
                               replay_dir => 'dec06');
    END;
    /
    

    In this example, the INITIALIZE_REPLAY procedure loads preprocessed workload data from the dec06 directory into the database.

    The INITIALIZE_REPLAY procedure in this example uses the following parameters:

    • The replay_name required parameter specifies a replay name that can be used with other APIs to retrieve settings and filters of previous replays.

    • The replay_dir required parameter specifies the directory that contains the workload capture that will be replayed.

See Also: