Dokumentation   Wozu der Job verwendet wird.

Der Job führt ein SQL*Plus Skript aus. Der Job startet den SQL*Plus Client in einem eigenen Prozeß. Dabei behält der Job die Kontrolle über den Programmablauf.

Bei der Verwendung des SQL*Plus Clients ist es möglich, zum einen eine dedizierte Fehlerauswertung zu erhalten und zum anderen die Folgesteuerung in einer Job-Kette zu erleichtern. Ebenso nützlich ist es, daß direkt in der Ausgabe des Scripts enthaltene Informationen in Parameter zu transferieren.

Wie wird das auszuführende Script definiert?

Das Skript kann in einer separaten Datei gespeichert sein. Oder es kann als Wert des Parameters sqlplus_script_file angegeben werden.

Bevor der SQL*Plus Client zur Ausführung des Skriptes gestartet wird, wird das Script durch den Job modifiziert. Zunächst wird für jeden Parameter eine "DEFINE" Direktive erzeugt. Diese Direktiven werden in eine temporäre Datei geschrieben. Danach werden die evtl. angegebenen Code-Fragmente (siehe include_files ) als nächsten Block in die temporäre Datei kopiert. Anschliessend werden im Script alle direkt angegebenen Namen der JobScheduler Parameter durch ihren aktuellen Wert substitutiert. Das Skript wird als letzer Teil in die temporäre Datei geschrieben.

Mit der temporären Datei als Eingabedatei wird der Client gestartet.

Wie können im Skript Parameter verwendet werden?

Parameter des Jobs, also Job- oder Auftrags-Parameter, können im Script auf zwei Arten verwendet werden. Zum einen sind alle Parameter über Ihren Namen, mit einem vorangestelltem "&", im Script anwendbar. Sie werden als SQL*Plus Variable vom Job definiert. Der Job erzeugt für jeden Parameter eine "DEFINE"-Direktive.

Zum anderen können die Namen der JobScheduler Parameter direkt im Skript verwendet werden. Diese Namen werden dann durch den aktuellen Wert des Parameters ersetzt.

Wie wird auf STDOUT und STDERR zugegriffen?

Der Inhalt von STDOUT als auch STDERR werden als Werte der entsprechenden Auftrags-Parameter vom Job in den Auftrag übertragen. Damit kann jeder Folge-Schritt in einer Job-Kette auf diese Information zugreifen.

Wie können Ergebnisse in Folgejobs weiterverwendet werden?

Der Job ergänzt den Auftrag um entsprechende Parameter. Zum einen sind dies statische Parameter, wie sie im Template in dem Abschnitt "return Parameter" beschrieben sind. Zum anderen sind dies dynamische Parameter. Der Job parsiert die Ausgaben des Skripts und extrahiert daraus, unter Verwendung eines regulären Ausdrucks, sowohl die Namen als auch die Werte dieser Parameter. Der reguläre Ausdruck wird mit dem Parameter variable_parser_reg_exp definiert.

Diese Parameter sind von allen Jobs in allen Job-Schritten lesbar. Der Wert der Parameter kann auch von anderen Jobs in später auszuführenden Job-Schritten verändert werden.

Wie werden Fehler erkannt und behandelt?

Der Job kann Fehler erkennen, die vom SQL*Plus Client gemeldet werden. Diese haben eine Nummer, die mit der Zeichenfolge "SP2-" beginnt.

Ausserdem kann der Job Fehler erkennen, die der DB-Server bei oder nach der Ausführung des Skriptes meldet. Diese beginnen mit der Zeichenfolge "ORA-" und enthalten dann ebenfalls eine Nummer.

Tritt entweder ein SP2- oder ein ORA-Fehler auf, so wird der Job fehlerhaft beendet. Der Return-Code 98 wird gesetzt.

Zusätzlich ist der Fehlertext als Wert des Parameters sql_error in den Auftragsparametern gespeichert.

Können Fehler ignoriert werden?

Es gibt über die Parameter ignore_sp2_messages und ignore_ora_messages die Möglichkeit, alle oder einzelne Fehler zu ignorieren. Sie sind im STDOUT enthalten, auch wenn sie ignoriert werden.

WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE

column end_date new_value BCY_DATE
column period new_value PN_YEAR_PERIOD
column period_prev new_value PN_YEAR_PERIOD_PREV

select '0' as end_date from dual;
prompt SET end_date IS &BCY_DATE;
/
select '0' as period from dual;
prompt SET period IS &PN_YEAR_PERIOD;
/
select '0' as period_prev from dual;
prompt SET period_prev IS &PN_YEAR_PERIOD_PREV;
/
prompt SET end_date IS 1;
exit;

Class Name/ Titel SOSSQLPlusJob  Start SQL*Plus client and execute sql*plus scripts
  Auftragssteuerung Dieser Job kann durch Aufträge oder durch Job-Starts veranlasst ablaufen.
  Tasks unbounded
  Skript
Konfiguration    
  Parameter
ignore_ora_messages
[optional] Oracle "ORA-" Fehler ignorieren

Fehlermeldungen des Oracle Datenbank-Servers, in der Form ORA-nnnnn, werden von diesem Job erkannt und führen nomalerweise dazu, daß der Job mit einer Fehlermeldung abgebrochen wird. Läuft der Job in einer Job-Kette so wird dann der nächste auszuführende Schritt (Step) über den "error-state" emittelt.

Sollen bestimmte Fehlermeldungen ignoriert werden, so kann dies mit diesem Parameter festgelegt werden.

Als Wert dieses Parameters sind die Nummern der Oracle Fehlermeldungen, die nicht als Fehler interpretiert werden sollen zu spezifizieren. Mehrere Nummern sind durch ein Semikolon ";" zu trennen. Dabei ist der Text "ORA-" nicht anzugeben.

Datentyp: SOSOptionStringValueList
Default: ---

This parameter is introduced with version 1.3.12.2268

ignore_sp2_messages
[optional] Zu ignorierende SQL*Plus Fehler

Fehlermeldungen des SQL*Plus Clients, in der Form SP2-nnnnn, werden von diesem Job erkannt und führen nomalerweise dazu, daß der Job mit einer Fehlermeldung abgebrochen wird. Läuft der Job in einer Job-Kette so wird dann der nächste auszuführende Schritt (Step) über den "error-state" emittelt.

Sollen bestimmte Fehlermeldungen ignoriert werden, so kann dies mit diesem Parameter festgelegt werden.

Als Wert dieses Parameters sind die Nummern der SQL*Plus Fehlermeldungen, die nicht als Fehler interpretiert werden sollen zu spezifizieren. Mehrere Nummern sind durch ein Semikolon ";" zu trennen. Dabei kann der Text "SP2-" weggelassen werden.

Datentyp: SOSOptionStringValueList
Default: ---

This parameter is introduced with version 1.3.12.2268

shell_command
[erforderlich] Dateiname des SQL*Plus Clients

Der Wert dieses Parameters spezifiziert den Namen des SQL*Plus Clients, der für die Ausführung des SQL*Plus Codes verwendet werden soll.

Falls der Pfad-Name, in dem der Client installiert wurde, in der Path-Variablen enthalten ist, so kann die Angabe des Pfades entfallen. (Standard für eine Installation ist ${ORACLE_HOME}/bin).

Datentyp: SOSOptionInFileName
Default: sqlplus.exe
sqlplus_script_file
[optional] SQL*Plus Script

Der Wert des Parameters enthält eine oder mehrer Zeilen, die zusammen ein (SQL)Skript bilden. Alternativ kann als Wert des Parameters der Name einer Datei angegeben werden, die das auszuführende Script enthält.



WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE

column end_date new_value BCY_DATE
column period new_value PN_YEAR_PERIOD
column period_prev new_value PN_YEAR_PERIOD_PREV

select '0' as end_date from dual;
prompt SET end_date IS &BCY_DATE;
/
select '0' as period from dual;
prompt SET period IS &PN_YEAR_PERIOD;
/
select '0' as period_prev from dual;
prompt SET period_prev IS &PN_YEAR_PERIOD_PREV;
/
prompt SET end_date IS 1;
exit;



<param  name="command_script_file" value="
WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE

column end_date new_value BCY_DATE
column period new_value PN_YEAR_PERIOD
column period_prev new_value PN_YEAR_PERIOD_PREV

select '0' as end_date from dual;
prompt SET end_date IS &BCY_DATE;
/
select '0' as period from dual;
prompt SET period IS &PN_YEAR_PERIOD;
/
select '0' as period_prev from dual;
prompt SET period_prev IS &amp;PN_YEAR_PERIOD_PREV;
/
prompt SET end_date IS &BCY_DATE;
exit;
"/>

Parameter-Wert über mehrere Zeilen
Der Wert eines Parameters kann zeilenweise angeordnet sein. Dabei ist zu beachten (wie ansonsten auch), daß xml-spezifische Zeichen in Entities umgesetzt werden müssen, damit die Wohlgeformtheit des XMLs erhalten bleibt.

        ...
        <param  name="sqlplus_script_file" value="./config/live/sqlplus/sqlplus2.sql"/>
        ...
Parameter-Wert aus Datei lesen
Hier wird der Parameterwert von einer Datei geladen. Die Datei muß existieren Datentyp: SOSOptionCommandString
Alias: command_script_file
Default: ---
db_url
[erforderlich] SID der Datenbankverbindung

Die Datenbankverbindung wird aus den Parameter db_url, db_user und db_password gebildet: db_user/db_password@db_url, z.B.

               sys/sys_admin@localhost as sysdba
               
               scheduler/scheduler@scheduler
        
Datentyp: SOSOptionString
Default: ---
variable_parser_reg_expr
[optional] Regulärer Ausdruck für Parameter Parser

Die Ausgabe des Skripts, normalerweise STDOUT, wird mit dem hier angegebenen Ausdruck parsiert und die Treffer als Auftrags-Parameter zu Verfügung gestellt.

  • Der reguläre Ausdruck muss zwei Gruppen enthalten.
  • Die erste Gruppe steht für den Parameternamen und die zweite für den Parameterwert.

Der 'prompt'-Befehl im SQL*Plus Code liefert die Ausgabe. Hier ein Beispiel:

            WHENEVER SQLERROR EXIT SQL.SQLCODE
            WHENEVER OSERROR EXIT FAILURE
            prompt ready;
            prompt foo = bar;
            prompt SET hello IS world;
            exit;
               

Die 'dbms_output.put_line()'-Funktion im PL/SQL liefert die Ausgabe. Hier ein Beispiel:

            begin
                dbms_output.put_line('ready');
                dbms_output.put_line('Set hello IS world');
                dbms_output.put_line('foo = bar');
            end;
               
  • variable_parser_reg_expr="^SET\\s+([^\\s]+)\\s*IS\\s+(.*)$" liefert den Auftrags-Parameter "hello=world"
  • variable_parser_reg_expr="^([^=]+)\\s*=\\s+(.*)$" liefert den Auftrags-Parameter "foo=bar"
Datentyp: SOSOptionRegExp
Alias: VariableParserRegExpr
Default: ^SET\\s+([^\\s]+)\\s*IS\\s+(.*)$
db_user
[optional] Benutzer-ID des Datenbank-Benutzers

Datenbank User

Datentyp: SOSOptionUserName
Default: ---
db_password
[optional] Passwort des Datenbankbennutzers
Datenbank Passwort Datentyp: SOSOptionPassword
Default: ---
Command_Line_options
[optional] SQL*Plus Client Optionen

Die Optionen, die das Verhalten des SQL*Plus Clients steuern, sind als Wert dieser Option anzugeben.

Datentyp: SOSOptionString
Default: -S -L

This parameter is introduced with version 1.3.12.2268

include_files
[optional] Einzufügende Code-Fragmente

Mit diesem Parameter können Code-Fragmente angegeben werden, die zusätzlich zum auszuführenden SQL*Plus Code, ausgeführt werden. Der SQL*Plus Code wird um den Code dieser Fragmente temporär vor der Ausführung erweitert. Es sind die Namen der Dateien anzugeben, durch Semikolon getrennt, die die Code-Fragmente enthalten. Der Inhalt der Dateien wird an den Anfang des SQL*Plus Codes eingefügt.

Datentyp: SOSOptionString
Default: ---

This parameter is introduced with version 1.3.12.2268

  Return Parameter
sql_error
[optional] Fehlermeldungen des Clients oder des Servers

Kommt es bei der Ausführung des Codes zu einem (oder mehreren) Fehlern, so wird der Fehlertext auf dieser Variablen im Auftrag gespeichert. Ist kein Fehler aufgetreten, so ist der Inhalt der Variablen leer.

Datentyp: SOSOptionString
Default: ---
std_out_output
[optional] Inhalt derAusgabe nach STDOUT

Die Ausgabe des Prozesses nach STDOUT wird in diesem Parameter gespeichert.

Default: ---
std_err_output
[optional] Inhalt des Fehlerprotokolls STDERR

Die Ausgabe des Prozesses nach STDOUT wird in diesem Parameter gespeichert.

Default: ---
exit_code
[optional] Exit Code des Jobs

Der Exit-Code des Prozesses wird als Wert dieser Variablen gespeichert. Wurde der Prozess ohne Fehler beendet so ist der Wert "0".

Datentyp: SOSOptionString
Default: ---
  Parameter
XML Code zur Konfiguration des Jobs
  <job
     title = "Start SQL*Plus client and execute sql*plus scripts"
     order = "yes"  stop_on_error = "no" >

     <description>
       <include file = "jobs/SOSSQLPlusJob.xml" />
     </description>
    
     <params>
       <param name = "ignore_ora_messages" value = "" />
       <param name = "ignore_sp2_messages" value = "" />
       <param name = "shell_command" value = "sqlplus.exe" />
       <param name = "sqlplus_script_file" value = "" />
       <param name = "db_url" value = "" />
       <param name = "variable_parser_reg_expr" value = "^SET\\s+([^\\s]+)\\s*IS\\s+(.*)$" />
       <param name = "db_user" value = "" />
       <param name = "db_password" value = "" />
       <param name = "Command_Line_options" value = "-S -L" />
       <param name = "include_files" value = "" />
     </params>

     <script language   = "java"
             java_class = "sos.scheduler.db.SOSSQLPlusJobJSAdapterClass" >
     </script>
</job>
Releases 1.0 Version 1.7
2012-09-27 [ letzte Änderung 2012-09-27 ]
kb kb sos-berlin.com
Kommentar Initiales Release
Ressourcen
Dateiname Typ OS Kommentar Source-Dokumentation
com.sos.scheduler-*.jar java all

Source: com.sos.scheduler
com.sos.spooler-*.jar java all

com.sos.settings-*.jar java all

Klasse SOSProfileSettings

Source: com.sos.settings
com.sos.util-*.jar java all
Klassen SOSFile, SOSSchedulerLogger
Source: com.sos.util
log4j-x.x.x.jar java all

Apache log4j wird unter der Apache Lizenz 2.0 veröffentlicht und ist open source. Weitere Lizenzen der Apache Software Foundation finden Sie hier .

Die Dokumentation für dieses Paket ist zu finden unter logging.apache.org .

Copyright © 2011 The Apache Software Foundation. Licensed under the Apache Software License, Version 2.0.

Apache Extras Companion for Apache log4j, Apache log4j, Apache, the Apache feather logo, the Apache Logging Services project logo, the log4j logo, and the Built by Maven logo are trademarks of The Apache Software Foundation. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

com.sos.VirtualFileSystem-*.jar java all SOS Virtual File System

Source: com.sos.VirtualFileSystem
com.sos.JSHelper-*.jar java all

Source: JobSchedulerHelper

Documentation   What is the purpose of this job?

The job executes a SQL*Plus script. The job runs the SQL*Plus client in a separate process. It keeps the job in control of the program flow.

How is the script defined?

The script can be saved to a separate file. Or it can be specified as the value of the parameter sqlplus_script_file .

Before the SQL*Plus client is launched for execution of the script, the script is modified by the job. First, for each parameter a "DEFINE" directive is generated. These directives are written to a temporary file. Thereafter, the specified code fragments (see include_files ) as the next block in the temporary file is copied. Subsequently, all directly specified name of JobScheduler parameters are substituted by their current value. The script is written as the last part to the temporary file.

With the temporary file as input the client is started.

How is it possible to use parameter in scripts?

Parameters of the job, job or job parameters, can be used in the script in two ways. Firstly, all parameters of their name, apply with a preceding "&" in the script. They are defined as SQL*Plus variables by the job. The job created for each parameter a "DEFINE" directive.

Secondly, the name of the JobScheduler parameters are used directly in the script. These names are then replaced by the current value of the parameter.

How do I access stdout and stderr?

The contents of STDOUT and STDERR are as values ​​of the corresponding order parameters of the job transferred to the order. Thus, every subsequent step in a job chain has access to this information.

How can results be reused in subsequent jobs?

The job transfers the appropriate parameters in the order. The first of these are static parameters, such as those in the template docu described in the section "return parameters". On the other hand, these are dynamic parameters. The job analyzing the output of the script, and extracted there from using a regular expression, both Names and the values ​​of these parameters. The regular expression is defined by the parameter variable_parser_reg_exp .

These parameters are readable by all jobs in all job steps. The value of the parameter can be changed by other jobs.

How are errors are detected and treated?

The job can detect errors that are reported by the SQL * Plus client. These have a number that starts with the string "SP2".

Moreover, the job can detect errors that the DB server reported during or after the execution of the script. These begin with the string "ORA" and then also contain a number.

Occurs either SP2 or an ORA-error occurs, the job is terminated abnormally. A return code of 98 is set.

Additionally, the error message is as value of the parameter sql_error stored in the order parameters.

Errors may be ignored?

It is possible to ignore errors. There are parameters ignore_sp2_messages and ignore_ora_messages . There the numbers of ignored errors are specified as values​​. The error messages are contained in the STDOUT, ​​even if they are ignored.

WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE

column end_date new_value BCY_DATE
column period new_value PN_YEAR_PERIOD
column period_prev new_value PN_YEAR_PERIOD_PREV

select '0' as end_date from dual;
prompt SET end_date IS &BCY_DATE;
/
select '0' as period from dual;
prompt SET period IS &PN_YEAR_PERIOD;
/
select '0' as period_prev from dual;
prompt SET period_prev IS &PN_YEAR_PERIOD_PREV;
/
prompt SET end_date IS 1;
exit;

Class Name/ Title SOSSQLPlusJob  Start SQL*Plus client and execute sql*plus scripts
  Order Control This job is triggered by orders or by standard job starts.
  Tasks unbounded
  Script
Configuration    
  Parameters
ignore_ora_messages
[optional] Ignore "ORA-" errors

The value of this parameter are the numbers of the Oracle error messages that should not be interpreted as an error to specify. Multipe error numbers must be separated by a colon (;). The text "ORA-" may be omitted.

DataType: SOSOptionStringValueList
Default: ---

This parameter is introduced with version 1.3.12.2268

ignore_sp2_messages
[optional] Ignore SQL*Plus Errors

The value of this parameter are the numbers of the SQL*Plus error messages that should not be interpreted as an error to specify. Multipe error numbers must be separated by a colon (;). The text "SP2-" may be omitted.

DataType: SOSOptionStringValueList
Default: ---

This parameter is introduced with version 1.3.12.2268

shell_command
[required] Name of the SQL*Plus Client executable

The value of this parameter specifies the name of the SQL*Plus client. The SQL*Plus code is processed by the client.

DataType: SOSOptionInFileName
Default: sqlplus.exe
sqlplus_script_file
[optional] SQL*Plus Script

The value of the parameter contains one or more lines ot text, which together is a (SQL*Plus) script. Alternatively, the name of a file can be specified that contains the script.



WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE

column end_date new_value BCY_DATE
column period new_value PN_YEAR_PERIOD
column period_prev new_value PN_YEAR_PERIOD_PREV

select '0' as end_date from dual;
prompt SET end_date IS &BCY_DATE;
/
select '0' as period from dual;
prompt SET period IS &PN_YEAR_PERIOD;
/
select '0' as period_prev from dual;
prompt SET period_prev IS &PN_YEAR_PERIOD_PREV;
/
prompt SET end_date IS 1;
exit;



<param  name="command_script_file" value="
WHENEVER SQLERROR EXIT SQL.SQLCODE
WHENEVER OSERROR EXIT FAILURE

column end_date new_value BCY_DATE
column period new_value PN_YEAR_PERIOD
column period_prev new_value PN_YEAR_PERIOD_PREV

select '0' as end_date from dual;
prompt SET end_date IS &BCY_DATE;
/
select '0' as period from dual;
prompt SET period IS &PN_YEAR_PERIOD;
/
select '0' as period_prev from dual;
prompt SET period_prev IS &amp;PN_YEAR_PERIOD_PREV;
/
prompt SET end_date IS &BCY_DATE;
exit;
"/>

Parameter value with many lines
The value of a parameter can be arranged in lines. It should be noted (as well as otherwise) that xml specific characters must be converted to entities in order obtain the well-formedness of XML.

        ...
        <param  name="sqlplus_script_file" value="./config/live/sqlplus/sqlplus2.sql"/>
        ...
Parameter value from file
DataType: SOSOptionCommandString
Alias: command_script_file
Default: ---
db_url
[required] SID of the database connection

The database connection is formed with the parameters db_url, db_user and db_password : db_user/db_password@db_url, e.g.

               sys/sys_admin@localhost as sysdba
               
               scheduler/scheduler@scheduler
        
DataType: SOSOptionString
Default: ---
variable_parser_reg_expr
[optional] Regular Expression for Parameter parsing

The script output will parse with this regular expression. The hits are available as order parameters.

  • The regular expression must have two groups.
  • The first group for the parameter name and the second for the value.

The 'prompt' in SQL*Plus writes the output. Example:

            WHENEVER SQLERROR EXIT SQL.SQLCODE
            WHENEVER OSERROR EXIT FAILURE
            prompt ready;
            prompt foo = bar;
            prompt SET hello IS world;
            exit;
               

The 'dbms_output.put_line()' function in PL/SQL writes the output. Example:

            begin
                dbms_output.put_line('ready');
                dbms_output.put_line('Set hello IS world');
                dbms_output.put_line('foo = bar');
            end;
               
  • variable_parser_reg_expr="^SET\\s+([^\\s]+)\\s*IS\\s+(.*)$" returns the order parameter "hello=world"
  • variable_parser_reg_expr="^([^=]+)\\s*=\\s+(.*)$" returns the order parameter "foo=bar"

Some remarks on regular expression, used in JobScheduler.

A regular expression is not a wildcard . To get an impression of the differences one have a look on the meaning of the wildcard *.txt, which will select all filenames with the filename-extension ".txt". A regular expression to match, e.g. works the same way, this "wildcard" must look like "^.*\.txt$". That looks a little bit strange but it is much more flexible and powerfull on filtering filenames than the concept of wildcards, if one want to filter more complex names or pattern.

The general syntax of an regular expression, also referred to as regex or regexp, is described here. It is different to other RegExp definitions, e.g. as for Perl.

For further information on regular expressions see java.util.regex.Pattern

DataType: SOSOptionRegExp
Alias: VariableParserRegExpr
Default: ^SET\\s+([^\\s]+)\\s*IS\\s+(.*)$
db_user
[optional] User-ID of the database user

database user

DataType: SOSOptionUserName
Default: ---
db_password
[optional] Password of the database user
database password DataType: SOSOptionPassword
Default: ---
Command_Line_options
[optional] SQL*Plus Client Options

The value of this parameter contains the options which are available for the SQL*PLUS client on the command-line.

DataType: SOSOptionString
Default: -S -L

This parameter is introduced with version 1.3.12.2268

include_files
[optional] Code Fragments to include

This parameter can be specified for code fragments, which are additional to execute the SQL*Plus code. The SQL*Plus code is temporary extendes by these fragments. You must specify the names of files, separated by a semicolon, which contain the code fragments. The contents of the files will be temporaryl inserted at the beginning of the SQL*Plus codes.

DataType: SOSOptionString
Default: ---

This parameter is introduced with version 1.3.12.2268

  Return Parameters
sql_error
[optional] Error Messages of the client or the server

If during the execution of the code one (or more) errors occurs, the error-text will be stored on this variable in the order. If no error occurs then the contents of the variable will remain empty.

DataType: SOSOptionString
Default: ---
std_out_output
[optional] Content of STDOUT

The output of the process into STDOUT is reported as the value of this parameter.

Default: ---
std_err_output
[optional] Content of STDERR

The output of the process into STDOUT is reported as the value of this parameter.

Default: ---
exit_code
[optional] Job exit code

The exit code of the process is the value of this parameter. The exit code is zero if the process ended without any error.

DataType: SOSOptionString
Default: ---
  Parameters
XML Code to configurate the job
  <job
     title = "Start SQL*Plus client and execute sql*plus scripts"
     order = "yes"  stop_on_error = "no" >

     <description>
       <include file = "jobs/SOSSQLPlusJob.xml" />
     </description>
    
     <params>
       <param name = "ignore_ora_messages" value = "" />
       <param name = "ignore_sp2_messages" value = "" />
       <param name = "shell_command" value = "sqlplus.exe" />
       <param name = "sqlplus_script_file" value = "" />
       <param name = "db_url" value = "" />
       <param name = "variable_parser_reg_expr" value = "^SET\\s+([^\\s]+)\\s*IS\\s+(.*)$" />
       <param name = "db_user" value = "" />
       <param name = "db_password" value = "" />
       <param name = "Command_Line_options" value = "-S -L" />
       <param name = "include_files" value = "" />
     </params>

     <script language   = "java"
             java_class = "sos.scheduler.db.SOSSQLPlusJobJSAdapterClass" >
     </script>
</job>
Releases 1.0 Version 1.7
2012-09-27 [ Last Changes 2012-09-27 ]
kb kb sos-berlin.com
Comment Initial Release
Resources
Filename Type OS Comment Source documentation
com.sos.scheduler-*.jar java all

Source: com.sos.scheduler
com.sos.spooler-*.jar java all

com.sos.settings-*.jar java all

Class SOSProfileSettings, processing of init-files

Source: com.sos.settings
com.sos.util-*.jar java all
Classes SOSFile, SOSSchedulerLogger
Source: com.sos.util
log4j-x.x.x.jar java all

Apache log4j is licenced under the Apache License 2.0 and is open source. More infos about the licencing model of ASF (Apache Software Foundation) is available here .

Copyright © 2011 The Apache Software Foundation. Licensed under the Apache Software License, Version 2.0.

Apache Extras Companion for Apache log4j, Apache log4j, Apache, the Apache feather logo, the Apache Logging Services project logo, the log4j logo, and the Built by Maven logo are trademarks of The Apache Software Foundation. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

com.sos.VirtualFileSystem-*.jar java all SOS Virtual File System

Source: com.sos.VirtualFileSystem
com.sos.JSHelper-*.jar java all

Source: JobSchedulerHelper