create or replace trigger mytrig1 after logon on scott.schema declare a char(3); begin select to_char(sysdate,'dy') into a from dual; if a in('sun','sat') then Raise_application_error(-20004,'Cannot LOGIN today'); end if; end;
Comment