Skip to content

Commit 58731a3

Browse files
committed
Modernize sqlmonitor, sqlreport; better tags in oltp
1 parent a4b5f7d commit 58731a3

17 files changed

+411
-364
lines changed

bin/sqlmonitor

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# RWP*Load Simulator
4+
#
5+
# Copyright (c) 2024 Oracle Corporation
6+
# Licensed under the Universal Permissive License v 1.0
7+
# as shown at https://oss.oracle.com/licenses/upl/
8+
#
9+
# call rwloadsim -u sqlmonitor.rwl
10+
11+
# bengsig 13-jun-2024 - Created
12+
13+
exec rwloadsim --pretend-gen-banner='RWP*SQL Monitor' -u sqlmonitor.rwl "$@"

bin/sqlreport

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# RWP*Load Simulator
4+
#
5+
# Copyright (c) 2024 Oracle Corporation
6+
# Licensed under the Universal Permissive License v 1.0
7+
# as shown at https://oss.oracle.com/licenses/upl/
8+
#
9+
# call rwloadsim -u sqlreport.rwl
10+
11+
# bengsig 13-jun-2024 - Created
12+
13+
exec rwloadsim --pretend-gen-banner='RWP*SQL Report' -u sqlreport.rwl "$@"

docs/refman/directive.html

Lines changed: 25 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/refman/directives.html

Lines changed: 25 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/refman/sqlmonitor.html

Lines changed: 9 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/refman/sqlreport.html

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/man1rwl/directive.1rwl

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ The second directive turns this extra error detail off.
263263
.B $ora01013:reset
264264
.RS 4
265265
Normally, ctrl-c leads to a controlled stop of the executing rwloadsim process
266-
although the exact details of how clean-up is done cannot by guaranteed.
266+
although the exact details of how clean-up is done cannot be guaranteed.
267267
If you want rwloadsim to continue after receiving an ORA-01013, use the first
268268
directive.
269269
The second, which is the default, undoes this.
@@ -456,24 +456,32 @@ Be default, the flag OCI_SPC_NO_RLB is set, to not set this flag, use the second
456456
directive before the database using a session pool is declared.
457457
.RE
458458
.P
459-
.B $pre31fileassign:on
460-
.br
461459
.B $pre31fileassign:warn
462460
.br
461+
.B $pre31fileassign:on
462+
.br
463463
.B $pre31fileassign:off
464464
.RS 4
465-
These directives control how file assignment using the \fB:=\fR operator behave.
466-
When the directive is set to \fBon\fR, you can use re-direction characters
465+
In previous versions of rwloadsim, file assignment worked by
466+
having redirection characters
467467
such as "<", ">>", "|" as part of the name of the file causing the file to
468468
be opened for read, append or as a pipeline.
469-
When set to \fBwarn\fR, you will get a runtime warning about such use,
470-
and if set to \fBoff\fR, no special character interpretation will take place.
471-
In the current release (3.0.6), the default is \fBwarn\fR; it will be set
472-
to \fBoff\fR in release 3.1.
473-
.P
474-
It is recommended that you run your rwloadsim code with \fBwarn\fR, e.g.
475-
by putting it in your .rwloadsim.rwl file and use the
476-
generated warnings to modify your code to use the newer file assignment operators.
469+
Starting with version 3.1, file assignment can only be done using the
470+
proper assignment operator such as <= to open for reading.
471+
.P
472+
If you have code that uses the previous behavior where the
473+
redirection is part of the string, you can use
474+
the first of these directives.
475+
This causes such usage to be accepted but with a warning that
476+
allows you to correct your code.
477+
.P
478+
The second directive makes the previous behavior accepted
479+
.I without
480+
printing a warning; doing so is
481+
.I not
482+
recommended and the possibility will be removed in a later release.
483+
.P
484+
The current behavior can be reset using the third directive.
477485
.P
478486
.RE
479487
.B $niceabort:on

man/man2rwl/sqlmonitor.2rwl

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.TH sqlmonitor "2rwl" "July 2022" "RWP*Load Simulator" "Utilities Syntax"
22
.SH NAME
3-
sqlmonitor.rwl \- Create sql monitor from gv$sql views
3+
sqlmonitor \- Create sql monitor from gv$sql views
44
.SH SYNOPSIS
5-
\fBrwloadsim [options] -u -l u/p@c sqlmonitor.rwl sqlid \fR
5+
\fBsqlmonitor [options] -l u/p@c sqlid \fR
66
.P
7-
For the provided sqlid, the sqlmonitor.rwl utility creates sql monitor from
7+
For the provided sqlid, the sqlmonitor utility creates a sql monitor from
88
the shared pool of the database using dbms_sql_monitor.report_sql_monitor.
99
The output is written to a file named with the sqlid and a suffix of .html
1010
unless the --output-file option is provided.
@@ -13,13 +13,8 @@ the current.
1313
.P
1414
The dbms_sql_monitor.report_sql_monitor has several ways to provide information
1515
about which of potentially many sql monitors to output and some of these
16-
are available using sqlmonitor.rwl
16+
are available as options to sqlmonitor.
1717
.SH OPTIONS
18-
\fB-u\fR
19-
.RS 4
20-
Compulsory option to find the sqlmonitor.rwl script in the public directory.
21-
.RE
22-
.P
2318
.B -l u/p
2419
.P
2520
.B -l u/p@c
@@ -73,7 +68,7 @@ Exactly one sqlid must be provided.
7368
.SH EXAMPLE
7469
.nf
7570
\fC
76-
rwloadsim -ul system/{password} sqlmonitor.rwl 07rw9znc8g7aj
71+
sqlmonitor -l system/{password} 07rw9znc8g7aj
7772
\fR
7873
.fi
7974
.P

0 commit comments

Comments
 (0)