Creating Replay Schedules Using APIs

This section describes how to create replay schedules using the DBMS_WORKLOAD_REPLAY package. For information about replay schedules, see "Defining Replay Schedules".

To create a replay schedule:

  1. Use the BEGIN_REPLAY_SCHEDULE procedure:

    DBMS_WORKLOAD_REPLAY.BEGIN_REPLAY_SCHEDULE (
       schedule_name  IN VARCHAR2);
    
  2. Set the schedule_name parameter to the name of this replay schedule.

Note:

The BEGIN_REPLAY_SCHEDULE procedure initiates the creation of a reusable replay schedule. Only one replay schedule can be defined at a time. Calling this procedure again while a replay schedule is being defined will result in an error.

This example shows how to create a replay schedule named peak_schedule.

EXEC DBMS_WORKLOAD_REPLAY.BEGIN_REPLAY_SCHEDULE ('peak_schedule');

See Also:

Oracle Database PL/SQL Packages and Types Reference for information about the BEGIN_REPLAY_SCHEDULE procedure