oracle体系结构深入学习Buffer Cache
oracle体系结构深入学习Buffer Cache - Overview
oracle 2009-09-02 23:13:26 阅读40 评论0 字号:大中小
涛涛深入学习oracle体系结构
我发觉,英文的一些技术文章在描述oracle原理非常的恰当到位,表达的非常的美,呵呵。英文不好,献丑翻译并学习了,认真看了,相信你受益匪浅。
oracle体系结构之:Buffer Cache - Overview
All Oracle data is obtained by users from the buffer cache. The basic purpose of the cache is to minimize physical
disk I/O by holding (buffering) copies of requested data blocks in memory. Data that is buffered in the cache can
be served to users at memory access speed, much faster than going to disk for it. The large performance penalty of
disk I/O makes tuning the buffer cache an extremely important task for the DBA.
Oracle data is stored on disk in identically sized units called blocks. Block size is determined at database creation
by the DB_BLOCK_SIZE initialization parameter. The buffer cache is also divided into buffers of this same size, and
each buffer can hold exactly one database block. Thus, the block is the basic unit of data transfer between disk and
memory in Oracle.
所有的oracle数据获取,都是用户通过高速数据缓存取得的,最基本的目的就是为了减少物理磁盘的I/O操作通过把请求的数据保存在内存当中。
被缓存在高速缓冲区的数据能被用户快速的从内存中获取到,那比从磁盘去取得数据要快很多。磁盘的I/O所消耗的巨大的性能代价,这使得调优
数据库高速缓存成为dba一个非常明确的重要任务。
oracle数据被存储在磁盘中等同大小的单元中,这些单元被叫做块;块大小在数据库被创建时通过初始参数db_block_size来定义。数据高速缓存
也被划分成同样大小的缓存块。并且每个缓存块持有一个数据库块,因此块是基本的数据传送单元在数据文件和内存之间。
oracle数据库高速缓存之Cache Hit Ratio
The buffer cache is a shared resource, accessible by all users. When a user process requests data, Oracle firsts looks
for that data's block in the cache. If the data is buffered in the cache it is returned to the requ
相关文档:
存储过程 包含三部分: 声明,执行部分,异常。
可以有无参数程序和带参数存储过程。
无参程序语法
1 create or replace procedure NoParPro
2 as ;
3 begin
4&n ......
下面是ORACLE行列转换通用存储过程:
1、
Function Fun_Split_Str(p_Str Varchar2, p_Division Varchar2, p_Seq Int)
Return Varchar2 Is
v_First Int;
v_Last Int;
Begin
If p_Seq < 1 Then
&nbs ......
1. /*+ALL_ROWS*/
表明对语句块选择基于开销的优化方法,并获得最佳吞吐量,使资源消耗最小化.
例如:
SELECT /*+ALL+_ROWS*/ EMP_NO,EMP_NAM,DAT_IN from BSEMPMS WHERE EMP_NO='SCOTT';
2. /*+FIRST_ROWS*/
表明对语句块选择基于开销的优化方法,并获得最佳响应时间,使资源消耗最小化.
例如 ......
Oracle 服务进程-简单介绍
以Orcale10g的版本为例,简单介绍下Oracle的服务进程(Windows版本) -ganlan。
1、OracleCSService
进程:ocssd.exe
介绍:Cluster Synchronization Services (CSS)—Manages the cluster configuration by controlling which nodes are members of the cluster an ......