usage of AFTER LOGON DATABASE trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praveenc
    New Member
    • Oct 2009
    • 1

    usage of AFTER LOGON DATABASE trigger

    plse help me how to use

    AFTER LOGON DATABASE trigger


    for chnging NLs settings in the java application
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try this sample code
    Code:
    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

    Working...