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: suggestion

Re: suggestion

From: Binley Lim <Binley.Lim_at_xtra.co.nz>
Date: Tue, 23 Sep 2003 17:09:40 -0800
Message-ID: <F001.005D0DC8.20030923170940@fatcity.com>


Actually, you can capture SQLs relatively inexpensively by using FGA - simply add the "audit_condition => '1=1'" when adding a policy to each table.

For OLTP, this wouldn't make much sense. For ad-hoc (DSS), what you are going to do with all those captured SQLs is another story.

  For statistics, logon & logoff triggers + v$mystat + autonomous transactions.   If you want to capture all sql, it will be hard & very resource hungry, you either enable trace for given session (which slows stuff down enormously) or poll v$sql or v$open_cursor frequently. This isn't a good idea either. You might want to look at fine grained auditing if you want to track which data is viewed by anybody.

  Tanel.

    hi

    there is a requirement for capturing sqls and cpu consumed by any session logging into the database . this info should be stored in the database.

    can you please give me suggestions as to how i do this?

    thanks
    sai

--

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

Author: Binley Lim
  INET: Binley.Lim_at_xtra.co.nz

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Sep 23 2003 - 20:09:40 CDT

Original text of this message

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