|
Joe,
I use the following with decent success on a
logon database trigger:
-- Set a unique string for the session
and update the session info.
client_info_str :=
'WTWLOGIN_' ||
LTRIM(dbms_random.value,'.');
DBMS_APPLICATION_INFO.SET_CLIENT_INFO(client_info_str);
-- look into the
v$session view for the session just connected.
SELECT program, username,
osuser,
terminal, machine
INTO
loc_program,
loc_username,
loc_osuser,loc_terminal,loc_machine
FROM V$SESSION
WHERE
client_info=client_info_str;
From
here, you can test the loc_program variable against the loc_username to see if
the combination is correct.
Stuff
like:
IF
loc_username='TESTLOGIN' then
RAISE kill_Login;
END IF;
EXCEPTION
WHEN kill_Login
THEN
RAISE_APPLICATION_ERROR(-20999,'Login''s using this account and this
tool are Invalid');
Hope this
helps!
Tom Mercadante
|
- methodology to keep only certain programs to con... JOE TESTA
- RE: methodology to keep only certain progra... Mercadante, Thomas F
- RE: methodology to keep only certain progra... Shaw John-P55297
- RE: methodology to keep only certain progra... Thomas Day
- RE: methodology to keep only certain progra... Lord, David - CSG
- RE: methodology to keep only certain progra... Fink, Dan
- RE: methodology to keep only certain progra... Kirsh, Gary
- RE: methodology to keep only certain progra... Kevin Lange
- RE: methodology to keep only certain progra... Nastase, Mr. C. (Catalin)
- RE: methodology to keep only certain progra... Mercadante, Thomas F
- Re: methodology to keep only certain progra... Jared . Still
- Re: methodology to keep only certain progra... JOE TESTA
