修改一个回话的cursor_sharing参数?

例子:

CREATE OR REPLACE TRIGGER modify_cursor_sharing_logon
AFTER LOGON ON DATABASE
BEGIN
FOR proname IN (SELECT DISTINCT UPPER (program) pron
FROM sys.v_$session
WHERE UPPER (program) = 'SQLPLUS.EXE' and UPPER (program) NOT LIKE 'ORACLE%' )
LOOP
IF (proname.pron = 'SQLPLUS.EXE')
THEN
EXECUTE IMMEDIATE 'alter session set cursor_sharing=force';
END IF;
END LOOP;
END;
/


上一篇:2014移动安全漏洞年度报告


下一篇:手机短信验证码真的安全吗?