文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 资格考试/认证 > IT认证 > Oracle PLSQL 优化与调整 – PLSQL Native Compilation 说明
侵权投诉

Oracle PLSQL 优化与调整 – PLSQL Native Compilation 说明

一. 相关概述

在之前的Bulk的那篇blog里提到了Oracle 的2个引擎:PL/SQL 引擎和SQL 引擎。

Oracle 使用2个引擎来执行SQL和代码块:SQL 引擎和PL/SQL 引擎, Oracle 使用这2个引擎来执行PL/SQL blocks 和 subprograms。那么在执行的时候,PL/SQL 引擎把DML 语句发送给SQL 引擎,然后由SQL 引擎执行,执行完毕后,SQL 引擎把结果集在发送给PL/SQL 引擎。因此在不同引擎之间切换就需要进行context switch,过多的context switch是会影响SQL性能的。而bulk 就是从减少引擎之间context switches的方式来提高sql的效率。 把对SQL 进行打包处理。

这里看另一个处理角度,使用PL/SQL Native Compilation(PL/SQL的本地编译)。

官网的链接如下:

PL/SQL Native Compilation

Compiling PL/SQL Units for Native Execution

1.1 PL/SQL Native Compilation

Starting with Oracle Database 10g Release 1 (10.1), the configuration of initialization parameters and the command setup for native compilation has been simplified. The important parameters now arePLSQL_NATIVE_LIBRARY_DIR and PLSQL_NATIVE_LIBRARY_SUBDIR_COUNT.

The parameters related to the compiler, linker, and make utility have been made obsolete. Native compilation is turned on and off by a separate initialization parameter, PLSQL_CODE_TYPE, rather than being one of several options in the PLSQL_COMPILER_FLAGS parameter, which is now deprecated. The spnc_commands file, located in theORACLE_HOME/plsql directory, contains the commands and options for compiling and linking, rather than a makefile.

--在Oracle 10g以后,配置native compilation 相对简单很多,最重要的参数是:PLSQL_NATIVE_LIBRARY_DIR 和 PLSQL_NATIVE_LIBRARY_SUBDIR_COUNT.

关联complier,linker 的参数已经过期。 Native compilation 通过一个PLSQL_CODE_TYPE 参考来控制启动和关闭。在10g 之前是使用

第1页

你可能喜欢

热门文档

相关文档

  • ORACLE PLSQL优化

    ORACLE PLSQL优化_IT/计算机_专业资料。ORACLE PLSQL优化PL/SQL优化 PL/SQL... 如何查询 效率 1、sql*plus 、 2、 explain 、 3、工具(plsql) 、工具( ...

  • ORACLE PLSQL调试方法

    ORACLE PLSQL调试方法_计算机软件及应用_IT/计算机_专业资料。Oracle 专题——... Oracle PLSQL 优化与调整... 12页 免费 Oracle数据库-PLSQL使用... 暂无...

  • Native PLSQL Compilation

    Oracle PLSQL 优化与调整... 12页 免费 Compiling PLSQL Units ... 暂无...2005 Julian Dyke juliandyke.com Native PL/SQL Compilation ? Oracle 9.0.1...

  • ORACLE_PLSQL优化

    ORACLE_PLSQL优化_计算机软件及应用_IT/计算机_专业资料。PL/SQL优化 3 Sept...1、sql*plus 2、 explain 3、工具(plsql) 3 Sept. 2008 Confidential 如何...

  • PLSQL程序优化和性能分析方法

    第 5 页 / 共 29 页 PLSQL 程序优化和性能测试方法 select count(*) from ab01,ac01 执行时间 26.09 秒 2.4.2 WHERE 子句中的连接顺序 ORACLE 采用...

  • ORACLE中PLSQL的使用

    退出ORACLE中PL/SQL的使用 ?PL/SQL语言简介 ?使用PL/SQL编写ORACLE存储过程(PROCEDURE) ?在ORACLE中使用包(PACKAGE) ?ORACLE中存储过程和包的执行 ?使用PL/SQL...

  • ORACLE PLSQL性能调优

    Oracle Direct Seminar <Insert Picture Here> PL/...全部使用缺省选项,没有进行任何的 优化处理 Copyright...设定以下的初始化参数① PLSQL_NATIVE_LIBRARY_DIR ...

  • Oracle利用PLSQL调试存储过程

    Oracle利用PLSQL调试存储过程_IT/计算机_专业资料。存储过程存储过程创建语法: ... oracle 最简单的学习笔记... 3页 免费 Oracle PLSQL 优化与调整... 12页 ...

  • Oracle使用PLSQL

    给SQL语句的执行添加程序逻辑 与 Oracle 服务器和 Oracle 工具紧密集成, 具备可移植性、灵活性和安全性 4 PL/SQL 的优点 2-1 支持 SQL,在 PL/SQL 中可以...

  • PLSQL如何调试Oracle存储过程

    PLSQL如何调试Oracle存储过程_计算机软件及应用_IT/计算机_专业资料。PL/SQL中... Oracle PLSQL 优化与调整... 12页 免费 Oracle_plsql存储过程、... 92页 ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email