PL/SQL (MOSC)

MOSC Banner

After logon trigger behaviour

edited Feb 17, 2019 9:24AM in PL/SQL (MOSC) 3 commentsAnswered ✓

Hello,

I have a problem with an after logon trigger. The purpose of the trigger is to block connexions from two servers if the user has more than CREATE SESSION and SELECT privileges.

In this trigger, I use a SQL request on user_role_privs, user_system_privs, user_tab_privs and user_col_privs. This request works fine when I run it in a PL/SQL block for a user but it failed when included in the trigger (see code below).

Here's the code of the trigger:

CREATE OR REPLACE TRIGGER "SYS"."RESTRICT_ACCESS_LOGON_TRIGGER" AFTER LOGON ON DATABASE

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center