Unix Technical Forum

Resumable logon trigger

This is a discussion on Resumable logon trigger within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I am using Oracle 9.2.0.7 on Solaris. I am creating the following trigger, using a SYSDBA account in ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:27 AM
G Quesnel
 
Posts: n/a
Default Resumable logon trigger

Hi,
I am using Oracle 9.2.0.7 on Solaris.
I am creating the following trigger, using a SYSDBA account in a test
database;
Create or replace trigger TRIG_LOGON
after LOGON on database
Begin
execute immediate 'Grant resumable to '||user;
execute immediate 'Alter session enable resumable timeout 50400';
end;
/

For some reason, this does not appear to work.
When I log on using any user, and execute ...
select DBMS_RESUMABLE.GET_TIMEOUT from dual;
it returns -1

Now if I use any user (who has been granted the resumable system
privilege) and issue "'Alter session enable resumable timeout 50400;"
in SQL Plus, then this seems to work, as select
DBMS_RESUMABLE.GET_TIMEOUT from dual; returns 50400

What am I missing in my logon trigger ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:27 AM
G Quesnel
 
Posts: n/a
Default Re: Resumable logon trigger

ok - I found an answer to my problem on Metalink.
I can remove the grant, and replace "on database" for "on <specific
user>.schema"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com