Skip to content

Commit 3b8c222

Browse files
authored
Update capturefilterusage.sql
Changed capturefilterusage.sql
1 parent 7f1eef9 commit 3b8c222

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

data-platform/core-converged-db/real-application-testing/db-replay/files/capturefilterusage.sql

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- example 1 for inclusion
44

55
-- Add filters
6-
-- The usage mode is determined by the default_action input to the START_CAPTURE Procedure.
6+
-- The usage mode is determined by the DEFAULT_ACTION input of START_CAPTURE procedure.
77

88
exec DBMS_WORKLOAD_CAPTURE.ADD_FILTER (fname => 'USER_TRACK', fattribute => 'USER', fvalue => 'TRACKUSER');
99

@@ -12,9 +12,9 @@ exec DBMS_WORKLOAD_CAPTURE.ADD_FILTER (fname => 'USER_TRACK', fattribute => 'USE
1212

1313
-- start capture (see capturestart.sql) and use EXCLUDE in DEFAULT_ACTION
1414

15-
execute dbms_workload_capture.start_capture (name=>'&Replayname', dir=>'&Reaplydir', default_action=>'EXCLUDE');
15+
execute dbms_workload_capture.start_capture (name=>'&Name', dir=>'&Dir', default_action=>'EXCLUDE');
1616

17-
-- No user request to the database is captured, except for the part of the workload defined by the filter.
17+
-- EXCLUDE: No user request to the database is captured, except for the part of the workload defined by the filter.
1818

1919
-- check status in dba_workload_filters
2020
-- check filters_used in dba_workload_captures
@@ -23,17 +23,17 @@ execute dbms_workload_capture.start_capture (name=>'&Replayname', dir=>'&Reaplyd
2323
-- example 2 for exclusion
2424

2525
-- Add filters
26-
-- The usage mode is determined by the default_action input to the START_CAPTURE Procedure.
26+
-- The usage mode is determined by the DEFAULT_ACTION input of START_CAPTURE procedure.
2727

28-
exec dbms_workload_capture.add_filter('ORACLE MANAGEMENT SERVICE (DEFAULT)', 'Program', 'OMS');
29-
exec dbms_workload_capture.add_filter('ORACLE MANAGEMENT AGENT (DEFAULT)', 'Program', 'emagent%');
30-
exec dbms_workload_capture.add_filter('U_DBSNMP', 'User', 'DBSNMP');
28+
exec dbms_workload_capture.add_filter('ORACLE_MANAGEMENT_SERVICE', 'Program', 'OMS');
29+
exec dbms_workload_capture.add_filter('ORACLE_MANAGEMENT_AGENT', 'Program', 'emagent%');
30+
exec dbms_workload_capture.add_filter('U_DBSNMP', 'USER', 'DBSNMP');
3131

3232

3333
-- check status in dba_workload_filters
34-
-- check filters_used dba_workload_captures
34+
-- check filters_used in dba_workload_captures
3535

3636

37-
execute dbms_workload_capture.start_capture (name=>'&Replayname', dir=>'&Reaplydir', default_action=>'INCLUDE');
37+
execute dbms_workload_capture.start_capture (name=>'&Name', dir=>'&Dir', default_action=>'INCLUDE');
3838

39-
-- All user requests to the database are captured, except for the part of the workload defined by the filters.
39+
-- INCLUDE: All user requests to the database are captured, except for the part of the workload defined by the filters.

0 commit comments

Comments
 (0)