Execute SQL Alter commands for every session with Entity Framework 5 talking to Oracle 11g

前端 未结 3 1438
一生所求
一生所求 2021-01-13 18:00

I have a requirement to execute some SQL commands at the start of every database session. I am using Entity Framework 5 via DbContext talking to a Oracle 11g database.

3条回答
  •  余生分开走
    2021-01-13 18:36

    The other option would be a "LOGON TRIGGER ON SCHEMA". But it's questionable whether you force DBA's to create it. Logon triggers are considered to be "dangerous".

提交回复
热议问题