Oracle 什么时候才不会对SQL做解析直接执行?

weixin_45770050 2021-04-03 09:22:13
AWR里有个execute to parse的指标,数字越大说明直接执行不经过解析的sql比例越大。
但是参考oracle文档叙述如下:

SQL Parsing
The first stage of SQL processing is parsing.

The parsing stage involves separating the pieces of a SQL statement into a data structure that other routines can process. The database parses a statement when instructed by the application, which means that only the application­, and not the database itself, can reduce the number of parses.

When an application issues a SQL statement, the application makes a parse call to the database to prepare the statement for execution.

2个要点:
1、数据库听从程序要不要解析的指令,只有程序自己才能减少解析
2、每当程序发出一条SQL,程序会发出一个parse call

这两点看起来就有点矛盾,每当程序发出一套sql都会发出parse call的话,那不就是已经是进入解析流程?
那程序又怎么才能让数据库不做解析呢?
...全文
285 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
concepts里有描述

3,499

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧