In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
You can use Hints to enable real-time monitoring of a SQL.
Select / * + monitor*/ count (*) from scott.emp where sal > 2000
Use dbms_sqltune to view monitoring information
Set long 9999999
Set longchunksize 9999999
Set linesize 200
Select dbms_sqltune.report_sql_monitor from dual
REPORT_SQL_MONITOR
-
SQL Monitoring Report
SQL Text
-
Select / * + monitor*/ count (*) from scott.emp where sal > 2000
Global Information
-
Status: DONE (ALL ROWS)
Instance ID: 1
Session: SYS (9VR 15084)
SQL ID: 6k8qh0ubz4mnw
SQL Execution ID: 16777216
Execution Started: 05/27/2017 23:10:31
First Refresh Time: 05/27/2017 23:10:31
Last Refresh Time: 05/27/2017 23:10:31
Duration: .0003s
Module/Action: sqlplus.exe/-
Service: SYS$USERS
Program: sqlplus.exe
Fetch Calls: 1
Global Stats
=
| | Elapsed | IO | Other | Fetch | Buffer | |
| | Time (s) | Waits (s) | Waits (s) | Calls | Gets |
=
| | 0.00 | 0.00 | 0.00 | 1 | 7 |
=
SQL Plan Monitoring Details (Plan Hash Value=2083865914)
=
| | Id | Operation | Name | Rows | Cost | Time | Start | Execs | Rows | Activity | Activity Detail |
| | (Estim) | | Active (s) | Active | | (Actual) | (%) | (# samples) |
=
| | 0 | SELECT STATEMENT | 1 | + 0 | 1 | 1 |
| | 1 | SORT AGGREGATE | | 1 | | 1 | + 0 | 1 | 1 |
| | 2 | TABLE ACCESS FULL | EMP | 10 | 3 | 1 | + 0 | 1 | 6 |
=
The monitoring information always points to the SQL statement that was last monitored and will be cleared after the database is restarted.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.