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: How can I see SQL executed by users?

Re: How can I see SQL executed by users?

From: <jhy_at_earthling.net>
Date: 15 Oct 1998 16:07:46 GMT
Message-ID: <36261DEA.34653B15@earthling.net>


The SQL in SQL_TEXT is stored in pieces. The following shows you how to put the pieces together. This worked on 7.x, should work on 8.x.

select

   username, sql_text, command_type
from

   v$session a, v$sqltext b
where

   username is not null and
   a.sql_address = b.address
order by b.address, piece

DET wrote:

> I want to be able to see the full sql statements executed by a program. I've
> tried v$sqltext, but it's too short - cuts off the interesting parts.
>
> I don't have to see the stuff real-time. A log file would be fine. The
> server is 7.3.4, running on SCO OS5, and the client program is as well. Any
> advice?
Received on Thu Oct 15 1998 - 11:07:46 CDT

Original text of this message

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