Try using dbms_application_info package in logon database trigger.