Oracle background processes

Source: Internet
Author: User
Background processes are used to execute the actual maintenance tasks required to ensure database operation. For example, a background process maintains the buffer cache and writes blocks to data files as needed. another process is responsible for copying the online redo log file to an archive object when it is full. you can view the current background processes SQLselectpaddr and nam of the server by querying the v $ bgprocess view.

Background processes are used to execute the actual maintenance tasks required to ensure database operation. For example, a background process maintains the buffer cache and writes blocks to data files as needed. another process is responsible for copying the online redo log file to an archive object when it is full. you can view the current background process SQL select paddr and nam in the v $ bgprocess view.

Background processes are used to execute the actual maintenance tasks required to ensure database operation. For example, a background process maintains the buffer cache and writes blocks to data files as needed.

Another process is responsible for copying the online redo log file to an archive object when it is full.

You can view the current background processes of the server by querying the v $ bgprocess view.

SQL> select paddr, name, description from v $ bgprocess where paddr! = '00 ';

PADDR NAME DESCRIPTION

-------------------------------------------------------------------------------------

00000001EB1F5920 PMON process cleanup

20170001ec226b30 VKTM Virtual Keeper of TiMe process

100000001eb1f69a0 GEN0 generic0

20170001f0269448 DIAG diagnosibility process

100000001ec227bb0 DBRM DataBase Resource Manager

00000001eb1_7a0 VKRM Virtual sKeduler for Resource Manager

20170001f02683c8 PSP0 process spawner 0

00000001EB1F7A20 DIA0 diagnosibility process 0

20170001f026a4c8 MMAN Memory Manager

00000001EC228C30 DBW0 db writer process 0

00000001EB1F8AA0 DBW1 db writer process 1

100000001eb1ffe20 ARC0 Archival Process 0

20170001f02728c8 ARC1 Archival Process 1

20170001ec231030 ARC2 Archival Process 2

20170001eb200ea0 ARC3 Archival Process 3

20170001f026b548 LGWR Redo etc.

100000001ec229cb0 CKPT checkpoint

100000001eb1f9b20 SMON System Monitor Process

100000001eb1fcca0 SMCO Space Manager Process

20170001f026c5c8 RECO distributed recovery

PADDR NAME DESCRIPTION

-------------------------------------------------------------------------------------

100000001eb201f20 CJQ0 Job Queue Coordinator

20170001f0273948 qmnc aq Coordinator

100000001ec22ad30 MMON Manageability Monitor Process

100000001eb1faba0 MMNL Manageability Monitor Process 2

Depending on the version, the number, name, type, and other background processes may be different.

Central background process:

PMON (process monitor): cleans up the connection after an exception is aborted. PMON registers the communication with the oracle TNS Listener and transmits relevant parameters to it.

SMON (system monitor): completes all system-level tasks, including:

Clean up temporary space, merge idle space, and execute instance recovery for failed nodes in RAC for the transactions that previously failed to recover files, clear OBJ $, and contract the rollback segment, 'offline' rollback segment.

RECO (distributed database recovery): Based on the 2 PC distributed protocol, multiple modifications are allowed for atomic commit, but errors such as network failure occur before the actual commit, transaction becomes a suspicious distributed transaction. in this case

RECO is required to contact the Transaction Coordinator to discover the coordination results. Before that, the transaction remains uncommitted. After the network is restored or the error is rectified, the RECO may commit the transaction or roll back the transaction.

Note: Suspicious distributed transactions may cause write blocking, that is, the suspicious distributed transaction cannot exist for too long, and the DBA can manually submit or roll back the transaction.

CKPT (Checkpoint Process): creating a checkpoint is mainly a task of DBWn. CKPT is mainly used to update the file header of the data file, so as to assist the process of creating a checkpoint.

DBWn (Database block writer): the background process that writes dirty blocks (modified blocks) to the disk. It writes dirty blocks in the buffer cache and releases the corresponding space. you can configure multiple DBWn (two DBW0 and DBW1 are on the top ),

The best case is that DBWn writes blocks to disks using asynchronous I/O. when asynchronous I/O is used, DBWn collects the blocks to be written, submits them to the operating system, returns them immediately, and collects the next batch of blocks to be written. After the operating system completes the file write operation, it notifies DBWn asynchronously.

LGWR is used to refresh and output the content in the SGA to the disk. Generally, LGWR performs the refresh operation in the following situations:

1. refresh automatically every 3 seconds

2. When any transaction sends a commit

3. When the redo log buffer is 1/3 full or contains 1 MB of buffered data.

ARCn (archiving process): When LGWR fully writes online redo logs, the archiving process copies the logs to another location. ARCn generally copies online redo logs to at least two locations. it is generally used to recover the database when the hard disk or other media is damaged.

DIAG (diagnostic process): it monitors the overall status of an instance, captures and records the information required to handle instance failures.

FBDA (flash back data archiving process): this process is a new process in oracle 11g r1. it is mainly used to flash back data. It mainly maintains changes made to each row in the table over time, and implements historical data query. it reads the UNDO generated by the transaction, rolls back the changes made by the transaction, and then stores the rollback Row Records in the flashback data archive.

DBRM (Database Resource Manager Process): Configure resource plans for database instances.

GEN0 (general task execution process): Mainly shares the blocking processing of another process.

Optional background processes:

ASMB (Automatic Storage Management Background): This process appears in the ASM database instance. it communicates with the management and storage ASM instance, provides updated statistics to the ASM instance, and provides a "Heartbeat" to the ASM instance ".

RBAL (rebalancing process): this process is also running in the database instance that uses ASM. When a disk is added to or removed from the ASM disk group, it is responsible for processing the balance request, that is, re-distributing load requests.

Background process of RAC environment:

LMON (Lock monitor): monitors all instances in the cluster and checks whether the instance has failed. You can reconfigure the lock and other resources when the instance leaves or rejoins the cluster.

LMD (lock manager daemon): it processes lock manager service requests for global cache services (keeping block buffers consistent among instances.

LMSn (Lock Manager server process): mainly maintains the consistency of the SGA block buffer cache among each RAC instance.

LOCK process: similar to LMD, But it processes all global resource requests.

Tool background process

CJQO and Jnnn (Job Queue process): oracle provides the replication feature through a database object called snapshot. Job Queue is the internal mechanism used to refresh snapshots.

QMNC and Qnnn (Advanced queue process): QMNC monitors advanced queues. and tell the "out-of-the-queue process" to delete the waiting message from the queue: a message has become available. they are also responsible for queue propagation.

EMNC (event monitor process): it is part of the AQ architecture and is used to notify queues interested in certain messages.

DMnn and DWnn (Data Pump main process/Working Process): Data Pump is a new feature in oracle 10g r1, mainly used to replace EXP/IMP.

Other background processes

PSPO (Process Generator process): it is mainly responsible for generating various background processes.

VKTM (virtual time manager process): implements a consistent and fine-grained clock for oracle instances.

SMCO (space management coordinator process): Coordinates active space management of databases.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.