3
3
-- example 1 for inclusion
4
4
5
5
-- 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 .
7
7
8
8
exec DBMS_WORKLOAD_CAPTURE .ADD_FILTER (fname => ' USER_TRACK' , fattribute => ' USER' , fvalue => ' TRACKUSER' );
9
9
@@ -12,9 +12,9 @@ exec DBMS_WORKLOAD_CAPTURE.ADD_FILTER (fname => 'USER_TRACK', fattribute => 'USE
12
12
13
13
-- start capture (see capturestart.sql) and use EXCLUDE in DEFAULT_ACTION
14
14
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' );
16
16
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.
18
18
19
19
-- check status in dba_workload_filters
20
20
-- check filters_used in dba_workload_captures
@@ -23,17 +23,17 @@ execute dbms_workload_capture.start_capture (name=>'&Replayname', dir=>'&Reaplyd
23
23
-- example 2 for exclusion
24
24
25
25
-- 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 .
27
27
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' );
31
31
32
32
33
33
-- check status in dba_workload_filters
34
- -- check filters_used dba_workload_captures
34
+ -- check filters_used in dba_workload_captures
35
35
36
36
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' );
38
38
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