当前位置:网站首页>Oracle database SQL statement execution plan, statement tracking and optimization instance
Oracle database SQL statement execution plan, statement tracking and optimization instance
2022-07-03 09:50:00 【drhrht】
How to find the ones that consume the most system resources SQL Sentence? utilize I/O Optimize the identification of resource consuming methods, i.e AWR The report , Can make it easy .
When you identify the one most likely to go wrong SQL After the statement , The next step is how to track the execution of this statement , The most common way is to find out what SQL Statement execution plan .
With the increase of data in the database , The response speed of the system has become one of the main problems that the system needs to solve , A very important aspect of system optimization is SQL Statement optimization .
A large number of data point to inferior SQL Statement and quality SQL The speed difference between statements can be hundreds of times , For a system, it is not easy to realize the function , It's about writing high quality SQL Statement to improve the availability of the system .
01、 utilize autotrace track SQL sentence
utilize autotrace track SQL The code of the statement is as follows :
SQL> set autotrace on
SQL> select * from dual;
D
-
X
Implementation plan
----------------------------------------------------------
Plan hash value: 272002086
--------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 2 | 2 (0)| 00:00:01 |
| 1 | TABLE ACCESS
边栏推荐
- 我想各位朋友都应该知道学习的基本规律就是:从易到难
- How does the memory database give full play to the advantages of memory?
- When you need to use some functions of STM32, but 51 can't realize them, 32 naturally doesn't need to learn
- Epoll read / write mode in LT and et modes
- How MySQL modifies null to not null
- 开学实验里要用到mysql,忘记基本的select语句怎么玩啦?补救来啦~
- Construction and test of TFTP server under unbuntu (Debian)
- Jestson nano custom root file system creation (supports the smallest root file system of NVIDIA Graphics Library)
- IDEA远程断点调试jar包项目
- Fundamentals of Electronic Technology (III)_ Integrated operational amplifier and its application__ Basic arithmetic circuit
猜你喜欢
要選擇那種語言為單片機編寫程序呢
numpy. Reshape() and resize() functions
UCI and data multiplexing are transmitted on Pusch - placement of data and UCI positions (Part III)
[csdn] C1 analyse des questions de formation Partie III Bar _ JS Foundation
编程思想比任何都重要,不是比谁多会用几个函数而是比程序的理解
Fundamentals of Electronic Technology (III)__ Fundamentals of circuit analysis__ Basic amplifier operating principle
Electronic product design, MCU development, circuit cloning
Happy Dragon Boat Festival—— Zongzi written by canvas~~~~~
Global KYC service provider advance AI in vivo detection products have passed ISO international safety certification, and the product capability has reached a new level
Flink learning notes (XI) table API and SQL
随机推荐
Install local sources using yum
Difference of EOF
Development of fire power monitoring system
GPIO port details, Hal library operation keys
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 4 --blinker_ DHT_ WiFi (lighting technology app control + temperature and humidity data app display)
CEF download, compile project
[22 graduation season] I'm a graduate yo~
【力扣刷题笔记(二)】特别技巧,模块突破,45道经典题目分类总结,在不断巩固中精进
一个可执行的二进制文件包含的不仅仅是机器指令
The third paper of information system project manager in soft examination
MySQL data manipulation language DML common commands
没有多少人能够最终把自己的兴趣带到大学毕业上
Epollet lessons
Analysis of the implementation principle of an open source markdown to rich text editor
Project cost management__ Cost management technology__ Article 6 prediction
[male nanny style] teach you to open the first wechat applet
Flink CDC practice (including practical steps and screenshots)
Raspberry pie installation SciPy
Implementing distributed lock with redis
UCI and data multiplexing are transmitted on Pusch - determine the bit number of harqack, csi1 and csi2 (Part II)