Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

After logon trigger to set resumable

441516Jul 1 2011 — edited Jul 1 2011
I have created an after logon trigger that issues the alter session enable resumable statement. When I login to sqlplus and I issue the following statement I get no rows returned:

SELECT privilege
FROM dba_sys_privs
WHERE grantee = 'myUser'
AND privilege = 'RESUMABLE';

Is my trigger not firing or am I missing something?

Here is my trigger code:

CREATE OR REPLACE TRIGGER AFTER_LOGON_AC01
AFTER LOGON
ON DATABASE
BEGIN

EXECUTE IMMEDIATE 'ALTER SESSION ENABLE RESUMABLE';

EXCEPTION
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END AFTER_LOGON_AC01;
/


Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2011
Added on Jul 1 2011
3 comments
132 views