jcs.operator_message

on-site-related topic PL/SQL API jcs.operator_message

Summary

Send a notice (message) to the operator or ask the operator a question.

Messages and questions end up in the Operator Message log, which can be filtered using the client tools.

During this time that the operator has not replied yet the job will be in the CONSOLE status.

Specification

Copy
procedure operator_message(text in varchar2,
p_jobid in number default null,
p_severity in varchar2 default null)

Send the operator a message.

Parameters

  • text - the text to send to the operator
  • p_jobid - override the job ID the message is sent as (optional)
  • p_severity - an optional severity of the message If defined this must be one of the severities from rs_monitor_severities

Transaction keyword

The transaction keyword defines how and/or when the changes are committed to the database. A definition of the various transaction keywords can be found on the jcs package summary page.

autonomous

Specification

Copy
function operator_message(text in varchar2,
defvalue in varchar2,
format in varchar2 default null,
checkstr in varchar2 default null,
errormsg in varchar2 default null,
p_severity in varchar2 default null)
    return varchar2

Ask the operator a question and return the answer as a string.

Parameters

  • text - the text to send to the operator
  • defvalue - default reply displayed on the console
  • format - input format that the reply must be in (for dates and numbers)
  • checkstr - expression that validates the reply
  • errormsg - message given when reply fails validation
  • p_severity - an optional severity of the message If defined this must be one of the severities from rs_monitor_severities
  • returns varchar2 - reply given by the operator

Transaction keyword

The transaction keyword defines how and/or when the changes are committed to the database. A definition of the various transaction keywords can be found on the jcs package summary page.

blocks

Specification

Copy
function operator_message(text in varchar2,
defvalue in timestamp with time zone,
format in varchar2 default null,
checkstr in varchar2 default null,
errormsg in varchar2 default null,
p_severity in varchar2 default null)
    return timestamp with time zone

Ask a question that has a timestamp answer.

Parameters

  • text - the text to send to the operator
  • defvalue - default reply displayed on the console
  • format - input format that the reply must be in (for dates and numbers)
  • checkstr - expression that validates the reply
  • errormsg - message given when reply fails validation
  • p_severity - an optional severity of the message If defined this must be one of the severities from rs_monitor_severities
  • returns timestamp with time zone -

Specification

Copy
function operator_message(text in varchar2,
defvalue in date,
format in varchar2 default null,
checkstr in varchar2 default null,
errormsg in varchar2 default null,
p_severity in varchar2 default null)
    return date

Ask a question that has a date answer.

Parameters

  • text - the text to send to the operator
  • defvalue - default reply displayed on the console
  • format - input format that the reply must be in (for dates and numbers)
  • checkstr - expression that validates the reply
  • errormsg - message given when reply fails validation
  • p_severity - an optional severity of the message If defined this must be one of the severities from rs_monitor_severities
  • returns date -

Specification

Copy
function operator_message(text in varchar2,
defvalue in number,
format in varchar2 default null,
checkstr in varchar2 default null,
errormsg in varchar2 default null,
p_severity in varchar2 default null)
    return number

Ask a question that has a number answer.

Parameters

  • text - the text to send to the operator
  • defvalue - default reply displayed on the console
  • format - input format that the reply must be in (for dates and numbers)
  • checkstr - expression that validates the reply
  • errormsg - message given when reply fails validation
  • p_severity - an optional severity of the message If defined this must be one of the severities from rs_monitor_severities
  • returns number -

See Also