Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • handling filenname with space Linux/Unix
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Convert multiple rows to single column Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Find_table_size.sql Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • GSQ.sql Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • Monitor Long Running Job Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Finding locked objects Oracle
  • find_encr_wallet.sql Uncategorized
  • upload.html PHP/MYSQL/Wordpress

To Find Orphan OS processes.

Posted on 19-Feb-2007 By Admin No Comments on To Find Orphan OS processes.

To Find Orphan OS processes.

When a process run from command line its parent process id will be 1. Consider following example:

In current session, we are executing SQLPLUS. whose process id = 22833 and parent is 22822.

process 22822 is ksh. So this is not orphan process. if you find any process with parent id 1, confirm with users for how this program is executed. When a process or program is running directly without Shell, it will have 1 as parent process id and orphan processes also have parent process id as 1.

SQL> !ps -ef | grep -i sqlplus

oracle 6833 22833 0 13:56:39 pts/1 0:00 grep -i sqlplus

oracle 22833 22822 0 12:04:27 pts/1 0:00 sqlplus / as sysdba

SQL> !ps -ef | grep 22822

oracle 22822 22820 0 12:04:14 pts/1 0:00 -ksh

oracle 6934 22833 0 13:57:02 pts/1 0:00 grep 22822

oracle 22833 22822 0 12:04:27 pts/1 0:00 sqlplus / as sysdba

SQL>

Linux/Unix, shell

Post navigation

Previous Post: Another Tuning Article for subheap of shared pool
Next Post: chk_space_SID.ksh

Related Posts

  • oracle_env_10g_CADEV Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Generate SSH without password authentication. Linux/Unix
  • Implementation of key based authentications Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • DBMS_STATS Metalinks Notes Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • longtx.sql Oracle
  • prepfiles.sh for step by step generating pending statistics files Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • executing Function from SQLPLUS prompt Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme