Skip to content

Commit 5ac41c6

Browse files
authored
Create dbresource-manager.sql
1 parent 301e759 commit 5ac41c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
REM Script: dbresource-manager.sql
2+
REM Database Resource Manager and Real-Time SQL Monitoring
3+
4+
-- query columns with rm_ prefix to get database resource manager information
5+
6+
SELECT username, elapsed_time, plsql_exec_time, sql_text, cpu_time,
7+
rm_last_action, rm_last_action_reason, rm_last_action_time, rm_consumer_group
8+
FROM v$sql_monitor WHERE username is not null;

0 commit comments

Comments
 (0)