Oracle概述

来源:互联网 发布:rar 解压缩 for mac 编辑:程序博客网 时间:2024/05/16 18:16

Oracle进程结构

用户进程

服务器进程

Oracle自身创建,处理连接到数据库实例的用户进程提出的请求

后台进程

保证处理并发,和其他复杂数据操作,Oracle数据库启用的一组相互独立的附加进程

Oracle存储结构

这里写图片描述

逻辑结构

这里写图片描述

逻辑结构 内容 表空间 table space 一般而言,一个用户对应一个表空间 段 segement 表空间被划分为(数据段 索引段 临时段 撤销段) 盘区extent 分配磁盘空间的最小单位 数据块 block Oracle进行磁盘I/O的最低的粒度级别,不必和操作系统相同,但必须是它的倍数

物理结构

  • 数据文件.dbf
  • 控制文件.ctl
  • 日志文件.log
  • 初始化参数文件init.ora
  • 其他文件

Oracle服务器架构

概述

Oracle 服务器在架构上主要分为内存 磁盘两大块:
1. 分布在内存中的 PGA/SGA/其他后台进程代码
2. 存放在磁盘上的数据库物理文件

SGA和其他服务器进程代码构成一个Instance实例

内存

PGA(Program Gloabal Area)

系统给每个进程分配一个PGA来保存其局部数据和控制信息
PGA包含各种会话数据的堆栈空间以及正在执行的SQL语句所占用的私有空间

Server processes that perform work on behalf of connected users and applications, and the memory and temporary storage used by these processes
服务器进程执行建立连接,建立会话的工作.将Oracle服务器进程,与用户应用进程,以及他们所产生的临时存储联系到了一起

Server processes parse and execute SQL statements, and retrieve and return results to the user or application.
服务器进程分析和执行SQL语句,获得查询结果,并把结果返回给发出SQL请求的用户/用户应用

SGA(System Global Area)

The shared memory areas used by the background processes
SGA是存放用户间共享结构的区域

其他后台进程

下图中的PMON SMON DBWR .etc
The background processes, which are the operating system processes or threads that perform the work of accessing, storing, monitoring, and recovering user data, metadata, and control files associated with the database

oracle架构

磁盘

数据库文件

The database, which is a collection of physical files on one or more disks
在Oracle看来,位于硬盘上实际存放数据的文件, 这些文件组织在一起, 成为一个逻辑整体, 即为 Oracle 数据库. 因此在 Oracle 看来, “数据库” 是指硬盘上文件的逻辑集合, 必须要与内存里实例合作, 才能对外提供数据管理服务.

The database contains user data, metadata, and control structures.
数据库包含用户数据,元数据,以及其他控制结构

Metadata, or data about the data, is the collection of information on disk that permits Oracle software to manage user data. An example of metadata is the data dictionary.
元数据,是磁盘上的一些特殊数据的集合,这些数据允许Oracle来管理用户文件,数据字典就是一种元文件.

Control structures (such as the control file and online redo log files) ensure the integrity, availability, and recoverability of user data.
控制结构(包含控制文件,redo操作日志文件),保障了用户数据的健壮性,可利用性,以及可恢复性

0 0
原创粉丝点击