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: SQL Text

Re: SQL Text

From: Gregory Conron <gconron_at_hfx.andara.com>
Date: Tue, 13 Feb 2001 17:00:24 -0800
Message-ID: <F001.002B3432.20010213170035@fatcity.com>

On Tue, 13 Feb 2001, Sanjay Kumar wrote:
>
> hi,
>
> I want to see the latest SQL Statements that I sent to Database. I know that I can
>make use of V$sqlarea but it restricts only to first 1000 characters.
> But my query is more than that.

Use v$sqltext or v$sqltext_with_newlines. Simple join against v$session will give you the sql for any current user.

Cheers,
GC

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gregory Conron
  INET: gconron_at_hfx.andara.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 Tue Feb 13 2001 - 19:00:24 CST

Original text of this message

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