Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 30987 invoked from network); 16 Mar 2008 18:46:14 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-69-64-49-119.inaddr.intergenia.de with SMTP; 16 Mar 2008 18:46:14 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 50B6D825308;
 Sun, 16 Mar 2008 19:46:14 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 21664-10; Sun, 16 Mar 2008 19:46:14 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BF643825290;
 Sun, 16 Mar 2008 19:46:13 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 16 Mar 2008 19:09:47 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EB207824E0F
 for <oracle-l@freelists.org>; Sun, 16 Mar 2008 19:09:46 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 18762-02 for <oracle-l@freelists.org>;
 Sun, 16 Mar 2008 19:09:46 -0400 (EDT)
Received: from web54112.mail.re2.yahoo.com (web54112.mail.re2.yahoo.com [206.190.39.50])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id B89F9824243
 for <oracle-l@freelists.org>; Sun, 16 Mar 2008 19:09:46 -0400 (EDT)
Received: (qmail 94700 invoked by uid 60001); 16 Mar 2008 23:09:46 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID;
  b=go9qjxPkurRxd1y3F3TEUlrSXikPc2hXjQqAoO7Yzt2E4iB+GLkb9aU6mxF2fPVD10BUqEJMwOV5GtTcjVtDxaNSMnfNHi9Kj7yZu71OBan8v8Y7E9tcJriOszXYLXyo73wW4hxO/Ux2I0vl0JwgcdCtDw47QL3qCxBgyidypSg=;
X-YMail-OSG: SRbpunIVM1mGdN8eX55gWYs6PrsGQkCiED3xeAMlaOazpffxWqx08FTWr.XGQ_MXt7ltkCgvW9kxZ71e4O3iJ69ScWoylpwtx9hBkSle.A5EtSFeeA--
Received: from [76.184.49.145] by web54112.mail.re2.yahoo.com via HTTP; Sun, 16 Mar 2008 16:09:45 PDT
Date: Sun, 16 Mar 2008 16:09:45 -0700 (PDT)
From: Mary Elizabeth McNeely <mary_mcneely@yahoo.com>
Subject: Re: Audit for program at login time
To: oracle-l@freelists.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Message-ID: <82345.91933.qm@web54112.mail.re2.yahoo.com>
X-archive-position: 6292
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mary_mcneely@yahoo.com
Precedence: normal
Reply-to: mary_mcneely@yahoo.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain

Thanks for all the responses.  It looks like I'll have to use a trigger after all ...


Adar - yes, duly noted about autonomous transaction in a trigger

Jared - sad but true, the program can be spoofed - risk is understood and accepted 

Brandon - thanks for putting together an initial cut at an answer, wow!  I too was surprised calling program wasn't included in the audit stream; in fact, I was so sure it was included, I didn't even bother checking before enabling auditing (oops).  


Mary Elizabeth

----- Original Message ----
From: Yechiel Adar <adar666@inter.net.il>
Cc: oracle-l@freelists.org
Sent: Sunday, March 16, 2008 7:56:50 AM
Subject: Re: Audit for program at login time

If you use login trigger to insert the values into your table,
do not forget to use: pragma autonomous transaction.

Adar Yechiel
Rechovot, Israel



Mary Elizabeth McNeely wrote:
> Hello all,
>
> I am tasked with auditing who accesses the database with what program (equivalent of v$session.program) upon database login.  I can get everything I want into the audit trail by using "audit connect", except the equivalent of v$session.program.
>
> (a) Does anyone know of a supported way to push the program information into sys.aud$, and if not,
>
> (b) Does anyone know of a way to accomplish this other than a login trigger?  Any sample code available?
>
> Thanks in advance for any hints you can offer.
>
> Mary Elizabeth McNeely
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
>  
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l


