系統(tǒng)之家 - 系統(tǒng)光盤下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Linux通過ps查看Oracle相關(guān)進程

Linux通過ps命令查看Oracle相關(guān)進程的方法

時間:2015-05-04 18:00:33 作者:shuqing 來源:系統(tǒng)之家 1. 掃描二維碼隨時看資訊 2. 請使用手機瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20150504/47330.html 手機查看 評論

  Oracle是很多開發(fā)人員所使用的數(shù)據(jù)庫之一,與Oracle相關(guān)的進程也非常多,我們平時就可以通過ps命令來查看這些相關(guān)的進程。

Linux通過ps命令查看Oracle相關(guān)進程的方法

  具體方法如下:

  Oracle Listener

  這個命令會列出Oracle Net Listener的進程

  [oracle@ www.linuxidc.com ~]$ ps -ef | grep tnslsnr

  oracle 1999 29986 0 09:47 pts/2 00:00:00 grep tnslsnr

  oracle 3647 1 0 Jul03 ? 00:00:34 /u01/oracle/mc3yd213/db/tech_st/11.1.0/bin/tnslsnr mc3yd213 -inherit

  oracle 6431 1 0 Jul03 ? 00:00:00 /u01/oracle/mc3yd213/apps/tech_st/10.1.2/bin/tnslsnr APPS_mc3yd213 -inherit

  oracle 13616 1 0 May27 ? 00:00:40 /u01/oracle/mc3yd213/apps/tech_st/10.1.2/bin/tnslsnr LISTENER -inherit

  [oracle@ www.linuxidc.com ~]$

  Oracle Background Process

  [oracle@ www.linuxidc.com ~]$ ps -ef | grep -i "ora_"

  oracle 1887 1 0 09:42 ? 00:00:00 ora_w000_mc3yd213

  oracle 2159 1 0 09:54 ? 00:00:00 ora_j000_mc3yd213

  oracle 2167 29986 0 09:55 pts/2 00:00:00 grep -i ora_

  oracle 3516 1 0 Jul03 ? 00:02:00 ora_pmon_mc3yd213

  oracle 3518 1 0 Jul03 ? 00:02:08 ora_vktm_mc3yd213

  oracle 3522 1 0 Jul03 ? 00:00:27 ora_diag_mc3yd213

  oracle 3524 1 0 Jul03 ? 00:00:18 ora_dbrm_mc3yd213

  oracle 3526 1 0 Jul03 ? 00:00:35 ora_psp0_mc3yd213

  oracle 3528 1 0 Jul03 ? 00:05:59 ora_dia0_mc3yd213

  oracle 3530 1 0 Jul03 ? 00:00:19 ora_mman_mc3yd213

  oracle 3532 1 0 Jul03 ? 00:01:06 ora_dbw0_mc3yd213

  oracle 3534 1 0 Jul03 ? 00:02:53 ora_lgwr_mc3yd213

  oracle 3536 1 0 Jul03 ? 00:02:08 ora_ckpt_mc3yd213

  oracle 3538 1 0 Jul03 ? 00:01:36 ora_smon_mc3yd213

  oracle 3540 1 0 Jul03 ? 00:00:06 ora_reco_mc3yd213

  oracle 3542 1 0 Jul03 ? 00:02:01 ora_mmon_mc3yd213

  oracle 3544 1 0 Jul03 ? 00:03:20 ora_mmnl_mc3yd213

  oracle 3564 1 0 Jul03 ? 00:00:09 ora_fbda_mc3yd213

  oracle 3569 1 0 Jul03 ? 00:00:16 ora_qmnc_mc3yd213

  oracle 3584 1 0 Jul03 ? 00:00:36 ora_q000_mc3yd213

  oracle 3586 1 0 Jul03 ? 00:00:15 ora_q001_mc3yd213

  oracle 3690 1 0 Jul03 ? 00:02:30 ora_cjq0_mc3yd213

  oracle 3707 1 0 Jul03 ? 00:00:28 ora_smco_mc3yd213

  oracle 7676 1 0 Jul03 ? 00:42:49 ora_m000_mc3yd213

  [oracle@ www.legolfclassic.com~]$

  eg.ora_pmon_mc3yd213 is PMON process,PMON (Process MONitor) is an Oracle background process created when you start a database instance. The PMON process will free up resources if a user process fails (eg. release database locks).

  這些后臺進程,從數(shù)據(jù)庫里也是能查到的,可以使用下邊這個SQL來查后臺進程,在program列中,你就能看到SMON,MMON,CKPT,PMON,MMAN,MMNL...后臺進程

  select * FROM v$session WHERE type ='BACKGROUND';

  Oracle Management Agent

  [oracle@ www.linuxidc.com ~]$ ps -ef | grep emagent

  oracle 2097 29986 0 09:51 pts/2 00:00:00 grep emagent

  oraem 3130 1 0 May24 ? 00:08:57 /opt/oracle/oraem/agent10g/perl/bin/perl /opt/oracle/oraem/agent10g/bin/emwd.pl agent /opt/oracle/oraem/agent10g/sysman/log/emagent.nohup

  oraem 3150 3130 0 May24 ? 00:25:56 /opt/oracle/oraem/agent10g/bin/emagent

  [oracle@ www.legolfclassic.com ~]$

  以上就是Linux通過ps命令查看Oracle相關(guān)進程的方法了,常常需要查找這些進程的友友們,就趕緊收藏本教程吧,定能大大提高你的操作速度。

標(biāo)簽 Oracle 命令

發(fā)表評論

0

沒有更多評論了

評論就這些咯,讓大家也知道你的獨特見解

立即評論

以上留言僅代表用戶個人觀點,不代表系統(tǒng)之家立場

其他版本軟件

熱門教程

人氣教程排行

Linux系統(tǒng)推薦

掃碼關(guān)注
掃碼關(guān)注

掃碼關(guān)注 官方交流群 軟件收錄