外文翻译---解析Oracle数据库后台进程的功能.docx_第1页
外文翻译---解析Oracle数据库后台进程的功能.docx_第2页
外文翻译---解析Oracle数据库后台进程的功能.docx_第3页
外文翻译---解析Oracle数据库后台进程的功能.docx_第4页
外文翻译---解析Oracle数据库后台进程的功能.docx_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1 耿祥义.jsp 基础教程.北京:清华大学出版社,2009.10附录英文原文analysis of oracle database background process function1.dbwr process: the process of the implementation of the buffer is written to the data file, is responsible for the buffer memory management in a oracle background process. when a buffer buffer is modified, it is marked as dirty, dbwr is the main task of dirty buffer is written to disk, so that the buffer to maintain clean. because the buffer memory buffer in the database or user process dirty, unused buffer to reduce the number of. when the unused buffer down to little, so that user processes from disk into memory block to store could not find unused buffer, dbwr will manage buffer storage, the user process always available unused buffer.oracle uses lru ( least recently used ) algorithm ( lru ) keep the memory data block is a recently used, so that the i/o minimum. in the following case indicates that dbwr will dirty buffers to disk:when a server process will be a buffer into the dirty table, the dirty expression to the critical length, the service will notify dbwr writing. the critical length for the value of the parameter db-block-write-batch half.when a server process in a lru look-up table in db-block-max-scan-cnt buffer, did not find unused buffer, it stops to find and notify the dbwr to write. timeout ( every3 seconds ), dbwr will inform itself. when a checkpoint, lgwr will inform dbwr. of the first two cases, dbwr will dirty table block is written to disk, each can write blocks by the initialization parameter db-block- specified by write-batch. if the dirty list without this parameter specifies the number of buffer, dbwr from the lur table to find another dirty buffer.if the dbwr in three inactive, a time-out occurs. in this case the dbwr on the lru table to find the specified number of buffer, to find any dirty buffers to disk. whenever a timeout occurs, dbwr finds a new buffer group. each time by the dbwr to find the number of buffers for sleep parameter db-block- write-batch values two times. if the database is idle, dbwr will eventually all buffer storage to disk.in the occurs check point, lgwr specifies a modified buffer table must be written to disk. dbwr the specified buffer is written to disk.on some platforms, one instance can have multiple dbwr. in this instance, some blocks can be written to a disk, some other piece can be written to other disk. the parameter db-writers control of dbwr process number.2. lgwr process: the process will log buffer is written to disk in a log file, it is responsible for the management of log buffer of a oracle background process. lgwr process will since the last written to disk since all log entries for output, the output of the lgwr:when a user process to submit a written when a commit record transaction.every three seconds will log buffer output.when the log buffer1/3 is full when the log buffer output.when dbwr will modify the buffer is written to disk when the log buffer output.the lgwr process synchronous writes to the active mirror online log file group. if the group a file to be deleted or not available, lgwr can continue to write to the group and other documents.log buffer is a circular buffer. when the lgwr log buffer log entries are written to the log file, the server process can be a new log entry is written to the log buffer. lgwr used to write very quickly, can ensure that the log buffer total space can be written into the new log entries.note: sometimes when we need more log buffer, lwgr in a transaction log entries before will write log entries, and these only when in the future after the transaction commits to permanent.oracle uses fast delivery mechanism, when the user issues a commit statement, an commit record immediately into the log buffer, but the corresponding data buffer change is to be delayed, until more effective only when they are written to the data file. when a transaction is committed, is assigned to a system change number (scn ), which together with the transaction log records in the log. because the scn recorded in the log, so that in the parallel server configuration, recovery operations can be synchronized.3. ckpt process: the process at the inspection point appears, all the data file headers are modified, indicating the check point. usually, the task performed by lgwr. however, if the check point significantly degrade the system performance, the ckpt process running, from the original lgwr process of the implementation of the checkpoint job separated, by the ckpt process to achieve. for many applications, the ckpt process is not necessary. only when the database has many data files, lgwr in check point significantly reduce performance that ckpt operation. the ckpt process will not block is written to disk, the work is done by dbwr.the initialization parameter checkpoint-process control of ckpt process that can or not. the default for false, namely, that cant.4. smon process: the process instance startup, perform instance recovery, is also responsible for cleaning up no longer use temporary segments. in a parallel server environment, smon on fault cpu or instance instance recovery. the smon process is regularly called up, check is needed, or other process that needs to be invoked.5. pmon process: the process in a user process failure recovery implementation process, responsible for the cleaning of memory storage area and release the resources used by the process. example: it is to reset the events table status, releasing the blockade, the failure process of id from activity in the process table remove. pmon also periodically checks the scheduling process ( dispatcher ) and a server process state, if the dead, then restart ( not including intentional deletion process ).pmon regularly called up, check is needed, or other process that needs to be invoked.6. reco process: the process is in a distributed option when used by a process, automatic solution in the distributed transaction failure. a node reco background process automatically connect to include other be in suspense distributed transaction database, reco automatically solve all pending and affairs. any corresponding to the processed is pending transaction is one from each database table delete suspended matters.when a database server reco background process attempts to establish a remote server, if the remote server is not available or network connection cannot be established, reco automatically at a time interval after connect again.reco background process only when allows distributed transaction system, and distributed c transactions parameter is greater than 0.7. arch process: the process will have to fill the online log files are copied to the specified storage device. when the log is archivelog use, and can automatically archiving arch process exists.8. the lckn process is: with parallel server option environment, can be up to10 processes ( lck0, lck1. . for example, lck9), the block between the.9. ( dnnn process scheduling process ): the process allows the user process shared limited server process ( server process ). no scheduling process, each user process requires a dedicated server process ( dedicatedserver process ). multi-threaded server ( multi-threaded server ) can support multiple user processes. if the system has a large number of users, many cues server can support a large users, especially in _ client server environment.in a database instance can set up multiple scheduling process. for each kind of network protocol to establish at least one dispatcher processes. database administrator according to the operating system of each process can be connected with restrictions on the number of decisions to initiate the scheduler optimal number, when the instance is running can be added to or deleted from the scheduling process. multiple cue server requires sql*net version 2 or later version. in a multiple cue server configuration, a network connection request receiver process for the client application, and will send each one to a dispatcher process. if not the client application is connected to a dispatcher process, network receiver process will start a dedicated server process. the network receiver process is not an instance of oracle component, it is treated with oracle about network process components. at instance startup, the network receiver is open, for users to connect to the oracle to establish a communication path, then every scheduling process connection request scheduling process address to its receiver. when a user process makes a connection request, the network receiver process the request and determines whether the user can use a scheduling process. if it is, the network receiver process returns the scheduling processs address, then the user process connects directly to the scheduling process. some user processes cannot scheduling process communication ( if you use a previous version of sql*net user ), network receiver processes cannot put the user is connected to a dispatcher process. in this case, the network receiver to establish a dedicated server process, to establish a proper connection.中文译文解析oracle数据库后台进程的功能1、dbwr进程:该进程执行将缓冲区写入数据文件,是负责缓冲存储区管理的一个oracle后台进程。当缓冲区中的一缓冲区被修改,它被标志为“弄脏”,dbwr的主要任务是将“弄脏”的缓冲区写入磁盘,使缓冲区保持“干净”。由于缓冲存储区的缓冲区填入数据库或被用户进程弄脏,未用的缓冲区的数目减少。当未用的缓冲区下降到很少,以致用户进程要从磁盘读入块到内存存储区时无法找到未用的缓冲区时,dbwr将管理缓冲存储区,使用户进程总可得到未用的缓冲区。 oracle采用lru(least recently used)算法(最近最少使用算法)保持内存中的数据块是最近使用的,使i/o最小。在下列情况预示dbwr 要将弄脏的缓冲区写入磁盘: 当一个服务器进程将一缓冲区移入“弄脏”表,该弄脏表达到临界长度时,该服务进程将通知dbwr进行写。该临界长度是为参数db-block-write-batch的值的一半。 当一个服务器进程在lru表中查找db-block-max-scan-cnt缓冲区时,没有查到未用的缓冲区,它停止查找并通知dbwr进行写。出现超时(每次3秒),dbwr 将通知本身。当出现检查点时,lgwr将通知dbwr.在前两种情况下,dbwr将弄脏表中的块写入磁盘,每次可写的块数由初始化参数db-block- write-batch所指定。如果弄脏表中没有该参数指定块数的缓冲区,dbwr从lur表中查找另外一个弄脏缓冲区。 如果dbwr在三秒内未活动,则出现超时。在这种情况下dbwr对lru表查找指定数目的缓冲区,将所找到任何弄脏缓冲区写入磁盘。每当出现超时,dbwr查找一个新的缓冲区组。每次由dbwr查找的缓冲区的数目是为寝化参数db-block- write-batch的值的二倍。如果数据库空运转,dbwr最终将全部缓冲区存储区写入磁盘。 在出现检查点时,lgwr指定一修改缓冲区表必须写入到磁盘。dbwr将指定的缓冲区写入磁盘。 在有些平台上,一个实例可有多个dbwr.在这样的实例中,一些块可写入一磁盘,另一些块可写入其它磁盘。参数db-writers控制dbwr进程个数。 2、lgwr进程:该进程将日志缓冲区写入磁盘上的一个日志文件,它是负责管理日志缓冲区的一个oracle后台进程。lgwr进程将自上次写入磁盘以来的全部日志项输出,lgwr输出: 当用户进程提交一事务时写入一个提交记录。 每三秒将日志缓冲区输出。 当日志缓冲区的1/3已满时将日志缓冲区输出。 当dbwr将修改缓冲区写入磁盘时则将日志缓冲区输出。lgwr进程同步地写入到活动的镜象在线日志文件组。如果组中一个文件被删除或不可用,lgwr可继续地写入该组的其它文件。 日志缓冲区是一个循环缓冲区。当lgwr将日志缓冲区的日志项写入日志文件后,服务器进程可将新的日志项写入到该日志缓冲区。lgwr 通常写得很快,可确保日志缓冲区总有空间可写入新的日志项。 注意:有时候当需要更多的日志缓冲区时,lwgr在一个事务提交前就将日志项写出,而这些日志项仅当在以后事务提交后才永久化。 oracle使用快速提交机制,当用户发出commit语句时,一个commit记录立即放入日志缓冲区,但相应的数据缓冲区改变是被延迟,直到在更有效时才将它们写入数据文件。当一事务提交时,被赋给一个系统修改号(scn),它同事务日志项一起记录在日志中。由于scn记录在日志中,以致在并行服务器选项配置情况下,恢复操作可以同步。 3、ckpt进程:该进程在检查点出现时,对全部数据文件的标题进行修改,指示该检查点。在通常的情况下,该任务由lgwr执行。然而,如果检查点明显地降低系统性能时,可使ckpt进程运行,将原来由lgwr进程执行的检查点的工作分离出来,由ckpt进程实现。对于许多应用情况,ckpt进程是不必要的。只有当数据库有许多数据文件,lgwr在检查点时明显地降低性能才使ckpt运行。 ckpt进程不将块写入磁盘,该工作是由dbwr完成的。初始化参数checkpoint-process控制ckpt进程的使能或使不能。缺省时为false,即为使不能。 4、smon进程:该进程实例启动时,执行实例恢复,还负责清理不再使用的临时段。在具有并行服务器选项的环境下,smon对有故障cpu或实例进行实例恢复。smon进程有规律地被呼醒,检查是否需要,或者其它进程发现需要时可以被调用。 5、pmon进程:该进程在用户进程出现故

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论