Table of Contents
一 什么是后台进程
二 操作示例
三 总结
Home Database Mysql Tutorial Oracle体系结构及备份(十一)bcakground-process

Oracle体系结构及备份(十一)bcakground-process

Jun 07, 2016 pm 03:08 PM
oracle Architecture backup

一 什么是后台进程 Oracle后台进程包括数据写进程(DatabaseWriter,DBWR)、日志写进程(Log Writer,LGWR)、系统监控(System Monitor,SMON)、进程监控(Process Monitor,PMON)、检查点进程(Checkpoint Process,CKPT)、归档进程、服务进程、用户进程。 数据写进程

一 什么是后台进程


        Oracle后台进程包括数据写进程(DatabaseWriter,DBWR)、日志写进程(Log Writer,LGWR)、系统监控(System Monitor,SMON)、进程监控(Process Monitor,PMON)、检查点进程(Checkpoint Process,CKPT)、归档进程、服务进程、用户进程。

 

        数据写进程:负责将更改的数据从数据库缓冲区高速缓存写入数据文件

 

        日志写进程:将重做日志缓冲区中的更改写入在线重做日志文件

 

        系统监控:检查数据库的一致性如有必要还会在数据库打开时启动数据库的恢复

 

        进程监控:负责在一个Oracle 进程失败时清理资源

 

        检查点进程:负责在每当缓冲区高速缓存中的更改永久地记录在数据库中时,更新控制文件和数据文件中的数据库状态信息。该进程在检查点出现时,对全部数据文件的标题进行修改,指示该检查点。在通常的情况下,该任务由LGWR执行。然而,如果检查点明显地降低系统性能时,可使CKPT进程运行,将原来由LGWR进程执行的检查点的工作分离出来,由CKPT进程实现。对于许多应用情况,CKPT进程是不必要的。只有当数据库有许多数据文件,LGWR在检查点时明显地降低性能才使CKPT运行。CKPT进程不将块写入磁盘,该工作是由DBWR完成的。 init.ora文件中 CHECKPOINT_PROCESS 参数控制CKPT进程的使能或使不能。缺省时为FALSE,即为使不能。

 

        归档进程:在每次日志切换时把已满的日志组进行备份或归档

 

        服务进程:用户进程服务。

 

        用户进程:在客户端,负责将用户的SQL语句传递给服务进程,并从服务器段拿回查询数据。


 Oracle体系结构及备份(十一)bcakground-process


        To maximizeperformance and accommodate many users, a multiprocess Oracle Database systemusesbackground processes.Background processes consolidate functions that would otherwise be handled bymultiple database programs running for each user process. Background processesasynchronously perform I/O and monitor other Oracle Database processes toprovide increased parallelism for better performance and reliability.



二 操作示例

SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@localhost 桌面]$ ps -ef | grep ora_
oracle    2638     1  0 16:43 ?        00:00:00 ora_pmon_orcl
oracle    2640     1  0 16:43 ?        00:00:00 ora_psp0_orcl
oracle    2642     1  0 16:43 ?        00:00:00 ora_mman_orcl
oracle    2644     1  0 16:43 ?        00:00:00 ora_dbw0_orcl
oracle    2646     1  0 16:43 ?        00:00:00 ora_lgwr_orcl
oracle    2648     1  0 16:43 ?        00:00:00 ora_ckpt_orcl
oracle    2650     1  0 16:43 ?        00:00:00 ora_smon_orcl
oracle    2652     1  0 16:43 ?        00:00:00 ora_reco_orcl
oracle    2654     1  0 16:43 ?        00:00:00 ora_cjq0_orcl
oracle    2656     1  0 16:43 ?        00:00:00 ora_mmon_orcl
oracle    2658     1  0 16:43 ?        00:00:00 ora_mmnl_orcl
oracle    2660     1  0 16:43 ?        00:00:00 ora_d000_orcl
oracle    2662     1  0 16:43 ?        00:00:00 ora_s000_orcl
oracle    2666     1  0 16:43 ?        00:00:00 ora_qmnc_orcl
oracle    2683     1  0 16:43 ?        00:00:00 ora_q000_orcl
oracle    2685     1  0 16:43 ?        00:00:00 ora_q001_orcl
oracle    2720     1  0 16:52 ?        00:00:00 ora_j000_orcl
oracle    2723  2597  0 16:52 pts/0    00:00:00 grep ora_

[oracle@localhost 桌面]$ ps -ef | grep ora_ | egrep "pmon|smon|dbw0|lgw|ckpt"
oracle    2638     1  0 16:43 ?        00:00:00 ora_pmon_orcl
oracle    2644     1  0 16:43 ?        00:00:00 ora_dbw0_orcl
oracle    2646     1  0 16:43 ?        00:00:00 ora_lgwr_orcl
oracle    2648     1  0 16:43 ?        00:00:00 ora_ckpt_orcl
oracle    2650     1  0 16:43 ?        00:00:00 ora_smon_orcl

SQL> desc v$bgprocess;
 Name					   Null?    Type
 ----------------------------------------- -------- ----------------------------
 PADDR						    RAW(4)
 PSERIAL#					    NUMBER
 NAME						    VARCHAR2(5)
 DESCRIPTION					    VARCHAR2(64)
 ERROR						    NUMBER

SELECT * FROM v$bgprocess;

SQL> SELECT * FROM V$bgprocess WHERE paddr'00'
  2  ;

PADDR	   PSERIAL# NAME
-------- ---------- -----
DESCRIPTION							      ERROR
---------------------------------------------------------------- ----------
52A16830	  1 PMON
process cleanup 						 ##########

52A16DE4	  1 PSP0
process spawner 0						 ##########

52A17398	  1 MMAN
Memory Manager							 ##########


PADDR	   PSERIAL# NAME
-------- ---------- -----
DESCRIPTION							      ERROR
---------------------------------------------------------------- ----------
52A1794C	  1 DBW0
db writer process 0						 ##########

52A17F00	  1 LGWR
Redo etc.							 ##########

52A184B4	  1 CKPT
checkpoint							 ##########


PADDR	   PSERIAL# NAME
-------- ---------- -----
DESCRIPTION							      ERROR
---------------------------------------------------------------- ----------
52A18A68	  1 SMON
System Monitor Process						 ##########

52A1901C	  1 RECO
distributed recovery						 ##########

52A195D0	  1 CJQ0
Job Queue Coordinator						 ##########


PADDR	   PSERIAL# NAME
-------- ---------- -----
DESCRIPTION							      ERROR
---------------------------------------------------------------- ----------
52A1B808	  1 QMNC
AQ Coordinator							 ##########

52A19B84	  1 MMON
Manageability Monitor Process					 ##########

52A1A138	  1 MMNL
Manageability Monitor Process 2 				 ##########


12 rows selected.

SQL> col description for a10;
SQL> COL ERROR CLEAR;
SQL> SELECT name FROM v$bgprocess WHERE paddr'00';

NAME
-----
PMON
PSP0
MMAN
DBW0
LGWR
CKPT
SMON
RECO
CJQ0
QMNC
MMON

NAME
-----
MMNL

12 rows selected.
SQL> set pagesize 99;
SQL> SELECT name FROM v$bgprocess WHERE paddr'00';

NAME
-----
PMON
PSP0
MMAN
DBW0
LGWR
CKPT
SMON
RECO
CJQ0
QMNC
MMON
MMNL

12 rows selected.
Copy after login


三 总结


        1.后台进程就是伴随着数据库运行的那些进程,以下几个进程非常重要:DBWR DBWN PMON SMON CKPT。

        2.Linux下通过ps命令可以查看后台进程的信息。



<span><span>我的邮箱</span></span><span>:</span>wgbno27@163.com <span> <span>新浪微博</span></span><span>:</span>@Wentasy27
  <span>微信公众平台</span>:JustOracle(微信号:justoracle)
  <span>IT交流群</span>:336882565(加群时验证 From CSDN XXX)
  <span>Oracle交流讨论组</span>:https://groups.google.com/d/forum/justoracle
  <span><strong>By Larry Wen</strong></span>
Copy after login


Oracle体系结构及备份(十一)bcakground-process Oracle体系结构及备份(十一)bcakground-process Oracle体系结构及备份(十一)bcakground-process
@Wentasy
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1667
14
PHP Tutorial
1273
29
C# Tutorial
1255
24
What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

How to export oracle view How to export oracle view Apr 12, 2025 am 06:15 AM

Oracle views can be exported through the EXP utility: Log in to the Oracle database. Start the EXP utility, specifying the view name and export directory. Enter export parameters, including target mode, file format, and tablespace. Start exporting. Verify the export using the impdp utility.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

What to do if the oracle log is full What to do if the oracle log is full Apr 12, 2025 am 06:09 AM

When Oracle log files are full, the following solutions can be adopted: 1) Clean old log files; 2) Increase the log file size; 3) Increase the log file group; 4) Set up automatic log management; 5) Reinitialize the database. Before implementing any solution, it is recommended to back up the database to prevent data loss.

What steps are required to configure CentOS in HDFS What steps are required to configure CentOS in HDFS Apr 14, 2025 pm 06:42 PM

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node

How to stop oracle database How to stop oracle database Apr 12, 2025 am 06:12 AM

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

See all articles