Skip to content

Commit 7420c89

Browse files
committed
No ash if no awr
1 parent 8f54f4e commit 7420c89

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/oltpcore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
# Changes
1313
#
14+
# bengsig 29-sep-2023 - No ash if no awr
1415
# bengsig 7-aug-2023 - Also mute59 in graphs
1516
# bengsig 1-aug-2023 - Add oltpxcset markers from oltpxcrun
1617
# bengsig 9-may-2023 - --oltp-xc option to turn on external control
@@ -358,7 +359,7 @@ if test $oltpxc = no || oltpxcset | grep -q stopnow=0
358359
then
359360

360361
# copy the ash data from systemdb to results db
361-
rwloadsim -u -A 2 -q ashstep2.rwl $runnumber $runperiod &
362+
test $doawr -ne 0 && rwloadsim -u -A 2 -q ashstep2.rwl $runnumber $runperiod &
362363

363364
# copy the ping.csv file to resultsdb
364365
rwloadsim -u -A 1 -q pingcsv2res.rwl $runnumber &
@@ -386,7 +387,7 @@ then
386387
test -x ./coreextra-$RWLOLTP_NAME.sh && ./coreextra-$RWLOLTP_NAME.sh $runnumber
387388
else
388389
# copy the ash data from systemdb to results db
389-
rwloadsim -u -A 2 -q ashstep2.rwl $runnumber $runperiod &
390+
test $doawr -ne 0 && rwloadsim -u -A 2 -q ashstep2.rwl $runnumber $runperiod &
390391
# and make the awr reports
391392
test $doawr -ne 0 && rwloadsim -u -A 1 -q makeawr.rwl $runnumber &
392393
# and the the truncate

oltp/runsys.rwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0
33
# as shown at https://oss.oracle.com/licenses/upl/
44

5+
# bengsig 29-sep-2023 - no ashstep if no doawr
56
# bengsig 26-apr-2023 - Make sure ashstep1 is performed
67
# bengsig 25-oct-2022 - External control
78
# bengsig 15-sep-2022 - Use new file open syntax
@@ -232,7 +233,7 @@ $if !xc_enabled $then
232233
$endif
233234

234235
# Create the SQL that will collact top ash data
235-
threads 1
236+
threads doawr != 0
236237
for wait 1 stop runperiod loop
237238
null;
238239
$if xc_enabled $then if xc_stopnow=1 or xc_stopnow=2 then break; end if; $endif

0 commit comments

Comments
 (0)