了解Oracle内核代码层的作用

本文详细介绍了Oracle RDBMS内核的多层架构及其关键组件,包括缓存层KC、事务层KT、递归程序接口RPI、行缓存层等。这些组件共同实现了Oracle的空间管理功能。
Oracle RDBMS Kernel 的代码分成多层次,如<Oracle8i Internal Services>一书所介绍的: oracle_kernel_layer  其中部分代码层的作用: The cache layer (KC)

The cache layer manages the database buffer cache. It uses operating system dependent facilities for data file I/O, provides concurrency control facilities for local access to the cache buffers, and provides parallel cache management (PCM) instance locking facilities for Oracle parallel server. The other main responsibility of the cache layer is the control of redo generation into the log buffer, and the writing of redo to the log files. The cache layer also caches control file information.

  • To read blocks.
  • To update blocks in redo only mode.
The transaction layer (KT)

This layer is responsible for the allocation of transactions to rollback segments, interested transaction list changes within data blocks, changes to rollback segment blocks for undo generation, transaction control facilities such as savepoints, and read consistency. The transaction layer is also responsible for space management, both at the level of segment free lists and at the level of tablespace extent allocation.

  • To update blocks with undo.
  • To check with the status of the transaction.
  • To manage recursive transactions for nested space operations.
The recursive program interface (RPI)

The recursive program interface is used to populate the dictionary cache from the data dictionary. Row cache recursive SQL statements are executed in a separate call context, but are not parsed and optimized in the compilation layer.

Row Cache Layer

  • To read/update space dictionary information, where acutal updates happens by callbacks when row cache is flushed.

Recursive SQL

  • To read/update dictionary information.
File Layer
  • To create/drop/alter files in tablespace.

  以上各代码层实现了Oracle Space Management 空间管理的主要功能。


本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1278030


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值