Oracle DBMS_WARNING_INTERNAL
Version 12.1.0.2

General Information
Library Note Morgan's Library Page Footer
The Library is currently in the process of being upgraded from Oracle Database Version 12.1.0.1 to 12.1.0.2. Demos are being upgraded to reflect the new Container paradigm as well as EBR (Edition Based Redefinition) and may contain references to CDBs, PDBs, and other objects you may not be familiar with such as CDB_OBJECTS_AE: Welcome to 12c.

Interested in Oracle GoldenGate? Check out the IGGOUG,
Purpose Internal support package for PL/SQL Warnings and the DBMS_WARNING package
AUTHID CURRENT_USER
Dependencies
ALL_WARNING_SETTINGS USER_WARNING_SETTINGS WARNING_SETTINGS$
DBA_WARNING_SETTINGS    
Documented No
First Available 10.1
Security Model Owned by SYS with no privileges granted
Source {ORACLE_HOME}/rdbms/admin/prvtplsw.plb
 
SHOW_WARNING_SETTING
Undocumented ... and obviously not intended for DBAs and developers dbms_warning_internal(objno IN NUMBER) RETURN warning_setting_coll;
conn uwclass/uwclass@pdbdev

ALTER SESSION SET PLSQL_WARNINGS='ENABLE:ALL';

CREATE OR REPLACE PROCEDURE dead_code AS
 x NUMBER := 10;
BEGIN
  IF x = 10 THEN
    x := 20;
  ELSE
    x := 100;
  END IF;
END dead_code;
/

SELECT plsql_warnings
FROM all_plsql_object_settings
WHERE name = 'DEAD_CODE';

conn sys@pdbdev as sysdba

SELECT object_id
FROM dba_objects_ae
WHERE object_name = 'DEAD_CODE';

SELECT COUNT(*)
FROM dba_warning_settings;

set linesize 121

SELECT owner, object_id, object_type
FROM dba_warning_settings
WHERE object_name = 'DEAD_CODE';

SELECT dbms_warning_internal.show_warning_settings(71895)
FROM dual;

desc dba_warning_settings

SELECT *
FROM dba_warning_settings
WHERE object_id = 71895;

Related Topics
DBMS_WARNING
Packages
PL/SQL Warnings

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2014 Daniel A. Morgan All Rights Reserved