You can use the PS command to view Oracle-related processes under Linux
Oracle Listener
This command lists the processes of the Oracle Net Listener
- [Email protected] 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
- [Email protected] www.linuxidc.com ~]$
Oracle Background Process
- [Email protected] 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
- [Email protected] www.linuxidc.com ~]$
eg.ora_pmon_mc3yd213 is Pmon process,Pmon (Process MONitor) is a Oracle background process created when you star t a database instance. The Pmon process would free up resources if a user process fails (eg. release database locks).
These background processes, from the database can also be found, you can use the SQL below to check the background process, in the program column, you can see SMON,MMON,CKPT,PMON,MMAN,MMNL ... Background process
- Select * from v$session WHERE type =' BACKGROUND ';
For background processes, refer to Oracle Background processes
Oracle Management Agent
- [[email protected] 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
- [ [email protected] www.linuxidc.com ~]$
Using the PS command under Linux to view Oracle-related processes