Oracle中有三类进程:

1 User Process

2 Server Process

  Server Process is a program that directly interacts with the Oracle Server. Once a user has established a connection, a server is started to handle the user processes requests. The user process does not interact directly with the Oracle Server. Server Process generate SQL tasks on behalf of user process and return results to user process.

  

  A Server process can be either a deidcated server process or a shared server process.

  • Dedicated server process: the server handles the request of a single user process. Once a user process disconnects, the server process is terminated.
  • Shared server process: the server can handles the requests of several user processes. Once a user has established a connection, an avaliable server is started to handle the user processes requests.   

3 Background processe

  Started when an oracle instance is started.

DBWn(Database Writer):writes the dirty buffers from the Database Buffer Cache to the data files.

LGWR(Log Writer): writes from the Redo Log Buffer to the online redo log file.

SMON(System Monitor): If the Oracle instance fails, any information in the SGA that has not been written to disk is lost. After the loss of the instance, SMON will automatically performs instance recovery when the database is reopened.

  Instance recovery:

  • Rolling forward to recover data that has not been recorded in the data files but that has been recorded in the online redo log file.
  • Opening the database so that users can log on.
  • Rolling back uncommitted transactions.

PMON(Process Monitor):

  Cleans up after failed processes:

  • Rolling back the user's current transaction
  • Freeing the resources currently reserved by the user

CKPT(CheckPoint):

  Responsible for:

  • Signaling DBWn to ensure that Database Buffer Cache that were modified prior to the checkpoint in time have been written to disks.
  • Updating datafile headers with checkpoint information.
  • Updating control files with checkpoint information.

  SCN(System Change number)是一个随着时间不断递增的数字。每对checkpoint进行一次更新操作,就将checkpoint更新为指令执行时的SCN。SCN号和检查点号均可在database表中查到(分别是current_scn和checkpoint_change#)。

  

  data file和control file的每一个文件的文件头中都会有一个检查点号,标志当前文件的同步版本。执行更新checkpoint首先会通知DBWn进行写盘,将所有文件同步到checkpoint,然后会去修改data file和control file的检查号。

  

  

  检查点的更新策略

  ①手动更新。

  通过指令"alter system checkpoint"

    

  ②自动更新。

  系统中有一个动态参数ESTIMATED_MTTR(可以在instance_rcovery表中查到),这个参数代表了当前系统预估所需恢复时间。

  可以通过设置fast_start_mttr_target参数(通过"alter system set fast_start_mttr_target=..."指令来设置)来指定多长时间更新一次,当ESTIMATED_MTTR大于fast_start_mttr_target时就执行一次checkpoint更新操作。

  

  

  

【oracle学习笔记02】Oracle Architecture —— Process Structure的更多相关文章

  1. 吴裕雄--天生自然 oracle学习笔记:oracle理论学习详解及各种简单操作例子

    1. 数据库的发展过程 层次模型 -->网状模型 -->关系模型 -->对象关系模型 2. 关于数据库的概念 DB:数据库(存储信息的仓库) DBMS:数据库管理系统(用于管理数据库 ...

  2. oracle学习笔记系列------oracle 基本操作之基本函数的用法

    --创建一个accout账户表 CREATE TABLE account( id ) NOT NULL, recommender_id ), login_name ) NOT NULL, login_ ...

  3. oracle学习笔记系列------oracle操作例子的专用表

    CREATE TABLE dept( deptno ), dname ) , loc ) ) ; CREATE TABLE emp( empno ), ename ), job ), mgr ), h ...

  4. oracle学习笔记系列------oracle 基本操作之表的增删改查

    --创建一个表 CREATE TABLE employee_souvc( id ), name ), gender ), birth DATE, salary ,), job ), deptno ) ...

  5. Oracle学习笔记三 SQL命令

    SQL简介 SQL 支持下列类别的命令: 1.数据定义语言(DDL) 2.数据操纵语言(DML) 3.事务控制语言(TCL) 4.数据控制语言(DCL)  

  6. oracle学习笔记第一天

    oracle学习笔记第一天 --oracle学习的第一天 --一.几个基础的关键字   1.select select (挑选) 挑选出显示的--列--(可以多列,用“,”隔开,*表示所有列),为一条 ...

  7. Oracle学习笔记——点滴汇总

    Oracle学习笔记——点滴汇总 http://www.botangdb.com/ Oracle GI = Grid Infrastructure = ASM + Cluster

  8. Oracle学习笔记之四sp1,Oracle 11g的常用函数

    从Oracle学习笔记之四,SQL语言入门中摘出来的,独立成一章节 3.1 字符类函数 ASCII(c)和CHR(i)    分别用于返回一个字符的ASCII码和返回给定ASCII值所对应的字符. C ...

  9. Oracle学习笔记之四,SQL语言入门

    1. SQL语言概述 1.1 SQL语言特点 集合性,SQL可以的高层的数据结构上进行工作,工作时不是单条地处理记录,而对数据进行成组的处理. 统一性,操作任务主要包括:查询数据:插入.修改和删除数据 ...

随机推荐

  1. 手机 wifi 已连接,不可上网 bug

    手机 wifi 已连接,不可上网 bug 同一个 Wi-Fi,电脑却可以? 注意事项 Mac 共享热点支持有线连接.蓝牙连接的网络进行共享. 如果你的 Mac 本身是通过 wifi 来连接上网的,那就 ...

  2. macOS utils

    macOS utils dr.unarchiver https://dr-unarchiver.en.softonic.com/mac https://dr-unarchiver.en.softoni ...

  3. js {}与class属性描述符的区别

    let data = { name: "ajanuw", change() { this.name = "Ajanuw"; }, get message() { ...

  4. 上天的源码要不要——GitHub 热点速览 v.21.08

    作者:HelloGitHub-小鱼干 前几天,"机智号" 所用的飞行软件框架 F´ 被 NASA 开源了,想看 F´ 这个嵌入式的代码不妨考虑下 Sourcetrail 这个神器, ...

  5. 不同浏览器CSS样式不兼容问题

    一句话,我想的太复杂了.向朋友请教才了解到,其实只要加个判断即可,首先获取到浏览器的基本信息,像什么版本啊,名称啊.默认语言啊等等,然后根据不同浏览器默认加载不同CSS样式即可,获取浏览器版本的连接如 ...

  6. 免费的图片校正及漂白专业工具PicGrayRemover 0.96,专业去除文档图片黑底麻点杂色,还你一个清晰的文本。

    当家长多年,每天都要拍照试卷打印.用App去掉图片黑底就成了每天必备工作.可是,有些图片文件不是来自手机,所以需要一个电脑版的图片漂白工具. 因此,经过几周的努力,图片漂白工具 PicGrayRemo ...

  7. deepin 340 USB转console线驱动安装及使用

    刚换DEEPIN系统, 有个路由器要做调整,的确是没windows友好,查了网上资料,归总一下. zhaodong@zhaodong-PC:sudo find / -name serial 进入 zh ...

  8. CMD(命令提示符)的基本操作(文件)

    打开CMD窗口,接下来将介绍如何使用CMD来创建.删除.修改.查看文件 1.1 使用CMD创建空文件(为了更好的演示,本文皆以D盘为当前路径),命令如下: copy nul xxx.xx(文件名) 命 ...

  9. abp中多种登陆用户的设计

    项目地址:https://gitee.com/bxjg1987/abp 场景 在<学校管理系统>中,学生.家长.教师.教务都可能登陆,做一些属于他们自己的操作.这些用户需要的属性各不相同, ...

  10. 更换 grub 主题

    默认的 grub 界面比较简陋 然后突然有想法了,想换个主题 具体操作 1.下载 grub 主题包 去这个地址下载主题(应该是这个地址): https://www.gnome-look.org/bro ...