Chinaunix首页 | 论坛 | 博客
  • 博客访问: 924737
  • 博文数量: 358
  • 博客积分: 8185
  • 博客等级: 中将
  • 技术积分: 3751
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:27
个人简介

The views and opinions expressed all for my own,only for study and test, not reflect the views of Any Company and its affiliates.

文章分类

全部博文(358)

文章存档

2012年(8)

2011年(18)

2010年(50)

2009年(218)

2008年(64)

我的朋友

分类: Oracle

2009-08-15 14:26:10

1.
You issue an UPDATE command, and then a COMMIT.the following actions has happpend:
①. Data blocks are copied from the datafiles into the database buffer cache.
②. The log buffer is updated.
③. Data blocks in the cache are updated.
④. The log buffer is flushed to disk.
⑤. The changed blocks are flushed to disk.
Remember that everything happens in memory first, and that your server process writes to the log buffer before writing the database buffer cache. Then on commit, the log buffer is flushed to disk. The data blocks may not be written for some time.

■Instance Parameters for PL/SQL

2.PLSQL_CODE_TYPE, default INTERPRETED
When PL/SQL is compiled, the resulting code stored depends on the PLSQL_CODE_TYPE setting.
INTERPRETED means that PL/SQL code is compiled only down to byte code.Then when invoked, this is interpreted.
・NATIVE, in conjunction with the parameter that follows, instructs Oracle to precompile the PL/SQL code to C code, and then to compile and link this with the C compiler and linker provided by your
server’s operating system. This may improve performance.
・・
Native compiled code is stored in an operating system file, 
Interpreted code is stored in the data dictionary.
・・※
In most cases, the default settings for all these instance parameters will be suitable.
On a production system, you may wish to consider setting the PLSQL_CODE_TYPE to NATIVE; this is in fact recommended for Oracle E-Business Suite running in a 10g database.

3.PLSQL_OPTIMIZE_LEVEL, default 2
Level 2, the highest, enables the use of all the compiler’s optimization features; 
this gives the best run-time performancebut perhaps increases compilation time. 
・Lower settings (0 or 1) will result in quicker compilation but possibly slightly degraded execution. 
・・※If the production system is doing a large amount of compilation (anonymous PL/SQL, for example), then it might be necessary to change this.

阅读(386) | 评论(0) | 转发(0) |
0

上一篇:浅表性胃炎

下一篇:一位老工程师的忠告

给主人留下些什么吧!~~