Skip to content

Commit c4bf56d

Browse files
committed
added oracle_recent_queries.sql
1 parent d6ad6dd commit c4bf56d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

oracle_recent_queries.sql

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
--
2+
-- Author: Hari Sekhon
3+
-- Date: 2024-10-12 06:17:50 +0300 (Sat, 12 Oct 2024)
4+
--
5+
-- vim:ts=4:sts=4:sw=4:et:filetype=sql
6+
--
7+
-- https///github.com/HariSekhon/SQL-scripts
8+
--
9+
-- License: see accompanying Hari Sekhon LICENSE file
10+
--
11+
-- If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12+
--
13+
-- https://www.linkedin.com/in/HariSekhon
14+
--
15+
16+
-- Oracle - Show Recent Queries
17+
--
18+
-- Testd on Oracle 19c
19+
20+
SELECT
21+
sql_text,
22+
executions
23+
FROM
24+
v$sql
25+
ORDER BY
26+
last_active_time
27+
DESC;

0 commit comments

Comments
 (0)