Find out the history of SQL queries

后端 未结 3 1917
耶瑟儿~
耶瑟儿~ 2020-12-02 15:04

An update SQL query was executed on the server, which caused many problems later.

How can I get the list of update queries executed in last 2 months, so that I can t

3条回答
  •  甜味超标
    2020-12-02 15:45

    For recent SQL:

    select * from v$sql
    

    For history:

    select * from dba_hist_sqltext
    

提交回复
热议问题