preloader
blog-post

Query to find the queries executed by an user in Oracle

Query to find the queries executed by an user in Oracle

SELECT VS.USERNAME
	,       VS.MACHINE
	,       VS.PROGRAM
	,       VS.STATUS
	,       VST.SQL_ID
	,       VST.PIECE
	,       VST.SQL_TEXT  
FROM V$SESSION VS
	,V$SQLTEXT VST  WHERE VS.SQL_ID = VST.SQL_ID    AND VS.USERNAME = 'USER'  ORDER BY VST.SQL_ID
	,VST.PIECE;
Share this blog:
Comments

Related Articles