Oracle 11g 新特性:Oracle11g 後台進程概述____Oracle
來源:互聯網
上載者:User
一。Oracle11g 後台進程與10gR2的比較
我們知道,oracle資料庫的後台進程一般以ora_開頭來命名,下面就來看一下在Oracle11g中的後台進程都有哪些,以單節點的Oracle執行個體
為例:
[root@ractest ~]# ps -ef|grep ora_ |sort +7
root 11768 5567 0 05:30 pts/4 00:00:00 grep ora_
oracle 28069 1 0 Jul20 ? 00:00:03 ora_cjq0_orcl
oracle 28063 1 0 Jul20 ? 00:02:10 ora_ckpt_orcl
oracle 28049 1 0 Jul20 ? 00:00:00 ora_dbrm_orcl
oracle 28059 1 0 Jul20 ? 00:00:08 ora_dbw0_orcl
oracle 28055 1 0 Jul20 ? 00:00:06 ora_dia0_orcl
oracle 28047 1 0 Jul20 ? 00:00:02 ora_diag_orcl
oracle 28085 1 0 Jul20 ? 00:00:02 ora_fbar_orcl
oracle 28061 1 0 Jul20 ? 00:00:05 ora_lgwr_orcl
oracle 28057 1 0 Jul20 ? 00:00:00 ora_mman_orcl
oracle 28073 1 0 Jul20 ? 00:00:09 ora_mmnl_orcl
oracle 28071 1 0 Jul20 ? 00:00:06 ora_mmon_orcl
oracle 28043 1 0 Jul20 ? 00:00:08 ora_pmon_orcl
oracle 28051 1 0 Jul20 ? 00:00:00 ora_psp0_orcl
oracle 28108 1 0 Jul20 ? 00:00:00 ora_q000_orcl
oracle 28110 1 0 Jul20 ? 00:00:00 ora_q001_orcl
oracle 28089 1 0 Jul20 ? 00:00:00 ora_qmnc_orcl
oracle 28067 1 0 Jul20 ? 00:00:00 ora_reco_orcl
oracle 28087 1 0 Jul20 ? 00:00:00 ora_smco_orcl
oracle 28065 1 0 Jul20 ? 00:00:14 ora_smon_orcl
oracle 28045 1 0 Jul20 ? 00:00:00 ora_vktm_orcl
oracle 11559 1 0 04:52 ? 00:00:00 ora_w000_orcl
比較一下Oracle10gR2中的後台進程:
oracle@lxsfrac03 $ ps -ef |grep ora_ |grep -v grep |sort +7
oracle 26479 1 0 15:02:44 ? 0:00 ora_cjq0_racg1
oracle 26473 1 0 15:02:44 ? 0:00 ora_ckpt_racg1
oracle 26464 1 0 15:02:44 ? 0:00 ora_dbw0_racg1
oracle 26469 1 0 15:02:44 ? 0:00 ora_dbw1_racg1
oracle 26416 1 0 15:02:44 ? 0:00 ora_diag_racg1
oracle 26518 1 0 15:02:46 ? 0:00 ora_lck0_racg1
oracle 26471 1 0 15:02:44 ? 0:00 ora_lgwr_racg1
oracle 26422 1 0 15:02:44 ? 0:00 ora_lmd0_racg1
oracle 26420 1 0 15:02:44 ? 0:00 ora_lmon_racg1
oracle 26424 1 0 15:02:44 ? 0:00 ora_lms0_racg1
oracle 26428 1 0 15:02:44 ? 0:00 ora_lms1_racg1
oracle 26452 1 0 15:02:44 ? 0:00 ora_mman_racg1
oracle 26483 1 0 15:02:44 ? 0:00 ora_mmnl_racg1
oracle 26481 1 0 15:02:44 ? 0:00 ora_mmon_racg1
oracle 26414 1 0 15:02:44 ? 0:00 ora_pmon_racg1
oracle 26418 1 0 15:02:44 ? 0:00 ora_psp0_racg1
oracle 26477 1 0 15:02:44 ? 0:00 ora_reco_racg1
oracle 26475 1 0 15:02:44 ? 0:00 ora_smon_racg1
二。Oracle11g 新的後台進程的功能
新多的後台進程有:ora_dbrm_orcl,ora_dia0_orcl,ora_psp0_orcl,ora_smco_orcl,ora_vktm_orcl,ora_w000_orcl,
這些後台進程的功能分別如下:
DBRM:資料庫資源管理進程, (The database resource manager process),負責設定資源計劃和其他的資源管理的工作。
DIAG:資料庫診斷進程, (The diagnosibility process) ,負責維護管理各種用於診斷的轉儲檔案,並執行oradebug命令。
DIA0:另一個資料庫診斷進程,負責檢測Oracle資料庫中的掛起(hang)和死結的處理。
PSP0:process spawner,用於產生oracle進程
SMCO:space management coordinator,該進程負責空間管理協調管理工作,負責執行空間的分配和回收。
Wnnn;命名為W000,W001,W002.....,由smcO動態產生執行上述相關任務。
VKTM:virtual keeper of time,用於提供wall-clock time,(每秒鐘更新一次)。提供每二十毫秒更新一次的reference-time counter,看起來有點類似計時器的功能。
三。Oracle11g 新引入的其他後台進程
再來認識一下Oracle11g中新引入的一些其他進程,因為一些特性在我的測試庫中沒有用到,比如asm,所以在ps -ef的結果中沒有。
GMON:用於維護asm磁碟組的磁碟之間的關係。
KATE:當ASM的磁碟離線的時候,該進程負責asm的元檔案的io讀寫。
MARK:如果有向asm離線磁碟的missed 寫請求,該進程將ASM分配的單元的狀態標記為stale
FBDA:涉及到flashback-da ta-archive新特性的一個進程,The flashback da ta archiver proces。用於將“軌表”(tracked tables)的曆史資料進行歸檔。當“軌表”上的事務提交以後,fbda進程負責將資料的前鏡像儲存到flashback archive地區。該進程還負責flashback的資料歸檔的空間管理、分配、保留,跟蹤tracked transactions。
什麼是“軌表”(tracked tables): 是指啟用了flashback archive特性的表。
RMSn:The Oracle RAC management processes,負責執行Oracle RAC的管理工作,比如RAC相關資源的建立和叢集中新執行個體的添加。
DSKM:The slave diskmon process , 負責oracle 執行個體、asm執行個體和磁碟的管理進程之間的io fencing 資訊的交換。如果使用SAGE的儲存,該進程還負責SAGE儲存的一些資訊的管理。
四。複習一下Oracle 10gR2的後台進程
最後 再來複習一下Oracle 10gR2中的一些後台進程:
Queue Monitor Processes (QMNn) 是供 Oracle Streams Advanced Queuing使用的可選的進程,用於監控訊息佇列。這兩類進程出錯不會導致整個執行個體出錯。
MMON :manageability monitor,與oracle10g的新特性--診斷功能相關,負責管理一些背景工作,比收集最近修改過的 SQL 對象的統計資訊
MMNL :與oracle10g的新特性--診斷功能相關,會根據調度從SGA將統計結果--如會話的曆史資訊,重新整理輸出至資料庫表。
MMAN :與oracle10g的新特性--診斷功能相關,負責執行一些資料庫內部任務,自動化佈建SGA大小特性會使用這個進程。
RBAL :Rebalance。進程負責協調磁碟組間的Server Load Balancer工作,在使用了ASM的資料庫執行個體中運行。當向ASM磁碟組增加或刪除磁碟時,RBAL進行負責處理重新平衡的請求。它可以使多個執行個體同時訪問一個 ASM 磁碟(global open)。最終由 ORBn 進程實際執行資料擴充的負載平衡。 執行個體中可以運行多個 ORBn 進程,分別為 ORB0,ORB1,以此類推。
ASMB: 在使用asm磁碟組的時候負責與asm執行個體的通訊,向ASM執行個體提供更新統計資料
EOF.