The replay client is a multithreaded program (an executable named wrc
located in the $ORACLE_HOME/bin
directory) where each thread submits a workload from a captured session. Before replay begins, the database will wait for replay clients to connect. At this point, you need to set up and start the replay clients, which will connect to the replay system and send requests based on what has been captured in the workload.
Before starting replay clients, ensure that the:
Replay client software is installed on the hosts where it will run
Replay clients have access to the replay directory
Replay directory contains the preprocessed workload capture
Replay user has the correct user ID, password, and privileges (the replay user needs the DBA role and cannot be the SYS
user)
Replay clients are not started on a system that is running the database
Replay clients read the capture directory on a file system that is different from the one on which the database files reside
To do this, copy the capture directory to the system where the replay client will run. After the replay is completed, you can delete the capture directory.
After these prerequisites are met, you can proceed to set up and start the replay clients using the wrc
executable. The wrc
executable uses the following syntax:
wrc [user/password[@server]] MODE=[value] [keyword=[value]]
The parameters user
, password
and server
specify the username, password and connection string used to connect to the replay database. The parameter mode
specifies the mode in which to run the wrc
executable. Possible values include replay
(the default), calibrate
, and list_hosts
. The parameter keyword
specifies the options to use for the execution and is dependent on the mode selected. To display the possible keywords and their corresponding values, run the wrc
executable without any arguments.
The following sections describe the modes that you can select when running the wrc
executable: