We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ad6dd commit c4bf56dCopy full SHA for c4bf56d
oracle_recent_queries.sql
@@ -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