I want to get the list of SQL_Id executed between a beginning snapshot and the end snapshot time in Oracle. We can get the list from the AWR report but I need a SQL query which will return all the SQL IDs. SQL Id is present in the V$SQL table but there isn't any column for snapshot time.
UI
Tried to get idea from the below queries-
select * from V$SQL;
desc V$SQL;
SELECT * FROM dba_hist_snapshot;