Agile (MOSC)

MOSC Banner

Hi Client needs a output as Which SQL has been trigger (Insert/update/delete/drop) query in database

in Agile (MOSC) 1 commentAnswered

Hi all,

We use oracle 11g databases and I need which query did the user run since one month along with schema/usernmae,date and from which machine he has executed query. What can I do to find these information like following? If you can provide entire query then it will be great.

I tried below but not working


select b.SQL_TEXT from dba_hist_sqltext b --v$sqltext b, DBA_HIST_ACTIVE_SESS_HISTORY,v$process,v$session s,v$sqlarea sa where p.addr=s.paddr and s.username is not null and s.USERNAME in ('MS','TK','WAP','RW460Q','CMS','BBT','ADSL');

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center