打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Oracle后台进程之:Optional Background Processes(ARC...

Oracle后台进程之:Optional Background Processes(ARCn、CJQ0、Jnnn、FBDA、SMCO)

分类: Oracle5016人阅读评论(0)收藏举报

目录(?)[+]

 Most optional background processes are specific to tasks or features. 

大多数可选后台进程都为了某些任务和特性而指定。

下面介绍几个常见的可选后台进程:

Archiver Processes (ARCn) 

The archiver processes (ARCn)copy online redo log files to offline storage after a redo log switch occurs. These processes can also collect transaction redo data and transmit it to standby databasedestinations. ARCnprocesses exist onlywhen the database is in  ARCHIVELOG modeand automatic archiving is enabled.

归档进程在log 切换的时候拷贝redo log file到离线存储上面。进程同样可以收集事务的redo 数据传输到备库的目录上面。arcn进程只有在归档模式并且自动归档开启的时候存在。

Job Queue Processes (CJQ0 and Jnnn)

Oracle Database uses job queue processesto run user jobs, often in batch mode. A jobis a user-defined task scheduled to run one or more times. For example, you can use a job queue to schedule a long-running update in the background. Given a start date and a time interval, the job queue processes attempt to run the job at the next occurrence of the interval.

oracle数据库使用job queue 进程去运行用户的jobs,经常在批量模式下。任务是用户自定义的预订运行一次或者多次的作业。比如说,可以使用一个job队列去安排在后台运行的一个长时间运行的更新任务。给定一个开始时间和间隔时间,任务队列进程就会去尝试在下一个间隔的时间点上面运行job。

Oracle Database manages job queue processes dynamically, thereby enabling job queue clients to use more job queue processes when required. The database releases resources used by the new processes when they are idle.

oracle数据库动态的管理job队列进程,所以允许job队列客户端使用更多的job queue 进程。数据库会在它们空闲的时候释放资源给新的进程。

Dynamic job queue processes can run a large number of jobs concurrently at a given interval. The sequence of events is as follows:

动态job 队列进程可以并发的运行大量的job在一个给定的间隔里面。事件顺序如下所示:
1. The job coordinator process (CJQ0)is automatically started and stopped as needed by Oracle Scheduler (see "Oracle Scheduler"on page 18-19). The coordinator process periodically selects jobs that need to be run from the system JOB$table. New jobs selected are ordered by time.
2. The coordinator process dynamically spawns job queue slave processes (Jnnn)to run the jobs.
3. The job queue process runs one of the jobs that was selected by the CJQ0 process for execution. Each job queue process runs one job at a time to completion.
4. After the process finishes execution of a singlejob, it polls for more jobs. If no jobs are scheduled for execution, then it enters a sleep state, from which it wakes up at periodic intervals and polls for more jobs. If the process does not find any new jobs, then it terminates after a preset interval.

1. cjq0在oracle调度器需要的时候自动开启。调度进程定期的在job$表中选择事务来运行。新的事务选择按照时间排列。
2. 调度进程动态的生成job queue slave process(jnnn)去运行任务。
3. job队列进程运行的任务由cjq0来选择。每个job queue在一个时间点上面只能运行一个job。
4. 在进程完成执行单个job后,它被分配更多的任务。如果没有任务被安排去执行,那么它们会进入沉睡状态。并且定期的苏醒去检查是否有job。如果没有找到,那他们它们会进入下一个沉睡周期。

The initialization parameter JOB_QUEUE_PROCESSESrepresents the maximum number of job queue processes that can concurrently run on an instance. However, clients should not assume that all job queue processes are available for job execution.

初始化参数job_queue_processes指定了job queue线程在实例中最大的并发运行的数量。

Flashback Data Archiver Process (FBDA)

The flashback data archiver process (FBDA)archives historical rows of tracked tables into Flashback Data Archives. When a transaction containing DML on a tracked table commits, this process stores the pre-image of the rows into the Flashback Data Archive. It also keeps metadata on the current rows.

闪回数据归档进程,归档被追踪的表的历史行到闪回数据归档文件里面。当在被追踪的表上面发生了dml事务的时候,这个进程存储行的前镜像到闪回数据归档里面。它同样保存当前行的元数据。

FBDA automatically manages the flashback data archive for space, organization, and retention. Additionally, the process keeps track of how far the archiving of tracked transactions has occurred.

FBDA自动的管理闪回数据归档文件的空间,组织结构和滞留时间。


Space Management Coordinator Process (SMCO)

The SMCO process coordinates the execution of various space management related tasks, such as proactive space allocation and space reclamation. SMCO dynamically spawns slave processes (Wnnn) to implement the task.

smco进程调度执行的多种空间管理相关的任务,比如说提前的空间分配和回收。smco自动的生成从属进程wnnn去完成任务。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Oracle job procedure 存储过程定时任务
极限优化:从75到2000,由技能到性能提升岂止20倍
oracle 系统包dbms
Oracle基本参数(PROCESSES)
[精华] [轉載]在Oracle中实现定时操作---Job Queue
11g以后的space preallocation特性和SMCO/W00N
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服