Avatar of Cha1tu
Cha1tu
 asked on

How to know the history of sql commands executed by a user on linux

Hi,

I would like to know if there is any location where the sql commands executed by a user are stored. Any help is appreciated.

Thanks in advance.
Oracle Database

Avatar of undefined
Last Comment
Franck Pachot

8/22/2022 - Mon
Franck Pachot

Hi,
You can check v$sql for a PARSING_SCHEMA_NAME (user) and order by LAST_ACTIVE_TIME
Regards,
Franck.
Cha1tu

ASKER
Thank you Franck for your response. The SQL_FULLTEXT is giving a vague idea of what the user may have done something like " insert into sys.wri$_optstat_opr (operation, target, start_time, end_time) valu  "

How do we interpret it? Can we actually get back the query as it was executed?
ASKER CERTIFIED SOLUTION
Franck Pachot

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Cha1tu

ASKER
Thank you Franck,

I now understood what you said. But is there any way we can filter only the full commands and not the recursive statements?
Your help has saved me hundreds of hours of internet surfing.
fblack61
Franck Pachot

No you can't :(