|
2 | 2 |
|
3 | 3 | -- First step: Adding new filters (see replayfilter.sql).
|
4 | 4 |
|
5 |
| --- examples for filters |
6 |
| - |
| 5 | +-- Adding filters |
7 | 6 | exec DBMS_WORKLOAD_REPLAY.add_filter('ORACLE_MANAGEMENT_SERVICE', 'PROGRAM', 'OMS');
|
8 |
| -exec DBMS_WORKLOAD_REPLAY.add_filter('DBSNMP_User', 'USER', 'DBSNMP'); |
| 7 | +exec DBMS_WORKLOAD_REPLAY.add_filter('DBSNMP_USER', 'USER', 'DBSNMP'); |
9 | 8 | exec DBMS_WORKLOAD_REPLAY.add_filter('ORACLE_MANAGEMENT_AGENT', 'PROGRAM', 'emagent%');
|
10 |
| -exec dbms_workload_capture.add_filter('RMAN_Module', 'MODULE', 'rman%'); |
| 9 | +exec DBMS_WORKLOAD_REPLAY.add_filter('RMAN_MODULE', 'MODULE', 'rman%'); |
11 | 10 |
|
12 | 11 | -- check dba_workload_filters, filter status is now "NEW".
|
13 | 12 |
|
14 | 13 |
|
15 | 14 | -- Second step: Creating a Replay Filter Set (see replayfilterset.sql).
|
16 |
| --- The default is INCLUDE - but to make sure ... |
17 |
| - |
18 | 15 | exec DBMS_WORKLOAD_REPLAY.CREATE_FILTER_SET (replay_dir => '&DIR', filter_set => 'MyReplayFilter', default_action => 'INCLUDE');
|
19 | 16 |
|
20 |
| -/* CREATE_FILTER_SET creates a replay filter set named MyReplayFilter, which will replay all captured calls except for the part of the workload defined by the replay filters. */ |
| 17 | +-- INCLUDE: CREATE_FILTER_SET creates a replay filter set named MyReplayFilter, which will replay all captured calls except for the part of the workload defined by the replay filters. |
| 18 | +-- See capturefilterusage.sql for EXCLUDE example. |
21 | 19 |
|
22 |
| --- Initialize the replay (see replayinitialize.sql) |
| 20 | +-- Initialize replay (see replayinitialize.sql) |
23 | 21 |
|
24 | 22 | execute DBMS_WORKLOAD_REPLAY.initialize_replay(replay_name=>'&NAME', replay_dir=>'&DIR', plsql_mode=>'extended');
|
25 | 23 |
|
26 | 24 | -- check dba_workload_filters: status is now "IN SET
|
27 | 25 |
|
28 | 26 | -- Third step: Using a Replay Filter Set (see replayusefilterset.sql).
|
29 |
| - |
30 | 27 | exec DBMS_WORKLOAD_REPLAY.USE_FILTER_SET (filter_set => 'MyReplayFilter');
|
31 | 28 |
|
32 | 29 | -- check dba_workload_filters: status is now "IN USE"
|
| 30 | + |
33 | 31 | -- now proceed with replayprepare.sql, wrc starts and replaystart.sql
|
34 | 32 |
|
35 | 33 |
|
|
0 commit comments