oltpdirecotry

NAME
SYNOPSIS
OPTIONS
USAGE
COPYRIGHT
SEE ALSO

NAME

oltprunnumber − Print a runnumber of list of runnumbers

SYNOPSIS

oltprunnumber [-h|-H|--help] [-k|--key key] [-a|--all] [-c|--completed-only] [--hostname hostname]

OPTIONS

-k|--key

By default, the latest runnumber with the key mentioned in the RWLOLTP_NAME environment is printed to stdout. A different key can be provided using this option.

-a|--all

Rather than printing the latest, print all runnumbers sorted by increasing run dates, each on a separate line.

-c|--completed-only

Only consider run that have completed.

--hostname hostname

Rather than the current hostname, provide a different one. Either the actul or the one provided will be looked up as the HOSTNAME column of the RWLRUN table.

-h|-H|--help

Only output a short help.

USAGE

The oltprunnumber command is primarily used if you want to do some extra processing of data from some runnumber. In such a case, you can use the $(oltprunnumber) syntax in your shell to get the latest runnumber. If used after running oltpscale, you may want to do some extra processing of data from all runs in that oltpscalerun. In such a case, you can use something like

for rno in $(oltprunnumber -a -k yourscalekey)
do
  # do something
done

When the -a option is not used, and if no rownumber matching the key and hostname is found, a single 0 will still be output, which may be useful to allow your shell script to continue. Additionally, an error is printed to stderr.

COPYRIGHT

Copyright © 2023 Oracle Corporation
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl

SEE ALSO

oltprun(2rwl), oltpparams(2rwl), oltpdirectory(2rwl)