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: Help: Is this sql from Package or not?

Re: Help: Is this sql from Package or not?

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Fri, 25 Apr 2003 15:59:21 GMT
Message-ID: <MPG.1912fb366ee1702b989757@news.la.sbcglobal.net>


"charlie cs" <cs3526(no-spam)@yahoo.com> said...
> Guys,
>
> Is there any way to detect if a java application is hitting the db using a
> stored proc vs. a
> straight sql statement? We'd like to identify what sql we are getting that
> is not in a stored proc. so we can change the Java code.
>
> Any suggestions will be highly appreciated
>

You could add functionality to the stored procedure to write an audit record to another table whenever it's called. You could write a trigger against the table(s) that writes an audit record, including the user who fired the trigger.

-- 
/Karsten
DBA > retired > DBA
Received on Fri Apr 25 2003 - 10:59:21 CDT

Original text of this message

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