我有一个Oracle登录触发器,其中执行了一些alter session语句。我想知道如果用户进行“改变会话”,我是否能抓住另一个触发器?
CREATE OR REPLACE TRIGGER CI_LOGON AFTER LOGON ON DATABASE
BEGIN
execute immediate
'ALTER SESSION SET PLSQL_WARNINGS=''ENABLE:ALL'',''DISABLE:06015''';
execute immediate
'ALTER SESSION SET PLSQL_DEBUG = true';
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
SQL> show parameters plsql
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
plsql_ccflags string
plsql_code_type string INTERPRETED
plsql_debug boolean TRUE
plsql_optimize_level integer 2
plsql_v2_compatibility boolean FALSE
plsql_warnings string ENABLE:ALL, DISABLE: 6015
SQL>
SQL> ALTER SESSION SET PLSQL_DEBUG = false;
SQL> show parameters plsql
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
plsql_ccflags string
plsql_code_type string INTERPRETED
plsql_debug boolean FALSE
plsql_optimize_level integer 2
plsql_v2_compatibility boolean FALSE
plsql_warnings string ENABLE:ALL, DISABLE: 6015
由于 基督教