Disable logon trigger in Oracle

懵懂的女人 提交于 2020-01-22 03:20:10

问题


I have such problem as described in cannot login to sql server due logon trigger

But I use Oracle. Is there same thing like "Dedicated Admin Connection"? Or are there any other method to solve this problem?


回答1:


In Oracle, a user with the ADMINISTER DATABASE TRIGGER privilege should be able to log in even if a logon trigger throws an error. That should include any users with the DBA role.




回答2:


Up to Oracle ver. 10g (including) the logon trigger was not fired for users having DBA role. Since ver. 11g it's fired also for DBA sessions, but its failure does not kill the session.

For all the other users any error thrown from the logon trigger kills the session.

So if you want to administer the logon trigger, you should connect as sysdba (sqlplus / as sysdba)

PS: also note, that aside from LOGON TRIGGER ON DATABASE there is also a LOGON TRIGGER ON SCHEMA which is less dangerous.



来源:https://stackoverflow.com/questions/26243155/disable-logon-trigger-in-oracle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!