Oracleプロセス
0.更新履歴
- 2001.01.21 新規作成
- 2001.01.27 NTのスレッドの追加
- 2001.01.29 サーバマネージャからの確認方法追加
- 2001.10.03 若干の表記間違いの修正と,情報追加.
1.はじめに
このドキュメントは,Oracleのバックグラウンドプロセスについて記述するものである.
2.バックグラウンドプロセスとその説明
プロセス名 | 略称? | 内容 |
---|---|---|
プロセスモニタ | PMON |
|
システムモニタ | SMON |
|
データベース ライター |
DBWR |
|
ログライター | LGWR |
|
チェックポイント | CKPT |
|
アーカイバ | ARCH |
|
リカバラー (回復) |
RECO |
|
ディスパッチャ | Dnnn |
|
サーバ | Snnn |
|
ロック | LCKn |
|
3.サンプル
Solaris2.6上で稼動するOracle8i 8.1.5では,次のようなプロセスが稼動している.
db1% ps -ef | grep ora_ oracle 319 1 0 14:31:07 ? 0:00 ora_pmon_o8i oracle 321 1 0 14:31:07 ? 0:01 ora_dbw0_o8i oracle 323 1 0 14:31:07 ? 0:06 ora_lgwr_o8i oracle 325 1 0 14:31:08 ? 0:00 ora_ckpt_o8i oracle 327 1 0 14:31:08 ? 0:03 ora_smon_o8i oracle 329 1 0 14:31:08 ? 0:00 ora_reco_o8i oracle 331 1 0 14:31:08 ? 0:00 ora_s000_o8i oracle 333 1 0 14:31:08 ? 0:00 ora_d000_o8i oracle 562 560 0 19:07:39 pts/1 0:00 grep ora_ db1% |
また,サーバマネージャを使い,システムテーブルを参照することでプロセスIDとプロセス名を確認することができる.
db2% svrmgrl Oracle Server Manager Release 3.1.5.0.0 - Production (c) Copyright 1997, Oracle Corporation. All Rights Reserved. Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production With the Partitioning and Java options PL/SQL Release 8.1.5.0.0 - Production SVRMGR> connect internal Connected. SVRMGR> select spid,name from v$process,v$bgprocess where paddr = addr; SPID NAME --------- ----- 23650 PMON 23652 DBW0 23654 LGWR 23656 CKPT 23658 SMON 23660 RECO 6 rows selected. SVRMGR> |
WindowsNTの場合,バックグラウンドプロセスは,OracleServiceというサービスが管理するORACLE8x.EXEのスレッドとして稼動するので,プロセス一覧に表示されることはない.
Windows2000上でのOracle8i 8.1.6のスレッド(0〜8までのスレッド)
NT版でも,サーバマネージャを使うことによって,プロセス番号と名前を表示させることができる.
D:\>svrmgrl Oracle Server Manager Release 3.1.6.0.0 - Production Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved. Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production With the Partitioning option JServer Release 8.1.6.0.0 - Production SVRMGR> connect internal Connected. SVRMGR> select spid,name from v$process, 2> v$bgprocess 3> where paddr = addr; SPID NAME --------- ----- 1688 PMON 1880 DBW0 1244 LGWR 1988 CKPT 684 SMON 1912 RECO 6 rows selected. SVRMGR> |