dbTalk Databases Forums  

trigger on alter user

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss trigger on alter user in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default trigger on alter user - 07-25-2006 , 07:51 AM






Hi all,

In one of our databases we need 1 user to reset passwords from other
users. (some kind of admin function). Ofcourse this "admin-user" may
not change passwords etc. of sys or system. So granting "alter any
user" to this admin is not a good idea.
Doing this with a (sys-owned) procudure is not possible because the
supplier is not willing to change a line of code in his application.

My final thaugth : a trigger which checks whether the user to be
altered is not sys or system......
My questions:
Is something like :"create trigger blabla on alter user ....."
possible?
Did I miss something in the documentation?

Any pointers in the rigth direction are welcome.

Best Regards

Martijn


Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: trigger on alter user - 07-25-2006 , 09:51 AM







martijnm.bos (AT) gmail (DOT) com wrote:
Quote:
Hi all,

In one of our databases we need 1 user to reset passwords from other
users. (some kind of admin function). Ofcourse this "admin-user" may
not change passwords etc. of sys or system. So granting "alter any
user" to this admin is not a good idea.
Doing this with a (sys-owned) procudure is not possible because the
supplier is not willing to change a line of code in his application.

My final thaugth : a trigger which checks whether the user to be
altered is not sys or system......
My questions:
Is something like :"create trigger blabla on alter user ....."
possible?
Did I miss something in the documentation?

Any pointers in the rigth direction are welcome.

Best Regards

Martijn
Look up database event triggers. You can create a trigger than fires
on an ALTER command.

HTH -- Mark D Powell --



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.