易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

oracle存储过程语法

存储过程 包含三部分: 声明,执行部分,异常。    
可以有无参数程序和带参数存储过程。    
无参程序语法    
1 create or replace procedure NoParPro   
2 as   ;   
3 begin   
4&n ......

ORACLE 行列转换通用存储过程,已经转换的MSSQL版本

下面是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 ......

Oracle实现自增主键

Oracle实现自增主键
oracle没有ORACLE自增字段这样的功能,但是通过触发器(trigger)和序列(sequence)可以实现。
create table t_client (id number(4) primary key,
pid number(4) not null,
name varchar2(30) not null,
client_id varchar2(10),
client_level char(3),
bank_acct_no varchar2(30),
contact_tel&n ......

Oracle用户空间统计

select owner,sum(bytes)/1024/1024 sum_MB
from dba_segments
where tablespace_name='USERS' and owner like 'ZJ%'
group by owner
order by 2 desc;
SET NEWPAGE NONE HEADING OFF SPACE 0 PAGESIZE 0 TRIMOUT ON TRIMSPOOL ON LINESIZE 25 ......

Oracle中start with...connect by prior子句用法

connect by 是结构化查询中用到的,其基本语法是:
select ... from tablename start with 条件1
connect by 条件2
where 条件3;
例:
select * from table
start with org_id = 'HBHqfWGWPy'
connect by prior org_id = parent_id;
简单说来是将一个树状结构存储在一张表里,比如一个表中存在两个字段:
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号