Oracle PL/SQL/System Packages/DBMS WARNING — различия между версиями

Материал из SQL эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 09:55, 26 мая 2010

DBMS_WARNING.SET_WARNING_SETTING_STRING("ENABLE:ALL", "SESSION");

  
SQL>
SQL> SET SERVEROUTPUT ON ESCAPE OFF
SQL>
SQL>
SQL> CALL DBMS_WARNING.SET_WARNING_SETTING_STRING("ENABLE:ALL", "SESSION");
Call completed.
SQL>
SQL> SELECT DBMS_WARNING.GET_WARNING_SETTING_STRING() WARNING_LEVEL FROM dual;
WARNING_LEVEL
--------------------------------------------------------------------------------
ENABLE:ALL
1 row selected.
SQL>
SQL>
SQL> ALTER PROCEDURE compile_warning COMPILE;
Warning: Procedure altered with compilation errors.
SQL>
SQL>
SQL> SHOW ERRORS
Errors for PROCEDURE COMPILE_WARNING:
LINE/COL ERROR
-------- -----------------------------------------------------------------
4/31     PL/SQL: SQL Statement ignored
4/49     PL/SQL: ORA-00942: table or view does not exist
SQL>



SELECT DBMS_WARNING.GET_WARNING_SETTING_STRING() WARNING_LEVEL FROM dual

   
SQL>
SQL> SET SERVEROUTPUT ON ESCAPE OFF
SQL>
SQL>
SQL> CALL DBMS_WARNING.SET_WARNING_SETTING_STRING("ENABLE:ALL", "SESSION");
Call completed.
SQL>
SQL> SELECT DBMS_WARNING.GET_WARNING_SETTING_STRING() WARNING_LEVEL FROM dual;
WARNING_LEVEL
--------------------------------------------------------------------------------
ENABLE:ALL
1 row selected.
SQL>
SQL>
SQL> ALTER PROCEDURE compile_warning COMPILE;
Warning: Procedure altered with compilation errors.
SQL>
SQL>
SQL> SHOW ERRORS
Errors for PROCEDURE COMPILE_WARNING:
LINE/COL ERROR
-------- -----------------------------------------------------------------
4/31     PL/SQL: SQL Statement ignored
4/49     PL/SQL: ORA-00942: table or view does not exist
SQL>