| LEHS - Log- and Exception Handling System for ORACLE | |||||
FRAMES NO FRAMES | ||||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |
This Package is for the maintanance of the Log-System
FATAL
,ERROR
,WARN
,INFO
,DEBUG
,TRACE
)
NULL
) then the least available Log-Level of the
Log-Application will be taken to log Exceptions.
PKG_LEHS_TABLE_APPENDER
(PKG_LEHS_SYSTEM.grant_privs (pi_read_only => TRUE)
,
this is the Default when granting a Privilege) or the User can also write
Log-Messages to this Log-Application
(PKG_LEHS_SYSTEM.grant_privs (pi_read_only => FALSE)
)
When you grant the Privilege to a Role, every User which has been granted
this Role is able to use the Log-Application in the Way described above.
PUBLIC
then all Users
of the Database are able to use the Log-Application in the Way described
above.
By Default, Users with the Role DBA
or LEHS_ADMIN
are able to see all Information of any Log-Application.
A_ROLE
, the User
A_USER
has been granted this Role. The Log-Application
A_LOG_APPLICATION
has Privileges for the User PUBLIC
(read only), the Role A_ROLE
(read/write) and the User
A_USER
(read only). If the User has at least one read/write
Privilege on one of these Grants in the Chain, the User has the Ability
to write to this Log-Application (also when the User itself has only
read only Privileges to this Application because the Role A_ROLE
,
where the User has been granted to, has read/write Permissions).
log
with only one Parameter of Datatype
PKG_LEHS_APPENDER.pr_log_line
. This Procedure will be called
by LEHS for every Log-Entry and every registered Log-Appender to the
Log-Application.
The're existing 5 pre-programmed Log-Appenders you can register to
every Log-Application
Package | Destination |
---|---|
PKG_LEHS_ALERT_LOG_APPENDER |
Writes the Log-Message to the Alert-Log of the Database |
PKG_LEHS_APP_INFO_APPENDER |
Writes Parts of a Log-Message to the View V$SESSION
by the Package DBMS_APPLICATION
|
PKG_LEHS_DBMS_OUTPUT_APPENDER |
Writes the Log-Message to the Console by the Package
DBMS_OUTPUT . Be aware of setting the Log-Buffer of
this Package just before you start your Application (on SQL*Plus
by calling SET SERVEROUTPUT ON SIZE UNLIMITED ).
|
PKG_LEHS_TABLE_APPENDER |
Writes the Log-Message to the Table LEHS_LOG_TABLE_BASIC
which a User can query by the View LEHS_LOGS (in
accordance to its Privileges of the Log-Application)
|
PKG_LEHS_TRACE_FILE_APPENDER |
Writes the Log-Message to the Trace-File of the actual Session |
Package Name | Parameter | Datatype | possible Values | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PKG_LEHS_ALERT_LOG_APPENDER |
LOG_FORMAT |
CLOB |
Format String (look at
PKG_LEHS_APPENDER.format_log_message )
|
|||||||||||||||
PKG_LEHS_APP_INFO_APPENDER |
MIN_LOG_LEVEL |
CLOB |
all available Log-Levels of the Log-Application | the minimum Log-Level of the Log-Message. If a Log-Message has a Log-Level below this minimum Log-Level the Log-Message will not be logged by this Appender | ||||||||||||||
ACTION |
CLOB |
|
prints the given Part of the Log-Message (see possible Values)
to the Field V$SESSION.action
(truncated to 32 Characters)
|
|||||||||||||||
MODULE |
CLOB |
|
prints the given Part of the Log-Message (see possible Values)
to the Field V$SESSION.module
(truncated to 48 Characters)
|
|||||||||||||||
CLIENT_INFO |
CLOB |
|
prints the given Part of the Log-Message (see possible Values)
to the Field V$SESSION.client_info
(truncated to 64 Characters)
|
|||||||||||||||
PKG_LEHS_DBMS_OUTPUT_APPENDER |
LOG_FORMAT |
CLOB |
Format String (look at
PKG_LEHS_APPENDER.format_log_message )
|
|||||||||||||||
PKG_LEHS_TABLE_APPENDER |
RETENTION_TIME |
NUMBER |
0 - 99999 | Retention Time (in Minutes) for the Log-Entries | ||||||||||||||
REMOVE_UNUSED_TRANSACTIONS |
CLOB |
|
Should unused Transactions be removed (regardless of the
Retention Time) (Default: FALSE ).
|
|||||||||||||||
REMOVE_LOGS_IN_OPEN_TRX |
CLOB |
|
Should Log-Entries with open Transactions be removed by the
Cleanup-Procedure (Default: FALSE )
|
|||||||||||||||
PKG_LEHS_TRACE_FILE_APPENDER |
LOG_FORMAT |
CLOB |
Format String (look at
PKG_LEHS_APPENDER.format_log_message )
|
01
' to
'99'
(remember: Log-Levels are always alphanumeric, therefor
the Log-Levels are quoted) or if you define Log-Levels like
'John
', 'Rambo
', 'Sylvester
' and
'Stallone
'. The fact is, the Developer should have a Knowledge
of the Log-Levels defined to this Log-Application because he/she must
provide this Log-Level by every Log-Entry he/she makes within his/her
PL/SQL-Application.
The following Log-Levels are a good starting Point
FATAL
ERROR
WARN
INFO
DEBUG
TRACE
|
||||||||||||||||||||||
PKG_LEHS.info ('This is an Information Line');
than calling
PKG_LEHS.log (pc_info_log_level, 'This is an Information Line')
.
Chapter 1 Chapter 1.1 Chapter 1.1.1 Chapter 1.1.2 Chapter 1.2 Chapter 1.2.1 Chapter 2 Chapter 2.1 Chapter 2.2 Chapter 2.2.1 Chapter 2.2.2 Chapter 2.2.3 Chapter 2.3 Chapter 3Just for the Log-Adminstrator: Slow down. The PL/SQL-Application justifies its own Topics with the Log-Application. In normal Case the Log-Adminstrator has not to intervene manually.
USER_LEHS_LOGS
.
USER_LEHS_TRANSACTIONS
. Why do this? Let me show by a simple
Example:pi_something
.
User X calls this Procedure with "X" as the Value of the Parameter pi_something
.
User Y calls this Procedure with "Y" as the Value of the Parameter pi_something
.
pi_something
. This can simple be done if you set the
Parameter pi_something
as a Keyword to the Log-Transaction.
Attention: The Value of the Keys will be translated during the Query of
USER_LEHS_TRANSACTIONS
. Means, if you add a Date Key, the Date-Value
will be stored and will be automatically converted during the Query of the View
USER_LEHS_TRANSACTIONS
by with the help of the Session-Parameters
NLS_NUMERIC_CHARACTERS
, NLS_DATE_FORMAT
and
NLS_TIMESTAMP_FORMAT
.
ORA-20999
to ORA-20000
(means that a PL/SQL-Application can raise 1000 different Exceptions).
This Methodology has some Drawbacks:
ORA-20000
)
for all business log Errors then it would rather be complex when
there was an Error and you don't know exactly, where this Exception
has been thrown.
NULL
Value
this code looks like this:
... IF pi_param1 IS NULL THEN RAISE_APPLICATION_ERROR (-20001, 'Parameter PI_PARAM1 is NULL'); END IF; IF pi_param2 IS NULL THEN RAISE_APPLICATION_ERROR (-20001, 'Hero: Parameter PI_PARAM2 is null'); END IF; ...By the Reuse of an Exception Message the Exception Message will be enriched by Placeholder Values (max. 9 from %1 to %9). Within these Placeholder Values the Application can set the correct Value during the Runtime. The Code will be the following
... IF pi_param1 IS NULL THEN PKG_LEHS.handle_exception ('MISSING PARAMETER', PKG_LEHS.pt_error_arguments('pi_param1')); END IF; IF pi_param2 IS NULL THEN PKG_LEHS.handle_exception ('MISSING PARAMETER', PKG_LEHS.pt_error_arguments('pi_param2')); END IF; ...The Exception Message will always have the same Structure but the first substitution Value (%1) will be substituted by the first Parameter of the Parameter List (i.E.
pi_param1
or pi_param2
)
NO_DATA_FOUND
Exception has been catched and
instead a named Exception will be raised) an Error-Stack Trace in
the Log is not neccessary. Indeed when a named Exception will be
covered like an unnamed Exception the Log is much complexer to be
read.
AMERICAN
is the Default).ORA-20999
to ORA-20000
that will also be
delivered at registering the Exception.
Field Summary | |
BINARY_INTEGER | pc_default_trx_retention_time
Default Retention Time for a Log Application: 0 (infinite Retention Time) |
CHAR(1) | pc_false
global Constant for a decoded Boolean FALSE |
LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE | pc_log_level_debug
programmable Log-Level: DEBUG
|
LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE | pc_log_level_error
programmable Log-Level: ERROR
|
LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE | pc_log_level_fatal
programmable Log-Level: FATAL
|
LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE | pc_log_level_info
programmable Log-Level: INFO
|
LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE | pc_log_level_trace
programmable Log-Level: TRACE
|
LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE | pc_log_level_warn
programmable Log-Level: WARN
|
VARCHAR2(30) | pc_owner
Owner of the Log-System |
VARCHAR2(30) | pc_packname
Name of the Package |
PKG_LEHS.pst_log_topic | pc_topic_exception
Topic for Log Exceptions |
PKG_LEHS.pst_log_topic | pc_topic_log_appender
Topic for Log Appender |
PKG_LEHS.pst_log_topic | pc_topic_log_topic
Topic for Log Topics |
CHAR(1) | pc_true
global Constant for a decoded Boolean TRUE |
VARCHAR2(30) | pc_version
Version of LEHS |
Type Summary | |
TABLE OF CLOB INDEX BY null | pt_clob()
List of CLOB |
Method Summary | |
| activate_application(pi_application PKG_LEHS.pst_application_name)
Activates a Log-Application for Logging. |
| add_application(pi_application PKG_LEHS.pst_application_name, pi_show_in_exception BOOLEAN DEFAULT TRUE)
Create a new Log-Application |
| add_log_level(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2, pi_log_level_predecessor VARCHAR2)
Adds a new Log-Level to the Application |
| add_log_level(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2, pi_position BINARY_INTEGER DEFAULT NULL)
Adds a new Log-Level to the Application |
| add_message(pi_application PKG_LEHS.pst_application_name, pi_error_name PKG_LEHS.pst_error_name, pi_error_code BINARY_INTEGER, pi_message CLOB, pi_show_error_stack BOOLEAN DEFAULT TRUE, pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language, pi_log_exception BOOLEAN DEFAULT TRUE)
Add a new Exception Message. |
| add_topic(pi_application PKG_LEHS.pst_application_name, pi_topic VARCHAR2, pi_topic_parent VARCHAR2, pi_topic_predecessor VARCHAR2, pi_use_parent_of_pred BOOLEAN DEFAULT FALSE, pi_log_exception BOOLEAN DEFAULT TRUE)
Add a new Topic |
| add_topic(pi_application PKG_LEHS.pst_application_name, pi_topic VARCHAR2, pi_topic_parent VARCHAR2, pi_position BINARY_INTEGER DEFAULT NULL, pi_log_exception BOOLEAN DEFAULT TRUE)
Add a new Topic |
| change_application(pi_application PKG_LEHS.pst_application_name, pi_show_in_exception BOOLEAN, pi_exception_log_level VARCHAR2)
Changes an existing Log-Application. |
| change_max_log_level(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_max_log_level VARCHAR2)
Change the maximum Log-Level of an Log-Appender |
| change_message(pi_application PKG_LEHS.pst_application_name, pi_error_name PKG_LEHS.pst_error_name, pi_error_code BINARY_INTEGER, pi_message CLOB, pi_show_error_stack BOOLEAN DEFAULT TRUE, pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
Changes the Exception Message to an Error Name. |
| deactivate_application(pi_application PKG_LEHS.pst_application_name)
Deactivates a Log-Application for Logging. |
BOOLEAN | decode_boolean(pi_encoded_boolean CHAR)
Translates a Character to a Boolean |
| deregister_appender(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2)
Deregister an Appender from a Log-Application |
CHAR | encode_boolean(pi_decoded_boolean BOOLEAN)
Translates a Boolean to a Character (which can be stored within a Table). |
BOOLEAN | exists_appender(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2)
Does there exist the Appender to the Log-Application? |
BOOLEAN | exists_application(pi_application PKG_LEHS.pst_application_name)
Checks for the Existance of a Log-Application |
BOOLEAN | exists_log_level(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Checks for the Existance of a Log-Level to an existing Log-Application |
BOOLEAN | exists_message(pi_application PKG_LEHS.pst_application_name, pi_error_name PKG_LEHS.pst_error_name, pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
Does there exist an Exception Message to the given Error Name? |
BOOLEAN | exists_topic(pi_application PKG_LEHS.pst_application_name, pi_topic VARCHAR2)
Does the given Topic exist within the given Application |
pt_clob | get_metadata(pi_application PKG_LEHS.pst_application_name, pi_topics VARCHAR2 DEFAULT pc_false, pi_exceptions VARCHAR2 DEFAULT pc_false)
Get the Metadata of the given Log-Application. |
VARCHAR2 | get_version()
Returns the Version of LEHS |
| grant_privs(pi_application PKG_LEHS.pst_application_name, pi_grantee VARCHAR2, pi_read_only BOOLEAN DEFAULT TRUE)
Grants the Privilege to use the Log-Application to a DB-User or DB-Role. |
| move_log_level(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2, pi_log_level_predecessor VARCHAR2)
Moves the Position of a Log-Level. |
| move_log_level(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2, pi_position BINARY_INTEGER DEFAULT NULL)
Moves the Position of a Log-Level. |
| move_topic(pi_application PKG_LEHS.pst_application_name, pi_topic VARCHAR2, pi_topic_parent VARCHAR2, pi_topic_predecessor VARCHAR2, pi_use_parent_of_pred BOOLEAN DEFAULT FALSE)
Move an existing Topic to another Position |
| move_topic(pi_application PKG_LEHS.pst_application_name, pi_topic VARCHAR2, pi_topic_parent VARCHAR2, pi_position BINARY_INTEGER DEFAULT NULL)
Move an existing Topic to another Position |
| register_appender(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_max_log_level VARCHAR2, pi_package_owner VARCHAR2, pi_package_name VARCHAR2)
Register an Appender to a Log-Application. |
| remove_application(pi_application PKG_LEHS.pst_application_name)
Removes a Log-Application. |
| remove_log_level(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Removes a Log-Level from an Application |
| remove_message(pi_application PKG_LEHS.pst_application_name, pi_error_name PKG_LEHS.pst_error_name, pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
Removes an Exception Message by an Error Name |
| remove_message(pi_application PKG_LEHS.pst_application_name, pi_error_code BINARY_INTEGER, pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
Removes an Exception Message by an Error Code |
| remove_topic(pi_application PKG_LEHS.pst_application_name, pi_topic VARCHAR2)
Remove an existing Topic from a Log-Application |
| revoke_privs(pi_application PKG_LEHS.pst_application_name, pi_grantee VARCHAR2)
Revokes the Privileges to use the Log-Application from a DB-User or DB-Role |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value VARCHAR2)
Sets an Appender Parameter. |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value CLOB)
Sets an Appender Parameter. |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value NUMBER)
Sets an Appender Parameter. |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value DATE)
Sets an Appender Parameter. |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value TIMESTAMP_UNCONSTRAINED)
Sets an Appender Parameter. |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value DSINTERVAL_UNCONSTRAINED)
Sets an Appender Parameter. |
| set_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2, pi_parameter_value YMINTERVAL_UNCONSTRAINED)
Sets an Appender Parameter. |
| set_log_level_debug(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Sets the programmable Log-Level DEBUG |
| set_log_level_error(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Sets the programmable Log-Level ERROR |
| set_log_level_fatal(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Sets the programmable Log-Level FATAL |
| set_log_level_info(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Sets the programmable Log-Level INFO |
| set_log_level_trace(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Sets the programmable Log-Level TRACE |
| set_log_level_warn(pi_application PKG_LEHS.pst_application_name, pi_log_level VARCHAR2)
Sets the programmable Log-Level WARN |
| unset_appender_parameter(pi_application PKG_LEHS.pst_application_name, pi_appender_name VARCHAR2, pi_parameter_name VARCHAR2)
Remove an Appender Parameter. |
| unset_log_level_debug(pi_application PKG_LEHS.pst_application_name)
Removes the programmable Log-Level DEBUG |
| unset_log_level_error(pi_application PKG_LEHS.pst_application_name)
Removes the programmable Log-Level ERROR |
| unset_log_level_fatal(pi_application PKG_LEHS.pst_application_name)
Removes the programmable Log-Level FATAL |
| unset_log_level_info(pi_application PKG_LEHS.pst_application_name)
Removes the programmable Log-Level INFO |
| unset_log_level_trace(pi_application PKG_LEHS.pst_application_name)
Removes the programmable Log-Level TRACE |
| unset_log_level_warn(pi_application PKG_LEHS.pst_application_name)
Removes the programmable Log-Level WARN |
Field Detail |
public VARCHAR2(30) pc_owner
public VARCHAR2(30) pc_version
public PKG_LEHS.pst_log_topic pc_topic_log_appender
public PKG_LEHS.pst_log_topic pc_topic_log_topic
public PKG_LEHS.pst_log_topic pc_topic_exception
public VARCHAR2(30) pc_packname
public CHAR(1) pc_true
public CHAR(1) pc_false
public LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE pc_log_level_fatal
FATAL
public LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE pc_log_level_error
ERROR
public LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE pc_log_level_warn
WARN
public LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE pc_log_level_info
INFO
public LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE pc_log_level_debug
DEBUG
public LEHS_LOG_LEVELS_PROGRAMMABLE.programmable_log_level%TYPE pc_log_level_trace
TRACE
public BINARY_INTEGER pc_default_trx_retention_time
Type Detail |
public TABLE OF CLOB INDEX BY null pt_clob()
Method Detail |
public CHAR encode_boolean(pi_decoded_boolean BOOLEAN)
pi_decoded_boolean
-
Boolean ValueTRUE
will be YFALSE
will be NNULL
will be translated to NULL
public BOOLEAN decode_boolean(pi_encoded_boolean CHAR)
TRUE
FALSE
NULL
will be translated to NULL
FALSE
public add_application(pi_application PKG_LEHS.pst_application_name,
pi_show_in_exception BOOLEAN DEFAULT TRUE)
pi_application
-
Name of the new Applicationpi_show_in_exception
-
Should the Name of the Application be shown in the Exception MessageORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20011
-
[APPLICATION ALREADY EXISTS] Application already existspublic BOOLEAN exists_application(pi_application PKG_LEHS.pst_application_name)
pi_application
-
Application Name to be checkedTRUE
... Application existsFALSE
... Application doesn't existpublic change_application(pi_application PKG_LEHS.pst_application_name,
pi_show_in_exception BOOLEAN,
pi_exception_log_level VARCHAR2)
pi_application
-
Name of the existing Applicationpi_show_in_exception
-
Should the Name of the Application be shown in the Exception Messagepi_exception_log_level
-
Log-Level of the thrown and logged ExceptionsORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] Log-Level doesn't existpublic deactivate_application(pi_application PKG_LEHS.pst_application_name)
pi_application
-
Name of the existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic activate_application(pi_application PKG_LEHS.pst_application_name)
pi_application
-
Name of the existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic remove_application(pi_application PKG_LEHS.pst_application_name)
PKG_LEHS_TABLE_APPENDER
) will be removed!
pi_application
-
Log-Application to be removedORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic register_appender(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_max_log_level VARCHAR2,
pi_package_owner VARCHAR2,
pi_package_name VARCHAR2)
pi_application
-
Log-Application the Appender should be registered topi_appender_name
-
Unique Name of the Appender (unique to each Log-Application)pi_max_log_level
-
maximum Log-Level of the Log-Entries for this Appenderpi_package_owner
-
Owner of the Appender Packagepi_package_name
-
Name of the Appender PackageORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20004
-
[APPENDER REGISTER ERROR] Error while calling the
Register Procedure of the Appender-PackageORA-20010
-
[NO LOGGER METHOD FOR APPENDER] the Appender-Package
doesn't have a Logger-ProcedureORA-20012
-
[LOG LEVEL NOT EXISTS] the given maximum Log-Level
doesn't existORA-20013
-
[INSUFFICIENT PRIVILEGES ON APPENDER PACKAGE] Insufficient
Privileges on Appender-Package or Package doesn't existORA-20015
-
[APPENDER ALREADY EXISTS] The given Appender-Name already
exists to this Log-ApplicationORA-20015
-
[APPENDER PACKAGE ALREADY REGISTERED] The Appender-Package
has already been registered to this Log-Applicationpublic deregister_appender(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2)
pi_application
-
Log-Application the Appender should be deregistered frompi_appender_name
-
Name of the Log-Appender which should be deregisteredORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existpublic BOOLEAN exists_appender(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Log-AppenderTRUE
... Log-Appender existsFALSE
... Log-Appender doesn&apot;t existpublic change_max_log_level(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_max_log_level VARCHAR2)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Log-Appenderpi_max_log_level
-
maximum Log-Level of the Log-Entries for this AppenderORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given maximum Log-Level
doesn't existpublic set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value VARCHAR2)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value CLOB)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value NUMBER)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value DATE)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value TIMESTAMP_UNCONSTRAINED)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value DSINTERVAL_UNCONSTRAINED)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public set_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2,
pi_parameter_value YMINTERVAL_UNCONSTRAINED)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appenderpi_parameter_name
-
Name of the Parameterpi_parameter_value
-
Value of the ParameterORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20009
-
[INVALID APPENDER PARAMETER NAME] Invalid Parameter NameORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITHOUT REASON]
Invalid Value without any specific ReasonORA-20009
-
[FAILED ASSERTION FOR APPENDER PARAMETER WITH REASON]
Invalid Value with a specific ReasonORA-20014
-
[APPENDER NOT EXISTS] Appender doesn't existORA-20???
-
[] Any Exception raised by the Checker-Method of the
Appender-Package which is not explicitly caught by
a LEHS-Exception.public unset_appender_parameter(pi_application PKG_LEHS.pst_application_name,
pi_appender_name VARCHAR2,
pi_parameter_name VARCHAR2)
pi_application
-
Log-Applicationpi_appender_name
-
Name of the Appender where the Parameter should
be remove frompi_parameter_name
-
Name of the Parameter to be removedORA-20001
-
[MISSING PARAMETER] missing mandatory Parameterpublic grant_privs(pi_application PKG_LEHS.pst_application_name,
pi_grantee VARCHAR2,
pi_read_only BOOLEAN DEFAULT TRUE)
pi_application
-
Name of the existing Applicationpi_grantee
-
User or Role to whom the Application should be limitedpi_read_only
-
Should the Grantee be privileged to only read the
created Log-Entries or also to use the API to write Log-EntriesORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20021
-
[GRANTEE ALREADY REGISTERED] The User or Role is
already registered to the given Log-Applicationpublic revoke_privs(pi_application PKG_LEHS.pst_application_name,
pi_grantee VARCHAR2)
pi_application
-
Name of the existing Applicationpi_grantee
-
User or Role to whom the Application should be limitedORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20021
-
[GRANTEE NOT REGISTERED] The User or Role is
not registered to the given Log-Applicationpublic add_log_level(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2,
pi_log_level_predecessor VARCHAR2)
pi_application
-
Name of the existing Applicationpi_log_level
-
new Log-Levelpi_log_level_predecessor
-
Name of the existing predecessing Log-LevelORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level Predecessor
doesn't exist to the given Log-ApplicationORA-20017
-
[LOG LEVEL ALREADY EXISTS] the given Log-Level already exists
within the given Log-Applicationpublic add_log_level(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2,
pi_position BINARY_INTEGER DEFAULT NULL)
pi_application
-
Name of the existing Applicationpi_log_level
-
new Log-Levelpi_position
-
Position of the new Log-LevelNULL
<= 1
> 1
ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20017
-
[LOG LEVEL ALREADY EXISTS] the given Log-Level already exists
within the given Log-Applicationpublic BOOLEAN exists_log_level(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
Application Name to be checkedpi_log_level
-
Log-Level of the Application to be checkedTRUE
... Log-Level exists to the Log-ApplicationFALSE
... Log-Level doesn't exist to the Log-Applicationpublic move_log_level(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2,
pi_log_level_predecessor VARCHAR2)
pi_application
-
Name of the existing Applicationpi_log_level
-
existing Log-Levelpi_log_level_predecessor
-
Name of the existing predecessing Log-LevelORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level or the
Log-Level Predecessor doesn't exist to the given
Log-Applicationpublic move_log_level(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2,
pi_position BINARY_INTEGER DEFAULT NULL)
pi_application
-
Name of the existing Applicationpi_log_level
-
existing Log-Levelpi_position
-
Position of the new Log-LevelNULL
<= 1
> 1
ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic remove_log_level(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
Name of the existing Applicationpi_log_level
-
existing Log-Level to be removedORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-ApplicationORA-20019
-
[LOG LEVEL HAS ASSIGNED PROGRAMMABLE LOG LEVEL] The
Log-Level has an assigned programmable Log-LevelORA-20031
-
[LOG LEVEL ASSIGNED TO MAX LOG LEVEL] The Log-Level
which should be removed is assigned to the maximum
Log-Level of the ApplicationORA-20031
-
[LOG LEVEL ASSIGNED TO EXCEPTION LOG LEVEL] The Log-Level
which should be removed is assigned to the Exception
Log-Level of the Applicationpublic set_log_level_fatal(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
existing Applicationpi_log_level
-
existing Log-Level to which the programmable Log-Level
should be setORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic unset_log_level_fatal(pi_application PKG_LEHS.pst_application_name)
pi_application
-
existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic set_log_level_error(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
existing Applicationpi_log_level
-
existing Log-Level to which the programmable Log-Level
should be setORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic unset_log_level_error(pi_application PKG_LEHS.pst_application_name)
pi_application
-
existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic set_log_level_warn(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
existing Applicationpi_log_level
-
existing Log-Level to which the programmable Log-Level
should be setORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic unset_log_level_warn(pi_application PKG_LEHS.pst_application_name)
pi_application
-
existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic set_log_level_info(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
existing Applicationpi_log_level
-
existing Log-Level to which the programmable Log-Level
should be setORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic unset_log_level_info(pi_application PKG_LEHS.pst_application_name)
pi_application
-
existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic set_log_level_debug(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
existing Applicationpi_log_level
-
existing Log-Level to which the programmable Log-Level
should be setORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic unset_log_level_debug(pi_application PKG_LEHS.pst_application_name)
pi_application
-
existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic set_log_level_trace(pi_application PKG_LEHS.pst_application_name,
pi_log_level VARCHAR2)
pi_application
-
existing Applicationpi_log_level
-
existing Log-Level to which the programmable Log-Level
should be setORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20012
-
[LOG LEVEL NOT EXISTS] the given Log-Level doesn't
exist to the given Log-Applicationpublic unset_log_level_trace(pi_application PKG_LEHS.pst_application_name)
pi_application
-
existing ApplicationORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic BOOLEAN exists_topic(pi_application PKG_LEHS.pst_application_name,
pi_topic VARCHAR2)
pi_topic
-
Topic to be checkedTRUE
... Topic existsFALSE
... Topic doesn't existpublic add_topic(pi_application PKG_LEHS.pst_application_name,
pi_topic VARCHAR2,
pi_topic_parent VARCHAR2,
pi_topic_predecessor VARCHAR2,
pi_use_parent_of_pred BOOLEAN DEFAULT FALSE,
pi_log_exception BOOLEAN DEFAULT TRUE)
pi_application
-
Name of the existing Applicationpi_topic
-
Name of the new Topicpi_topic_parent
-
Parent of the Topic (NULL
means Top-Topic)pi_topic_predecessor
-
Predecessor of the new Topic within the same
Level as the given Parent Topicpi_use_parent_of_pred
-
When the Parent of the Predecessor isn't the
same as the given Parent then use the Parent of the Predecessor
(TRUE
) or raise an Exception (FALSE
).pi_log_exception
-
When the Topic already exists should
the Exception [TOPIC ALREADY EXISTS] be logged?
(Default: The Exception [TOPIC ALREADY EXISTS] will be logged)ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20023
-
[TOPIC ALREADY EXISTS] The Topic already existsORA-20024
-
[TOPIC NOT EXISTS] Either the Parent- or the
Predecessor-Topic doesn't existORA-20025
-
[PREDECESSOR TOPIC HAS WRONG PARENT TOPIC] The given
Parent doesn't correspond the Parent of the predecessing
Topicpublic add_topic(pi_application PKG_LEHS.pst_application_name,
pi_topic VARCHAR2,
pi_topic_parent VARCHAR2,
pi_position BINARY_INTEGER DEFAULT NULL,
pi_log_exception BOOLEAN DEFAULT TRUE)
pi_application
-
Name of the existing Applicationpi_topic
-
Name of the new Topicpi_topic_parent
-
Parent of the Topic (NULL
means Top-Topic)pi_position
-
Position of the new Topic within the same Level
as the given Parent Topic
NULL
pi_log_exception
-
When the Topic already exists should
the Exception [TOPIC ALREADY EXISTS] be logged?
(Default: The Exception [TOPIC ALREADY EXISTS] will be logged)ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20023
-
[TOPIC ALREADY EXISTS] The Topic already existsORA-20024
-
[TOPIC NOT EXISTS] The Parent-Topic doesn't existpublic move_topic(pi_application PKG_LEHS.pst_application_name,
pi_topic VARCHAR2,
pi_topic_parent VARCHAR2,
pi_topic_predecessor VARCHAR2,
pi_use_parent_of_pred BOOLEAN DEFAULT FALSE)
pi_application
-
Name of the existing Applicationpi_topic
-
Name of the existing Topic to be movedpi_topic_parent
-
Parent of the Topic (NULL
means Top-Topic)pi_topic_predecessor
-
Predecessor of the new Topic within the same
Level as the given Parent Topicpi_use_parent_of_pred
-
When the Parent of the Predecessor isn't the
same as the given Parent then use the Parent of the Predecessor
(TRUE
) or raise an Exception (FALSE
).ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20024
-
[TOPIC NOT EXISTS] Either the Parent- or the
Predecessor-Topic or the given Topic doesn't existORA-20025
-
[PREDECESSOR TOPIC HAS WRONG PARENT TOPIC] The given
Parent doesn't correspond the Parent of the predecessing
Topicpublic move_topic(pi_application PKG_LEHS.pst_application_name,
pi_topic VARCHAR2,
pi_topic_parent VARCHAR2,
pi_position BINARY_INTEGER DEFAULT NULL)
pi_application
-
Name of the existing Applicationpi_topic
-
Name of the existing Topic to be movedpi_topic_parent
-
Parent of the Topic (NULL
means Top-Topic)pi_position
-
new Position of the existing Topic within the same Level
as the given Parent Topic
NULL
ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20024
-
[TOPIC NOT EXISTS] Either the Topic or the
Parent-Topic doesn't existORA-20026
-
[TOPIC WRONG POSITION] Can't detect the correct
predecessing Topic by the given Positionpublic remove_topic(pi_application PKG_LEHS.pst_application_name,
pi_topic VARCHAR2)
pi_application
-
Name of the existing Applicationpi_topic
-
Name of the Topic to be removedORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20024
-
[TOPIC NOT EXISTS] Topic doesn't existpublic add_message(pi_application PKG_LEHS.pst_application_name,
pi_error_name PKG_LEHS.pst_error_name,
pi_error_code BINARY_INTEGER,
pi_message CLOB,
pi_show_error_stack BOOLEAN DEFAULT TRUE,
pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language,
pi_log_exception BOOLEAN DEFAULT TRUE)
ORA-20999
and ORA-20000
).
Every Error Name has an Exception Message assigned to. Also a named Error
has an Error-Number (ORA-20999
to ORA-20000
)
also assigned to this Error-Name.
An Application Exception will no longer be raised by a fixed Error Number
instead by this assigned Error Name. The Exception itself will be raised by
the Information deposited for this Error Name (Error Code, Exception Message, etc.)
pi_application
-
Name of the existing Applicationpi_error_name
-
Name of the new Exceptionpi_error_code
-
Error-Code of the Exception (must between -20999 and -20000)pi_message
-
Error Message (with Placeholders for dynamic Contents)pi_show_error_stack
-
When raising this Exception should the Error-Stack
also be raised or not (look at RAISE_APPLICATION_ERROR
)
(Default: TRUE
)pi_nls_language
-
NLS-Language Code for this Exception Message. When NULL
then AMERICAN
would be omitted. Default. AMERICAN
pi_log_exception
-
When the Message already exists should
the Exception [EXCEPTION MESSAGE ALREADY EXISTS] be logged?
(Default: The Exception [EXCEPTION MESSAGE ALREADY EXISTS] will be logged)ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20027
-
[EXCEPTION MESSAGE ALREADY EXISTS] The Exception Message
already existsORA-20029
-
[INVALID ERROR CODE] Invalid Error Code (must between -20999 and -20000)public BOOLEAN exists_message(pi_application PKG_LEHS.pst_application_name,
pi_error_name PKG_LEHS.pst_error_name,
pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
pi_application
-
Name of the existing Applicationpi_error_name
-
Name of the Error to be checkedpi_nls_language
-
Language of the Exception Message
(Default or NULL
: AMERICAN)TRUE
...
There exists an Exception Message to the given Error Name and LanguageFALSE
...
There doesn't exist an Exception Message to the given Error Name and Languagepublic change_message(pi_application PKG_LEHS.pst_application_name,
pi_error_name PKG_LEHS.pst_error_name,
pi_error_code BINARY_INTEGER,
pi_message CLOB,
pi_show_error_stack BOOLEAN DEFAULT TRUE,
pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
ORA-20999
and ORA-20000
).
Every Error Name has an Exception Message assigned to. Also a named Error
has an Error-Number (ORA-20999
to ORA-20000
)
also assigned to this Error-Name.
An Application Exception will no longer be raised by a fixed Error Number
instead by this assigned Error Name. The Exception itself will be raised by
the Information deposited for this Error Name (Error Code, Exception Message, etc.)
pi_application
-
Name of the existing Applicationpi_error_name
-
Name of the existing Exceptionpi_error_code
-
Error-Code of the Exception (must between -20999 and -20000)pi_message
-
Error Message (with Placeholders for dynamic Contents)pi_show_error_stack
-
When raising this Exception should the Error-Stack
also be raised or not (look at RAISE_APPLICATION_ERROR
)
(Default: TRUE
)pi_nls_language
-
NLS-Language Code for this Exception Message. When NULL
then AMERICAN
would be omitted. Default. AMERICAN
ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existORA-20028
-
[EXCEPTION MESSAGE NOT EXISTS] The Exception Message
doesn't existORA-20029
-
[INVALID ERROR CODE] Invalid Error Code (must between -20999 and -20000)public remove_message(pi_application PKG_LEHS.pst_application_name,
pi_error_name PKG_LEHS.pst_error_name,
pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
pi_application
-
Name of the existing Applicationpi_error_name
-
Name of the new Exceptionpi_nls_language
-
NLS-Language for this Exception Message.ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic remove_message(pi_application PKG_LEHS.pst_application_name,
pi_error_code BINARY_INTEGER,
pi_nls_language VARCHAR2 DEFAULT PKG_LEHS.pc_default_language)
pi_application
-
Name of the existing Applicationpi_error_code
-
Code of the Exceptionpi_nls_language
-
NLS-Language for this Exception Message.ORA-20001
-
[MISSING PARAMETER] missing mandatory ParameterORA-20002
-
[APPLICATION NOT EXISTS] Application doesn't existpublic pt_clob get_metadata(pi_application PKG_LEHS.pst_application_name,
pi_topics VARCHAR2 DEFAULT pc_false,
pi_exceptions VARCHAR2 DEFAULT pc_false)
pi_application
-
Log-Application to get the Metadatapi_topics
-
Should the Topics also be exported (Y/N)pi_exceptions
-
Should the Exception Messages also be exported (Y/N)public VARCHAR2 get_version()
| LEHS - Log- and Exception Handling System for ORACLE | |||||
FRAMES NO FRAMES | ||||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |