Linux下可以使用ps命令來檢視Oracle相關的程序

使用ps來檢視Oracle資料庫相關的服務

Oracle Listener

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

[[email protected] ~]$ ps -ef | grep tnslsnroracle    1999 29986  0 09:47 pts/2    00:00:00 grep tnslsnroracle    3647     1  0 Jul03 ?        00:00:34 /u01/oracle/mc3yd213/db/tech_st/11.1.0/bin/tnslsnr mc3yd213 -inheritoracle    6431     1  0 Jul03 ?        00:00:00 /u01/oracle/mc3yd213/apps/tech_st/10.1.2/bin/tnslsnr APPS_mc3yd213 -inheritoracle   13616     1  0 May27 ?        00:00:40 /u01/oracle/mc3yd213/apps/tech_st/10.1.2/bin/tnslsnr LISTENER -inherit[[email protected] ~]$

Oracle DB Background Process

[[email protected] ~]$ ps -ef | grep -i "ora_"oracle    1887     1  0 09:42 ?        00:00:00 ora_w000_mc3yd213oracle    2159     1  0 09:54 ?        00:00:00 ora_j000_mc3yd213oracle    2167 29986  0 09:55 pts/2    00:00:00 grep -i ora_oracle    3516     1  0 Jul03 ?        00:02:00 ora_pmon_mc3yd213oracle    3518     1  0 Jul03 ?        00:02:08 ora_vktm_mc3yd213oracle    3522     1  0 Jul03 ?        00:00:27 ora_diag_mc3yd213oracle    3524     1  0 Jul03 ?        00:00:18 ora_dbrm_mc3yd213oracle    3526     1  0 Jul03 ?        00:00:35 ora_psp0_mc3yd213oracle    3528     1  0 Jul03 ?        00:05:59 ora_dia0_mc3yd213oracle    3530     1  0 Jul03 ?        00:00:19 ora_mman_mc3yd213oracle    3532     1  0 Jul03 ?        00:01:06 ora_dbw0_mc3yd213oracle    3534     1  0 Jul03 ?        00:02:53 ora_lgwr_mc3yd213oracle    3536     1  0 Jul03 ?        00:02:08 ora_ckpt_mc3yd213oracle    3538     1  0 Jul03 ?        00:01:36 ora_smon_mc3yd213oracle    3540     1  0 Jul03 ?        00:00:06 ora_reco_mc3yd213oracle    3542     1  0 Jul03 ?        00:02:01 ora_mmon_mc3yd213oracle    3544     1  0 Jul03 ?        00:03:20 ora_mmnl_mc3yd213oracle    3564     1  0 Jul03 ?        00:00:09 ora_fbda_mc3yd213oracle    3569     1  0 Jul03 ?        00:00:16 ora_qmnc_mc3yd213oracle    3584     1  0 Jul03 ?        00:00:36 ora_q000_mc3yd213oracle    3586     1  0 Jul03 ?        00:00:15 ora_q001_mc3yd213oracle    3690     1  0 Jul03 ?        00:02:30 ora_cjq0_mc3yd213oracle    3707     1  0 Jul03 ?        00:00:28 ora_smco_mc3yd213oracle    7676     1  0 Jul03 ?        00:42:49 ora_m000_mc3yd213[[email protected] ~]$
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).

這些後臺程序,從資料庫裡也是能查到的,可以使用下邊這個SQL來查後臺程序,在program列中,你就能看到SMON,MMON,CKPT,PMON,MMAN,MMNL...後臺程序

select * FROM v$session WHERE type ='BACKGROUND';
關於後臺程序,可以參見Oracle Background processes

Oracle Management Agent

[[email protected] ~]$ ps -ef | grep emagentoracle    2097 29986  0 09:51 pts/2    00:00:00 grep emagentoraem     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.nohuporaem     3150  3130  0 May24 ?        00:25:56 /opt/oracle/oraem/agent10g/bin/emagent[[email protected] ~]$

使用ps來檢視Oracle EBS 相關的服務

sendmail,郵件服務

ps -ef | grep sendmail

FNDLIBR:Concurrent Manager

ps -ef | grep FNDLIBR

FNDLIBR process indicates that concurrent mnagers are up and requests are running on the system.Sometimes it happens that even after stopping the concurrent managers by adcmctl.sh stop apps/apps some of the requests might continue running. In such cases you can wait for say 5 minutes and then if it dos not stop then you can kill those FNDLIBR processes bykill -9 <processid>

FNDLIBR manages following Managers

Marketing Data Mining ManagerTransportation ManagerSession History CleanupUWQ Worklist Items Release for Crashed sessionCollections ManagerOAM Metrics Collection ManagerContracts Core Concurrent ManagerStandard ManagerWMS Task Archiving ManagerOracle Provisioning Manager

FNDSM is the process for the Service Manager

We need to configure GSM and start the Apps Listener in order to start GSM Service on all Nodes in Application Tier in E-Business Suite.

ps -ef | grep FNDSM

其他Concurrent Manager Processes

INVLIBR is the process for Inventory ManagersInventory Manager

[[email protected] ~]$ ps -ef | grep INVLIBRoracle    7111  7004  0 Jul03 ?        00:00:07 INVLIBR                                                                                               oracle   14016 13573  0 19:40 pts/5    00:00:00 grep INVLIBR[[email protected] ~]$

RCVOLTM is the process for Inventory ManagersReceiving Transaction Manager

[[email protected] ~]$ ps -ef | grep RCVOLTMoracle    5722  5665  0 20:03 ?        00:00:00 RCVOLTM APPS/ZG618E73E514A4DB6225B5C0715E84E394B33DBF1597FF0B87AACB0D0C0DE3A77B75C66CDEF4E51EC835DCEA339CB13E22 PO RCVOLTM N 60 t LOCK Y BEJ301441 2061280oracle    5723  5665  0 20:03 ?        00:00:00 RCVOLTM APPS/ZG8CAFF65062AF8E7E4B36CA3576D3140CE7E02C1F9C6E2C78AD0977EE29FD88EF68B0B33B5289F0C835DCEA339CB13E22 PO RCVOLTM14 N 60 t LOCK Y BEJ301441 2061281oracle   17386 16905  0 20:39 pts/15   00:00:00 grep RCVOLTM[[email protected] ~]$

MRCLIB is the process for the following ManagersMRP Manager

[[email protected] ~]$ ps -ef | grep MRCLIBoracle    7113  7004  0 Jul03 ?        00:00:06 MRCLIB                                                                                                oracle   14024 13573  0 19:40 pts/5    00:00:00 grep MRCLIB[[email protected] ~]$PALIBR is the process for the following ManagersPA Streamline Manager

[[email protected] ~]$ ps -ef | grep PALIBRoracle    7110  7004  0 Jul03 ?        00:00:06 PALIBR                                                                                                oracle   14003 13573  0 19:39 pts/5    00:00:00 grep PALIBR[[email protected] ~]$

frmweb:form server

ps -ef | grep frmweb

httpd:應用伺服器程序

 ps -ef | grep httpd

檢視Apache Server是否啟動

ps –ef | grep Apache

檢視WMA MSCA程序是否啟動 

ps -ef | grep mwa

[[email protected] ~]$  ps -ef|grep mwaoracle     995     1  0 Jun01 ?        01:01:37 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=995 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 20002oracle    1051     1  0 Jun06 ?        00:52:00 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=1051 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10000oracle    5418     1  0 Jun07 ?        00:50:17 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=5418 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10120oracle    5477     1  0 Jun07 ?        00:50:36 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=5477 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10130oracle    6495  6316  0 21:24 pts/5    00:00:00 grep mwaoracle   24042     1  0 May30 ?        01:03:49 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=24042 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10973oracle   27771     1  0 Jul11 pts/4    00:01:35 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=27771 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10987oracle   28023     1  0 May30 ?        01:04:06 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=28023 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 11888oracle   28682     1  0 May30 ?        01:05:58 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=28682 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 11988oracle   31596     1  0 May29 ?        01:05:26 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=31596 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10020oracle   32530     1  0 Jun07 ?        00:50:37 /u01/oracle/mc3yd213/apps/tech_st/10.1.3/appsutil/jdk/bin/java -DCLIENT_PROCESSID=32530 -Doracle.apps.mwa=/u01/oracle/mc3yd213/apps/apps_st/appl/mwa/12.0.0 -Doracle.apps.jrad.mmd=/u01/oracle/mc3yd213/apps/apps_st/comn/webapps/oacore/html/jrad -Doracle.apps.inst=/u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441 -mx512m -ms128m oracle.apps.mwa.presentation.telnet.Listener 10110[[email protected] ~]$

======EOF======