Disable logon trigger in Oracle

前端 未结 2 569
余生分开走
余生分开走 2021-01-27 17:30

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

相关标签:
2条回答
  • 2021-01-27 17:52

    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.

    0 讨论(0)
  • 2021-01-27 17:52

    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.

    0 讨论(0)
提交回复
热议问题