Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Logon trigger

Re: Logon trigger

From: IANAL_VISTA <IANAL_Vista_at_hotmail.com>
Date: Wed, 24 Nov 2004 01:44:22 GMT
Message-ID: <Xns95AAB474CC048SunnySD@68.6.19.6>


premmehrotra_at_hotmail.com (Prem K Mehrotra) wrote in news:43441e77.0411230711.1ecaec64_at_posting.google.com:

> I am writing a logon trigger to implement some Sarbanes Oxley
> regulations.
> Users may be connecting using listener:
>
> sqlplus scott/password_at_svcname
>
> or bypassing listener:
>
> sqlplus scott/password
>
>
> Is there a way to distinguish the two in logon trigger. I know in
> logon trigger one can get IP address, OS user etc, but how does one
> distinguish between the two
> cases.
>
>
> Thanks a lot,
>
> Prem

From V$SESSION the MACHINE column holds the answer. When MACHINE is the same as the name of the DB server, then that session is "local"; otherwise it is a "remote" connection.

QED! HTH & YMMV HAND Received on Tue Nov 23 2004 - 19:44:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US