- 浏览: 263527 次
- 性别:
- 来自: 南京
文章分类
- 全部博客 (143)
- ORACLE PL/SQL Developer (5)
- ORACLE (24)
- PYTHON (1)
- 理财投资 (2)
- Cocos2d (1)
- 3D游戏引擎 (1)
- 存储 (1)
- MariaDB (1)
- LAMP (2)
- Windows 7 (8)
- Windows TIME_WAIT (1)
- ADOBE READER (1)
- OFFICE Excel 2007 WORD (1)
- Visual Studio 2013 (1)
- 百度轻应用 (0)
- Delphi7 Windows7 (1)
- ORACLE 9i 11g EXP IMP (1)
- HP-Socket (0)
- WINDOWS PHONE 8 (2)
- visual studio 2012 2013 (1)
- Windows Phone 7 (1)
- Microsoft Office (1)
- Oracle 11g (1)
- Android (3)
- 魔兽世界 (1)
- 纸牌屋 (0)
- 云主机 (1)
- WhatsApp (1)
- Windows Phone 8 SDK (1)
- Visual Studio 2012 (1)
- chromium embedded framework (1)
- 一起寻找失联马航 (1)
- Remote Desktop (1)
- Delphi 2007 (2)
- Delphi_2007_for_Win32 (0)
- 虚幻引擎4 (1)
- 技能 (1)
- WebScarab Project (1)
- OPENSSL (1)
- PHP (3)
- Burp Suite (1)
- p2p网贷 (1)
- CVE-2014-0160 (1)
- jekyll (1)
- JAVA (3)
- delphi (2)
- Ajax (1)
- wordpress (2)
- Apple Swift (1)
- 苹果产品 (1)
- 苹果设备 (1)
- Mobile Game (1)
- FileCut (1)
- Go Lang (1)
- WeebLy (1)
- Chrome (2)
- IE (2)
- Windows PATH (1)
- MinGW (1)
- VC++ 2008 (1)
- SSD (1)
- Windows IE (2)
- Android Studio (1)
- VMWARE (1)
- JAVA GUI (1)
- 鼻炎 (1)
- 电影 (1)
- VS2010 (1)
- SEP (1)
- 开源软件 (1)
- 客户经理 (1)
- SVN (1)
- 开源硬件平台 (1)
- CENTOS LINUX (1)
- GOOGLE (1)
- LINUX (4)
- HSQLDB (1)
- XBOX (1)
- VC++ (1)
- INTERNET (1)
- HARDWARE (1)
- AAR (1)
- 心理健康 (1)
- PUTTY (1)
- CLOUD (1)
- MEMO (1)
- IE 10 CSS (1)
- BAIDU (1)
- 字体 (1)
- Windows (1)
- MAC (1)
- MYSQL (2)
- bootstrap (1)
- tomcat (1)
- excel 2003 2007 (1)
- QMS (1)
最新评论
-
1036225283:
就不能截个图么
最适合程序员的字体:Yahei consolas hybrid 修正版 -
hotsmile:
不错,身体很重要!!!!!!
过敏性鼻炎的治疗方法 -
zyiqibook:
多谢分享,好
过敏性鼻炎的治疗方法 -
dbaspider:
ria2008 写道生成的文件没有办法看啊!生成的zip文件解 ...
win 7 自带神器 - psr 问题步骤记录器 -
ria2008:
生成的文件没有办法看啊!
win 7 自带神器 - psr 问题步骤记录器
Oracle hard-parse vs. soft parse
OracleSQLCache .
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.Query Transformation - If enabled (query_rewrite=true ), Oracle will transform complex SQL into simpler, equivalent forms and replace aggregations with materialized views, as appropriate.
5.Optimization - Oracle then creates an execution plan, based on your schema statistics (or maybe with statistics from dynamic sampling in 10g).
6.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 y our 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.
See the cursor_sharing parameter for a easy way to make SQL reentrant and remember that you should always use host variables in you SQL so that they can be reentrant.
OracleSQLCache .
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.Query Transformation - If enabled (query_rewrite=true ), Oracle will transform complex SQL into simpler, equivalent forms and replace aggregations with materialized views, as appropriate.
5.Optimization - Oracle then creates an execution plan, based on your schema statistics (or maybe with statistics from dynamic sampling in 10g).
6.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 y our 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.
See the cursor_sharing parameter for a easy way to make SQL reentrant and remember that you should always use host variables in you SQL so that they can be reentrant.
发表评论
-
Oracle Critical Patch Update for July 2015
2015-07-15 12:39 988July 14, 2015 Oracle Critical P ... -
Oracle Security Alert CVE-2015-3456 ("Venom") was released on May 15th, 2015
2015-05-18 10:51 946Security Alert CVE-2015-3456 (& ... -
Oracle 外键查询和操作
2015-04-16 10:22 1016临时禁止外键: alter table EMP modify ... -
Oracle 批量杀进程
2015-04-15 11:44 1798紧急情况下,可以用下面shell命令把所有的客户端连接进程杀掉 ... -
Oracle Critical Patch Update for April 2015
2015-04-15 11:19 923April 14, 2015 Oracle Critical ... -
Oracle SQLs
2015-04-14 12:33 834SELECT SYS_CONTEXT ('USERENV', ... -
Linux下Oracle系统参数设置
2015-04-13 14:06 750cat /proc/sys/vm/pagecache /et ... -
ORACLE 锁监控SQL
2015-04-09 20:07 511SELECT a.sid||decode(request,0 ... -
ORACLE 闪回误更新数据的表
2015-04-09 20:05 7151、确保数据库启用了 闪回 功能: db_recovery_ ... -
Enq Tx - Row Lock Contention HOWTO
2015-04-09 20:01 826Troubleshooting Details List o ... -
DBA SQL TREE For Oracle
2015-02-06 12:40 707软件简介:DBA SQL TREE For Oracle ... -
Db Compare For Oracle - Oracle数据库比较程序
2014-12-12 09:49 2474“Db Compare For Oracle” 适用于以下操作 ... -
How to query the alert log using SQL?
2014-05-05 11:39 815In Oracle 11g, How to query the ... -
Oracle 11g下使用RMAN进行备份和恢复操作(二)
2014-02-24 19:20 1759这次介绍下使用rman进行全库备份,数据库处于open状态 ... -
ORA-01882 问题的解决
2014-02-21 09:24 1876【问题描述】 通过 pl sql developer 查 ... -
常用 ORACLE 技术网站
2014-02-21 09:24 646(1). ORACLE中国用户组 http://www.o ... -
ORACLE DATABASE 12c INTERACTIVE QUICK REFERENCE
2014-02-20 14:29 892Oracle Database 12c: Interacti ... -
Oracle数据库体系图
2013-12-04 19:16 728分享一份Oracle数据库体系图:包括体系结构、进程结构、 ... -
如何提升访问ORACLE SUPPORT(MOS/MetaLink)的访问速度
2013-12-02 10:55 878在hosts文件中把下面地址重定向到本机,赶紧去体验M ... -
Oracle中可创建的最大用户数量
2013-11-20 11:02 1181今天有人问这个问题,Oracle中可创建的最大用户数量 ...
相关推荐
- **Parses、Hard Parses、Soft Parses**:Parses是解析SQL语句的过程。Hard Parse是首次解析,需要编译和创建执行计划;Soft Parse则是在共享池中找到相同或相似的解析树,避免了硬解析的开销。 2. **执行计划...
注:SQL语句的解析有软解析soft parse与硬解析hard parse之说,以下是5个步骤: 1:语法是否合法(sql写法) 2:语义是否合法(权限,对象是否存在) 3:检查该sql是否在共享池中存在 -- 如果存在,直接跳过4和5,运行sql....
V$SYSSTAT中的数据通常被用于监控系统性能指标,例如缓存命中率(Buffer Cache Hit Ratio)和软解析率(Soft Parse Ratio)。缓存命中率是衡量数据库性能的重要指标之一,它反映了数据读取操作在缓存中找到所需数据...
- Soft Parse%:软解析比率 - Execute to Parse%:执行到解析比率 - Latch Hit%:锁存命中率 - Parse CPU to Parse Elapsed%:解析CPU与解析时间比率 - Non-Parse CPU:非解析CPU使用率 - **等待事件**: - ...
- **软解析(Soft Parse)**:当相同的SQL再次执行时,Oracle会尝试复用已有的解析树和执行计划,从而避免重复工作。 - **优化建议**:为提高性能,应尽量减少硬解析,通过合理的SQL重用策略提高软解析比例。 5. **...
首先,不使用绑定变量会导致SQL语句的硬分析(Hard Parse)过于频繁。当Oracle遇到一个SQL语句时,它会检查其在Shared Pool(内存区域)中是否存在相同的语句。如果不存在,就会进行硬分析,检查涉及的对象的有效性...
在这个过程中,软解析(soft parse)是指如果在Library Cache中找到已解析的SQL,而硬解析(hard parse)则表示需要重新解析SQL。 7. **CBO与RBO**:Cost-Based Optimizer(CBO)和Rule-Based Optimizer(RBO)是...
- **Soft Parse %**: 88.99 - **Execute to Parse %**: -18.96 - **Latch Hit %**: 99.90 - **Parse CPU to Parse Elapsd %**: 34.20 - **% Non-Parse CPU**: 99.67 ### 6. **共享池统计信息** - **Memory Usage %...
6. Soft Parse Ratio(软解析比率) 软解析比率是指 SQL 语句的软解析比率,通常在 90% 以上。如果太低,可能需要调整应用程序使用绑定变量。 7. Latch Hit Ratio(锁命中率) 锁命中率是指内部结构维护锁的命中...
硬解析(Hard Parse)则会消耗大量系统资源,而软解析(Soft Parse)则利用绑定变量重用解析计划,减少系统开销。 6. **索引策略**: - 选择合适的索引类型(B树、位图、函数索引等)对查询性能至关重要。理解何时...
软解析(Soft Parse)和硬解析(Hard Parse)是解析过程的两种形式。软解析只需进行语法和语义检查,如果在共享池中找到相同的语句,就直接执行。而硬解析则涉及更复杂的优化过程,包括视图合并、谓词下推、子查询...
- **Soft Parse (软解析)**: 当Oracle收到SQL语句后,会先对其进行语法和语义检查,然后通过内部算法生成解析树和执行计划。在生成执行计划之前,Oracle会利用内部的hash算法计算SQL的hash值,并在 **Library Cache*...
硬解析(Hard Parse)和软解析(Soft Parse)是数据库性能的关键指标。硬解析会带来较高的CPU和资源开销,因为它需要解析SQL并重新分配内存。软解析则利用已存在于Shared Pool中的SQL语句,节省了资源。软解析命中率...
2. **优化SQL查询**:硬解析(Hard Parse)较少,但软解析(Soft Parse)仍有优化空间。检查SQL语句,优化查询语句,避免全表扫描,减少I/O密集型操作。 3. **监控和调整Latches**:高频率的latch free事件可能意味...
7. **使用绑定变量**:避免在SQL语句中使用硬解析(hard parse),即每次执行都创建新的执行计划。使用绑定变量(bind variables)可以实现软解析(soft parse),复用相同的执行计划,提高效率。 8. **监控与调整*...
不使用绑定变量,例如在Java程序中直接将变量值拼接到SQL语句中,会导致每次SQL语句的值改变时,Oracle都需要重新解析SQL,这称为硬分析(Hard Parse)。硬分析不仅消耗CPU资源,还会增加数据库的负载,因为每次都...
在数据库操作中,解析SQL语句有两种方式:硬解析(Hard Parse)和软解析(Soft Parse)。硬解析是当SQL首次提交时,由于数据库需要进行完整的语法检查、权限验证和执行计划生成,因此消耗资源较多。相反,软解析是在...
这包括快速解析(fast parse)、软解析(soft parse)和硬解析(hard parse)。软解析次数过高可能意味着应用程序效率不高。 - **Soft parses**:当SQL语句在共享池(shared pool)中找到匹配的解析树时发生的解析操作。高...