create or replace trigger logonallow

after logon on database
Begin
if ora_client_ip_address<>'10.32.10.239' and ora_login_user='MARS'
THEN
RAISE_APPLICATION_ERROR(-20001, 'You are not authorized to login into this machine shy');
END IF;
end;