Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Some useful Unix Commands Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Committing distributed transaction using commit force Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • exp syntax in oracle 10g Oracle
  • on IBM-AIX for display Linux/Unix
  • Rename Oracle Instance Name Oracle
  • Error Handling in Proc Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • ext#.sql Oracle
  • Rman Notes -1 Oracle

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

  • Remove DOS CR/LFs (^M) Linux/Unix
  • checking redhat linux version Linux/Unix
  • backspace in SQL Plus not working then..? Linux/Unix
  • Changing default shell Linux/Unix
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • How does one overcome the Unix 2 Gig file limit? 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Find_table_size.sql Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • How to calculate PROCESSES parameter Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Histogram Overview Oracle
  • Small sample shell program Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme