oracle hard parse soft parse
来源:互联网 发布:php 获取请求参数 编辑:程序博客网 时间:2024/05/18 07:20
Oracle SQL is parsed before execution, and a hard parse includes these steps:
1. Loading into shared pool - The SQL source code is loaded into RAM for parsing. (the "hard" parse step)
2. Syntax parse - Oracle parses the syntax to check for misspelled SQL keywords.
3. Semantic parse - Oracle verifies all table & column names from the dictionary and checks to see if you are authorized to see the data.
4. Optimization - Oracle them creates an execution plan, based on your schema statistics (or maybe dynamic sampling in 10g).
5. Create executable - Oracle builds an executable file with native file calls to service the SQL query.
Oracle gives us the shared_pool_size parm to cache SQL so that we don't have to parse, over-and-over again. However, SQL can age-out if the shared_pool_size is too small or if it is cluttered with non-reusable SQL (i.e. SQL that has literals "where name = "fred") in the source.
What the difference between a hard parse and a soft parse in Oracle? Just the first step, step 1 as shown in red, above. In other words, a soft parse does not require a shared pool reload (and the associated RAM memory allocation).
A general high "parse call" (> 10/sec.) indicates that your system has many incoming unique SQL statements, or that your SQL is not reentrant (i.e. not using bind variables).
A hard parse is when your SQL must be re-loaded into the shared pool. A hard parse is worse than a soft parse because of the overhead involved in shared pool RAM allocation and memory management. Once loaded, the SQL must then be completely re-checked for syntax & semantics and an executable generated.
Excessive hard parsing can occur when your shared_pool_size is too small (and reentrant SQL is paged out), or when you have non-reusable SQL statements without host variables.
1. Loading into shared pool - The SQL source code is loaded into RAM for parsing. (the "hard" parse step)
2. Syntax parse - Oracle parses the syntax to check for misspelled SQL keywords.
3. Semantic parse - Oracle verifies all table & column names from the dictionary and checks to see if you are authorized to see the data.
4. Optimization - Oracle them creates an execution plan, based on your schema statistics (or maybe dynamic sampling in 10g).
5. Create executable - Oracle builds an executable file with native file calls to service the SQL query.
Oracle gives us the shared_pool_size parm to cache SQL so that we don't have to parse, over-and-over again. However, SQL can age-out if the shared_pool_size is too small or if it is cluttered with non-reusable SQL (i.e. SQL that has literals "where name = "fred") in the source.
What the difference between a hard parse and a soft parse in Oracle? Just the first step, step 1 as shown in red, above. In other words, a soft parse does not require a shared pool reload (and the associated RAM memory allocation).
A general high "parse call" (> 10/sec.) indicates that your system has many incoming unique SQL statements, or that your SQL is not reentrant (i.e. not using bind variables).
A hard parse is when your SQL must be re-loaded into the shared pool. A hard parse is worse than a soft parse because of the overhead involved in shared pool RAM allocation and memory management. Once loaded, the SQL must then be completely re-checked for syntax & semantics and an executable generated.
Excessive hard parsing can occur when your shared_pool_size is too small (and reentrant SQL is paged out), or when you have non-reusable SQL statements without host variables.
0 0
- oracle hard parse soft parse
- Oracle-Soft Parse/Hard Parse/Soft Soft Parse解读
- Hard Parse&Soft Parse
- hard parse soft parse soft soft parse
- difference between soft parse and hard parse
- fast parse,soft parse,hard parse的区别
- fast parse,soft parse,hard parse的区别
- fast parse,soft parse,hard parse的区别
- Process of Oracle Hard Parse
- Oracle Metric hard parse (sharing criteria) elapsed time
- parse
- parse
- parse
- $parse
- oracle实验记录 (分析oracle硬解析&软解析&fast soft parse)
- soft parse 和 library cache lock
- Execute to Parse及Soft Pars
- Oracle SQL no parse
- 一个应用中启动另一个应用的几种方式
- ansible
- 安装完 xampp 以后痛彻心扉的教训
- 快速入门系列一:在窗口中加入GIF动画支持
- Buildroot 用户指南
- oracle hard parse soft parse
- ASP.NET MVC View向Controller提交数据
- ubuntu64位下安装libjpeg.so.62
- Perl 回调函数和闭包
- NYOJ VF
- linux文件数据处理(备忘)
- 方便使用FFMPEG的经验
- 线程基础篇Looper
- SpringMVC Controller方法入参映射探秘