As an DBA who has worked with many database administration tools, I often need to be able to find queries that users ran recently, for being able to view the queries and their execution plans, and tune them. Oracle 10g onwards provide views such as DBA_HIST_SQLTEXT, DBA_HIST_SQL_PLAN that can be queried to find out the queries and their plans.
Oracle 10g EM Grid onwards provide intuitive GUI interface to search and drill-down history sessions, sql text and execution plan.
Go to the database target -> Performance tab -> Search SQL link at the bottom. It can search from Cursor Cache, AWR Snapshots, AWR Baseline, SQL Tuning Set. Note in the search box for SQL Text LIKE, the wildchar % or ? needs to be used, and it is not case-sensitive.
Run a sql statement from sql*plus
SQL> select * from testniej;
Searching with the wildchar returns the query and its SQL ID, click the SQL ID we can drill down to the query: its statistics, plan, etc.
Searching without the wildchar returns nothing