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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: auditing ... getting offending SQL ??

RE: auditing ... getting offending SQL ??

From: <Cherie_Machler_at_gelco.com>
Date: Mon, 13 Aug 2001 10:19:44 -0700
Message-ID: <F001.00368E28.20010813102551@fatcity.com>

John,

Who is the vendor for EZSQL? Do you have a web site for them?

Thanks,

Cherie Machler
Oracle DBA
Gelco Information Network

                                                                                       
                         
                    John Lewis                                                         
                         
                    <jlewis_at_punchnet       To:     Multiple recipients of list 
ORACLE-L <ORACLE-L_at_fatcity.com>  
                    works.com>             cc:                                         
                         
                    Sent by:               Subject:     RE: auditing ... getting 
offending SQL ??               
                    root_at_fatcity.com                                                   
                         
                                                                                       
                         
                                                                                       
                         
                    08/10/01 12:46                                                     
                         
                    PM                                                                 
                         
                    Please respond                                                     
                         
                    to ORACLE-L                                                        
                         
                                                                                       
                         
                                                                                       
                         




I use ezsql ( I got it for $50 ) to capture this kind of thing. There are scripts out there that also do it but the ezsql is cheap considering what it does.

-----Original Message-----

Sent: Friday, August 10, 2001 10:31 AM
To: Multiple recipients of list ORACLE-L

hi list,

i set up auditing by access on a few objects (requested by programmers trying to figure out where their application is failing), and i was wondering if there's any way to get the full sqltext that is causing the error. i've searched metalink, read kevin loney's dba 8i handbook, etc. but haven't found a way to detect the offending sql. dba_audit_object only gives you the action_name.

dba_audit_trail does give you more information:

SQL> select sessionid, statementid from DBA_AUDIT_TRAIL;

 SESSIONID STATEMENTID
---------- -----------

    595639          16
    595639          17

2 rows selected.

but, again, i do not know how to get the sql from the above information. or even if it's possible. never had to audit before, so this is new to me.

we are running 8.1.6.0 on solaris 2.6, and the programmers are executing very involved, complex packages which have LOTS of DMLs...

any insight would be most appreciated. :)

thanks,
kris

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kris Austin
  INET: kaustin_at_advance.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: John Lewis
  INET: jlewis_at_punchnetworks.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Cherie_Machler_at_gelco.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Aug 13 2001 - 12:19:44 CDT

Original text of this message

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